URL-Decode

Javascript Escape/Unescape

Result

JavaScript Escape/Unescape is the process of removing or escaping the offending characters in a JavaScript string that could prevent the parsing or interpretation of the string. You can also unescape the JavaScript special characters to their original ones.

The free online JavaScript Escape/Unescape tool performs the two functions.

  • It escapes the reserved characters in JavaScript with its corresponding characters.
  • It unescapes the escaped characters in JavaScript by returning them to their original ones.

JavaScript Escape

Some characters in the string break the program. While working with those characters, you must escape it because the browser interprets them differently than intended.

Some characters are reserved in JavaScript strings. Those characters should be escaped before the JavaScript string is used.

The following characters are reserved in JavaScript and must be properly escaped before being used in the string. 

In JavaScript Escape,

  • The backspace is converted to b
  • The form feed is converted to f
  • A new line is converted to n
  • The carriage return is converted to r
  • The single quote is converted to '
  • The double quote is converted to "
  • The backslash is converted to 
  • The horizontal Tab is converted to t
  • The vertical Tab is converted to v
  • The null char is converted to 

JavaScript Unescape

The JavaScript Unescape is the process of bringing the JavaScript escaped characters' strings to their original ones.

The following characters in the JavaScript string must be appropriately unescaped and bring them back to the original ones.

In JavaScript Unescape,

  • is converted to backspace.
  • f is converted to form feed.
  • n is converted to a new line.
  • is converted to carriage return.
  • is converted to a double quote.
  •  is converted to backslash.
  • is converted to a horizontal tab.
  • is converted to a vertical tab.
  •  It is converted to a null char.

How do you use the JavaScript Escape/Unescape Tool Online?

For this, do the following steps.

  • Open the JavaScript Escape/Unescape Online tool.
  • You can copy-paste the JavaScript code, load it from the URL, or upload the file using the "browse" button.
  • Click on the "Escape" button.
  • The tool replaces the reserved characters in JavaScript with their corresponding escaped characters.
  • The tool will provide the result in the "Result" section.
  • Please copy and paste the code into the desired location.
  • You can unescape the JavaScript escaped string by clicking the "Un Escape" button.