DEVELOPER TOOLS · LOCAL ONLY

String Escape / Unescape

Add or remove escape sequences in code strings.

Up to 200,000 characters. Handles backslashes, quotes, newlines, and tabs.

2 lines · 28 bytes
0 lines · 0 bytes
Run the tool to see the result

Up to 200,000 characters. Handles backslashes, quotes, newlines, and tabs.

How to use

Add or remove escape sequences in code strings.

Turn text containing quotes, newlines, or backslashes into a string literal you can paste straight into JavaScript, JSON, or a config file, or turn a literal back into its real content. A trailing unfinished escape is reported instead of being swallowed.

Limits and privacy

Up to 200,000 characters. Handles backslashes, quotes, newlines, and tabs.

Everything runs inside this browser. Your input is never uploaded, stored, or written to the URL or any log.