Why unescape JavaScript text?
Unescaping text in JavaScript is useful when you have escaped strings (like those from source code, JSON, or API responses) and want to convert them back to their original form with proper special characters.
Examples of JavaScript unescaping
Escaped text
Hello \"World\"
Line with \'single\' quotes
Tab\tand newline\ncharacters
Backslash \\ and other special charsUnescaped text
Hello "World"
Line with 'single' quotes
Tab and newline
characters
Backslash \ and other special charsCommon escape sequences in JavaScript
- Double quote:
\"becomes" - Single quote:
\'becomes' - Backslash:
\\becomes\ - Newline:
\nbecomes a new line - Carriage return:
\rbecomes a carriage return - Tab:
\tbecomes a tab - Form feed:
\fbecomes a form feed - Backspace:
\bbecomes a backspace - Vertical tab:
\vbecomes a vertical tab - Null character:
\0becomes a null character
This tool is useful for debugging JavaScript code, examining data from APIs, or converting escaped strings back to their readable form.
Other tools
Other tools available on this website: