Escape or unescape text for JSON, HTML, URLs and JavaScript quotes. It runs in your browser: nothing you type leaves your device, and there is no sign-up.
What it does #
Four flavours, both directions, correct edge behaviour.
Useful for:
- Embed arbitrary text safely in JSON or JS.
- Decode a percent-encoded blob from a URL.
- Neutralise HTML before display.
How to use it #
- Pick flavour and direction.
- Paste the text.
- Copy the result.
- Escaping is context-specific — always pick the destination’s flavour.
Know the limits #
- Rule-based findings are evidence for human judgement, not a verdict; passing every check guarantees no ranking, citation or delivery outcome.
- The analysis covers only what you supply, at this moment — live systems, remote state and future behaviour are outside its sight.
Private by design #
What you paste or type is worked on by this page in your own browser. It is not sent to URSY or to anyone else, and nothing is kept after you close the page. We only count that the tool was used, never what you put in it.
Questions #
Why are there different escapings at all?
Each context has different dangerous characters: quotes break JSON strings, angle brackets break HTML, ampersands break URLs. Escaping is context-armour — using the wrong flavour is how injection bugs are born.
Is escaping the same as sanitising?
No: escaping makes text inert IN a context; sanitising REMOVES dangerous content. Displaying user input wants escaping at output time — this tool is that operation, portable.
Words to know #
Related tools #
- Data Size ConverterConvert bytes, KB, MB, GB and TB, decimal and binary (KiB, MiB) side by side.
- Base64 Encoder + DecoderTurn text into Base64, or Base64 back into readable text.
- Chmod CalculatorSwitch file permissions between numbers (755) and letters (rwxr-xr-x), with the sums shown.
- Cron Expression ExplainerRead any 5-part cron line in plain words and see its next five run times.
Page facts checked 23 Nov 2026. Sources: RFC 8259: the JSON format
Cite this page: String Escape + Unescape. URSY. Updated 24 November 2026. https://ursy.com/webmaster-tools/string-escape-tool/ · Section links