Free, browser-based utilities for everyday developer workflows

String Escape / Unescape

Encode / Decode

Escape a string into JSON, JavaScript, SQL, regex, HTML and more — or unescape it back — all in your browser.

  • Pick a target; see the escaped and unescaped result at once.
  • Covers JSON, JS/TS, Java/C#, Python, Go, shell, SQL, regex, HTML, XML.
  • Optionally escape non-ASCII as \uXXXX / &#x;, and compare all targets at once.
Runs locally

Input

Escaped

Unescaped

Escape for all targets at once

Next steps

Escape a value here, then base64/percent-encode it, test it as a regex, or validate the JSON it lands in.

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. The tool shows the escaped form (safe to paste as a string literal) and the unescaped form (decoded back to raw text) at the same time, so you never have to guess a direction. 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.
  3. Copy the Escaped or Unescaped result, or open the all-targets panel to compare.

Tips & pitfalls

FAQ

Related guides