JavaScript String Unescape
Decode JavaScript escape sequences such as \n, \x41, \u00e9, \u{1F600} and legacy octal escapes into plain text.
Runs in your browserJavaScript string → Text
Loading tool…
Example
'It\'s \u00e9\x21\n'
It's é!
How to use the JavaScript String Unescape
- Paste or type your JavaScript string into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the Text result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
Related converters
JavaScript String EscapeEscape text for a JavaScript string literal in single, double or backtick quotes, including \x, \u and U+2028 handling.XML EscapeEscape the five XML special characters (& < > " ') so text is safe in XML element content and attributes.XML UnescapeDecode XML entities (& < > " ') and numeric character references back to plain text.JSON String UnescapeTurn an escaped JSON string (with or without surrounding quotes) back into plain text, reporting invalid escapes.HTML EscapeEscape & < > " and ' so untrusted text can be safely inserted into HTML pages and attributes.JSON String EscapeEscape text for use inside a JSON string: quotes, backslashes, newlines and control characters, optionally ASCII-only.HTML UnescapeConvert escaped HTML (<p>, &, ©, €) back to the original characters and markup.CSV EscapeQuote a value for CSV per RFC 4180: wrap fields containing delimiters, quotes or line breaks and double inner quotes.