Some files, formats and older systems only accept plain ASCII, so a character like é or — has to be written as an escape code. It swaps characters to their \uXXXX form and back again.
Escape some text
- Paste your text. A short sample is already there: “Café — hello”.
- Click “Escape”. Every character outside plain ASCII becomes a code: é becomes
\u00e9 and — becomes \u2014, so the sample reads “Caf\u00e9 \u2014 hello”. Plain letters, numbers and spaces are left exactly as they are.
- Click “Unescape” to turn codes back into readable characters — paste escaped text and it returns as “Café — hello”.
- Download the result as escaped.txt if you need it as a file.
When to use it
- Only the unusual characters change. Anything you can type on a plain English keyboard stays untouched — only characters above code 126 (or control characters) are escaped.
- Use it for JSON and code strings. Escaped text is safe to paste into source files, config files and JSON that must stay pure ASCII.
- Check the round trip. Escape a line, then unescape the result — you should get your exact original text back. If not, a code was mistyped.
- Your text stays on your device. Converting happens in the browser, so nothing you paste is uploaded.