JavaScript Escape / Unescape

JavaScript Escape Unescape – Use our JavaScript Escape / Unescape online tool to escape or unescape JavaScript strings and special characters.

JavaScript string escape or unescape characters used in this tool are:

  • Horizontal Tab is replaced with \t
  • Vertical Tab is replaced with \v
  • Nul char is replaced with \0
  • Backspace is replaced with \b
  • Form feed is replaced with \f
  • Newline is replaced with \n
  • Carriage return is replaced with \r
  • Single quote is replaced with \’
  • Double quote is replaced with \”
  • Backslash is replaced with \\

JavaScript Escape / Unescape Online Tool

Escaped / Unescaped JavaScript

Escape / Unescape Online Tools

How to Escape or Unescape JavaScript using JavaScript Escape / Unescape Online Tool

Step 1: Paste JavaScript code or drag JavaScript file.

Step 2: Click on Escape button to Escape JavaScript Special characters.

Step 3: Click on Unescape button to unescape JavaScript code.

Step 4: Copy the escaped or unescaped JavaScript string result. You can also use clear button to start afresh.

JavaScript Special Characters

The following table shows the list of JavaScript Special Characters for using in JavaScript strings.

Character Description
\0 Null
\b Backspace
\f Form feed
\n New line
\r Carriage return
\t Tab
\v Vertical tab
\’ Single quote
\” Double quote
\\ Backslash
\XXX The Latin-1 encoding character specified by three octal digits from 0 to 377
\xXX The Latin-1 encoding character specified by two hexadecimal digits from 00 to FF
\uXXXX The Unicode character specified by four hexadecimal digits
\u{XXXXX} Unicode code point escapes