AbraCalc

Backslash Escape / Unescape

Escape or unescape backslash sequences (\n, \t, \r, \", \\) in any string. Runs entirely in your browser.

Pure browser JavaScript — no external libraries.

Embed this tool on your site

How to use this tool

  1. Paste text into the input.
  2. Click Escape to convert special characters to \n, \t, etc.
  3. Click Unescape to convert sequences back to real characters.

Escape or unescape backslash sequences (\n, \t, \r, \", \\) in any string. Runs entirely in your browser.

Frequently asked questions

What sequences are handled?
\n (newline), \r (carriage return), \t (tab), \b (backspace), \f (form feed), \" (double quote), \' (single quote), \\ (backslash).

References & sources