Backslash Escape Converter
Escape and unescape backslash sequences in strings.
Escaped
Escaping strings for code
When you embed text inside a string literal, certain characters need a backslash escape: a literal backslash becomes \\, a double quote becomes \", a newline becomes \n, and a tab becomes \t. Escape mode prepares text for pasting into JSON, JavaScript, or a config file; unescape mode turns those sequences back into the real characters. Conversion uses JSON's own rules and runs entirely in your browser.
Related Encoders & Decoders tools
Base64 Encoder
Encode or decode Base64 strings.
URL Encoder
Safely encode or decode URL parameters.
Base Converter
Convert numbers between binary, octal, decimal, hex, and base 2-36.
ROT13 Encoder / Decoder
Apply the reversible ROT13 letter-substitution cipher.
HTML Entity Encoder / Decoder
Escape or unescape HTML entities like & and <.
Punycode Converter
Convert internationalized domains to and from Punycode.
Text to Morse Code
Translate text into Morse code dots and dashes.
Morse Code to Text
Decode Morse code dots and dashes back into text.