string escape & unescape

escape special characters for code or turn escape sequences back into text.

runs on your device · free · no sign-up

loading tool…

frequently asked questions

which escapes are supported?

json and javascript escapes (\n, \t, \", \\), regex special characters and sql single quotes.

what does unescape handle?

\n, \t, \r, \xNN, \uNNNN, \u{...} and escaped characters are converted back to text.

is my text uploaded?

no, it runs locally in your browser.

related tools