SafeToolkits

Backslash Escape/Unescape

Escape and unescape backslash sequences.

Runs in your browser: what you paste is never uploaded

How to use Backslash Escape/Unescape

  1. 1Paste or type your inputUse the box above, or click Sample to try it with an example.
  2. 2Choose your optionsChoose Escape or Unescape.
  3. 3Copy the resultCopy it with one click. Nothing is sent anywhere.

About Backslash Escape/Unescape

Escape text for string literals (newlines, tabs, quotes and control characters) or turn backslash sequences back into text.

Frequently asked questions

Which escape sequences are supported?

\n, \r, \t, \\, quotes, \xHH, \uHHHH and \u{…}, as used in JavaScript, JSON and many other languages.

Is the output valid JSON?

Escaped text can be placed inside JSON double quotes.

Is what I paste sent anywhere?

No. The tool runs entirely in your browser and never sends what you type or paste to a server.

Is it free?

Yes. It's free, with no sign-up and no limits.

Related tools