Warning! Please select the valid Javascript file.
Browse
Load URL
Escape
UnEscape
Clear
Copy Clipboard
Download
Clear

About Javascript Escape and UnEscape Online Tool

  • Javascript Escape and Java Unescape is a free online developer tool to escape special characters in JavaScript strings to ensure it's safe to use or unescape.

  • You can either browse a file locally from your device, fetch it from the URL, or enter it manually.

  • This tool is split into two modes are Javascript Escape and Javascript Unescape.

  • You can either copy the result to your clipboard using the copy button or download it as a file to your device using the download button.

Escape Javascript

Escapes the Javascript special characters by converting them to their corresponding escaped characters as listed below.

  • backspace is converted to \b
  • form feed is converted to \f
  • horizontal tab is converted to \t
  • backslash is converted to \\
  • double quote is converted to \"
  • single quote is converted to \'
  • carriage return is converted to \r
  • new line is converted to \n
  • vertical tab is converted to \v

UnEscape Javascript

Unescapes the Javascript special characters by converting them back to their original ones are listed below.

  • \b is converted to backspace
  • \f is converted to form feed
  • \t is converted to horizontal tab
  • \\ is converted to backslash
  • \" is converted to double quote
  • \' is converted to double quote
  • \r is converted to carriage return
  • \n is converted to new line
  • \v is converted to vertical tab

Javascript Escape and UnEscape Online Example:

Below is an example of the Javascript Escape result.

Javascript Input:


Escaped Javascript Output: