Sanitize Untrusted Text Before It Reaches a Model
Strip invisible carriers, neutralise instruction-like markup and fence untrusted content before you paste it into a prompt.
This tool prepares untrusted text for inclusion in a prompt: it strips invisible carriers such as Unicode tag characters and bidirectional overrides, escapes structural markup so the content cannot break out of its own delimiter, wraps it in a fence with an explicit data-not-instructions preamble, and reports any instruction-shaped phrases for review rather than silently deleting them.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Does this make my application injection-proof?
Why not just delete the suspicious phrases?
How to use the prompt injection sanitizer
- 1Enter or paste your untrusted text.
- 2Turn "Fence the content" on or off as needed.
- 3Choose the fence style.
- 4Turn "Neutralise structural markup" on or off as needed.
- 5Press Run, then download the result when it is ready.
Sources & specifications
Embed this tool
Put the working prompt injection sanitizer on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Invisible Character DetectorFind zero-width spaces, directional overrides, Unicode tag characters and homoglyphs hidden in pasted text — then strip them.Context Window CalculatorPaste a document and see which models it fits inside, how much of each window it fills, and what is left for the reply.Edge Case Test String GeneratorGenerate the strings that break input handling — Unicode, RTL, emoji, injection patterns and boundary lengths.LLM Model ComparisonEvery current model side by side: price per million tokens, context window, max output, modalities and cache rates.LLM Token CounterCount tokens with the real BPE vocabulary, see every token coloured in place, and compare the count across models.AI API Cost CalculatorWork out what a prompt costs per call, per day and per month, and compare the same workload across every major model.
Last updated
More ai & llm tools