Characters Escape & Unescape

Escape Level
Escape Quote
JSON Compatible
ES6 Compatible
Uppercase Hex

Escapes Special Characters in a string so that they do not cause conflicts. For example, Don't stop me now becomes Don\'t stop me now.

Supports the following escape sequences:

  • \n (Line feed/newline)

  • \r (Carriage return)

  • \t (Horizontal tab)

  • \b (Backspace)

  • \f (Form feed)

  • \xnn (Hex, where n is 0-f)

  • \\ (Backslash)

  • \' (Single quote)

  • \" (Double quote)

  • \unnnn (Unicode character)

  • \u{nnnnnn} (Unicode code point)


Unescapes Characters in a string that have been escaped. For example, Don\'t stop me now becomes Don't stop me now.

Supports the following escape sequences:

  • \n (Line feed/newline)

  • \r (Carriage return)

  • \t (Horizontal tab)

  • \b (Backspace)

  • \f (Form feed)

  • \nnn (Octal, where n is 0-7)

  • \xnn (Hex, where n is 0-f)

  • \\ (Backslash)

  • \' (Single quote)

  • \" (Double quote)

  • \unnnn (Unicode character)

  • \u{nnnnnn} (Unicode code point)

 

References

https://wikipedia.org/wiki/Escape_sequence

Featured Tools

Featured tools that you might find useful.

Popular Tools

List of popular tools that users love and frequently use.

New Tools

The latest tools added to our collection, designed for you.

Topics

The tools grouped by topics to quickly find what you need.
Atbash Cipher is a substitution cipher with a specific key where the letters of the alphabet are reversed. I.e. all 'A's are replaced with 'Z's, all 'B's are replaced with 'Y's, and so on. It was originally used for the Hebrew alphabet, but can be used for any alphabet.

Atbash Cipher

Atbash Cipher is a substitution cipher with a specific key where the letters of the alphabet are reversed. I.e. all 'A's are replaced with 'Z's, all 'B's are replaced with 'Y's, and so on. It was originally used for the Hebrew alphabet, but can be used for any alphabet.
Beaufort Cipher, is a polyalphabetic substitution cipher that is similar to the Vigenère cipher, except that it enciphers characters in a slightly different manner.

Beaufort Cipher

Beaufort Cipher, is a polyalphabetic substitution cipher that is similar to the Vigenère cipher, except that it enciphers characters in a slightly different manner.
Bifid Cipher is a cipher which combines the Polybius square with transposition, and uses fractionation to achieve diffusion.

Bifid Cipher

Bifid Cipher is a cipher which combines the Polybius square with transposition, and uses fractionation to achieve diffusion.
Four-Square Cipher encrypts pairs of letters (like playfair), which makes it significantly stronger than substitution ciphers etc. since frequency analysis becomes much more difficult.

Four-Square Cipher

Four-Square Cipher encrypts pairs of letters (like playfair), which makes it significantly stronger than substitution ciphers etc. since frequency analysis becomes much more difficult.