Encode / Decode Processed locally

String Escape / Unescape

Paste a string, pick a target language or format (JSON, JS/TS, Java/C#/C/C++, Python, Go, POSIX shell, SQL, regex, HTML, XML) and a direction. Escape makes it safe to paste as a string literal; Unescape decodes a literal back to raw text. The All-targets tab shows the result for every target at once. Runs in your browser; nothing is uploaded.

Auto-runs as you type. Ctrl+Enter to re-run.

How to use the String Escape / Unescape tool

Paste any string and pick a target — JSON, JavaScript/TypeScript, Java/C#/C/C++, Python, Go, POSIX shell, SQL, regex, HTML, or XML — and a direction. The Escape direction produces a form safe to paste as a string literal; Unescape decodes a literal back to raw text. The All-targets tab shows the result for every target at once, so you can compare quickly. Everything runs locally in your browser; nothing is uploaded.

What it does

When to use it

How to use it

  1. Paste your string into the input box.
  2. Choose the target language or format and the direction (Escape or Unescape).
  3. Copy the result, or open the All targets tab to compare every target.

Tips & pitfalls

FAQ

Related guides