Code Beautify / MULTIVERTO

Unescape JavaScript string

Read a quoted JSON-compatible JavaScript string literal as plain text.

Live converterYour input stays in this browser. No text is uploaded for conversion.

The file stays in your browser.
Chain tools

Apply each text tool to the previous result. Text workflows ↗

Only the recipe name and tool order are saved in this browser. Your input and results are never saved.

01 / Example

Example

Your input"Hello\nWelcome"
ResultHello Welcome

02 / Guide

Unescape JavaScript string — How it works

What the conversion does

Read a quoted JSON-compatible JavaScript string literal as plain text. Parse standard JSON escapes in a quoted string literal.

Worked example

The sample input is "Hello\nWelcome"; its converted form is Hello ⏎ Welcome. The ⏎ marker represents a real line break in the decoded text, not a space or a literal backslash-n.

Format rules and limits

The matching escape tool creates a quoted JavaScript-compatible string using JSON escape rules. This reverse tool reads precisely that JSON-compatible subset, so the input must include the surrounding double quotes. It decodes backslash escapes such as backslash-n for a line break, backslash-t for a tab, escaped quotes, backslashes and Unicode escapes. It does not execute JavaScript, expand variables or interpret template literals. JavaScript also has forms such as single-quoted literals and hexadecimal escapes that are outside the JSON string grammar and are intentionally rejected. The output can contain actual control characters: a decoded line break will appear as a line break rather than the two source characters backslash and n. Inspect the result carefully before placing it in a CSV cell, HTML page or URL, where another escaping layer may be needed. Read a quoted JSON-compatible JavaScript string literal copied from a fixture as ordinary text.

Check the result

Check the unescaped result by escaping it again and comparing the quoted representation with the original input. The visible result may contain actual tabs or line breaks, so inspect it in an editor that can reveal whitespace. If the next destination is HTML, a URL or a database query, apply that destination’s own encoding or parameterization rules afterward. String unescaping alone does not make content safe for another context. Test escaped quotes, backslashes and \n. Single-quoted literals and JavaScript-only escape forms are outside this parser; it accepts JSON string syntax. Treat the result as text, not executable JavaScript. This tool reads the JSON-compatible quoted-string subset and deliberately rejects other JavaScript literal forms. Inspect actual control characters in the decoded output; a line break may be present even when the display makes it easy to overlook. Do not paste that text into HTML, a query string or CSV without the escaping rules for the new destination. If decoding fails, check the outer quotes and the first malformed escape in the source rather than removing quotes until it parses. Keep the quoted source until the destination accepts the decoded text. The result can contain real line breaks and private content; inspect it before pasting it into a log, shared request or public page.

How this conversion transforms the input
Text — Input
Read and transform structure
Text — Result

Explore guides

Conversion guides

Explore guides