Backslash Escape is a free encode & crypto tool that runs entirely in your browser — escape \n \t \" for code literals. No upload, no account, no limits.
Loading Backslash Escape…
How to use Backslash Escape
Open the Backslash Escape tool.
Paste or type your text, code or a token into the input field.
The output updates as you type — adjust the options if you need a different format.
Copy the result, or share the URL to hand the exact input to someone else.
About Backslash Escape
Escape and unescape string literals for source code. Escaping converts newlines, tabs, quotes and backslashes into \n, \t, \" and \\; unescaping interprets those sequences plus \uXXXX and \xXX back into the real characters.
What people use it for
Paste multi-line text and get a single escaped string for a code literal.
Decode an escaped JSON or log string into readable text.
Resolve \u unicode escapes into their characters.
Frequently asked questions
Which escapes are handled?
\n, \t, \r, \", \\ and friends on the way out; the same plus \uXXXX and \xXX on the way back.
Is it private?
Every calculation happens on this page, in your own browser. Your input is never sent to a server, never logged and never used for training — which also means the tool keeps working when you are offline.