DevToolsmith

JavaScript Escape / Unescape

Escapes the contents of a regular double-quoted string literal without its surrounding quotes.

Runs 100% in your browser — nothing is uploaded

Input
Tip: drop a file here17 chars · 23 bytes · 2 lines
Result
0 chars · 0 bytes · 0 lines

Up to 200,000 input characters and 2 million output characters. Processing stays on this device.

Use JavaScript Escape / Unescape

Escapes the contents of a regular double-quoted string literal without its surrounding quotes. Start with the sample, select the options and run the tool. Copy or download the result after reviewing it.

Behavior and limits

Escapes the contents of a regular double-quoted string literal without its surrounding quotes. Unescape accepts those contents, not a whole source file. Uses language-specific escape rules; template literals, raw strings and C# verbatim strings are not supported.

Example input

Hello "Ada"
你好 👋

Expected behavior for the example

Escapes the quotes, line break and Unicode characters as string contents; unescape returns the original text.

Check important output in the application that will consume it. Use the tool directory to find related formats and tasks.

Frequently asked questions

How does JavaScript Escape / Unescape handle my input?

Escapes the contents of a regular double-quoted string literal without its surrounding quotes. Unescape accepts those contents, not a whole source file. Uses language-specific escape rules; template literals, raw strings and C# verbatim strings are not supported.

Is my input uploaded or saved automatically?

Processing runs locally in this browser. Input and results are not saved automatically. Downloads happen only when you choose them. The static preview blocks scripts and external resources when one is available.