Skip to content

String Escape / Unescape Tool

Convert text between sixteen escaping dialects — JSON, JavaScript, Java, Python, C#, SQL, HTML, XML, URL, regex, CSV, shell, \uXXXX and \xNN.

45 characters · 45 after decoding

Round-trip check

Round-trip is lossless — decoding the output returns the same text.

Intermediate decoded text

He said "hi"
Path: C:\temp	tabbed — 100% café

What changed

He said \"hi\"\nPath: C:\\temp\ttabbed — 100% café

Lines highlighted in amber were added or rewritten by the escaping step.

Dialect quick reference

DialectEscaped form of
JSON stringa\"b\\c\nd — ü
JavaScript / TypeScripta\"b\\c\nd — ü
Javaa\"b\\c\nd — ü
Pythona\"b\\c\nd — ü
C / C++ / C#a\"b\\c\nd — ü
SQL (single quote)a"b\c d — ü
HTML entitiesa"b\c
d — ü
XML entitiesa"b\c
d — ü
URL percent-encodinga%22b%5Cc%0Ad%20%E2%80%94%20%C3%BC
Regex literala"b\\c\nd — ü
CSV field"a""b\c d — ü"
Shell (single quotes)'a"b\c d — ü'
Shell (double quotes)"a\"b\\c d — ü"
\uXXXX sequencesa"b\c\u000ad \u2014 \u00fc
\xNN sequencesa"b\c\x0ad \u2014 \xfc

About this tool

Escapes and unescapes text across the real dialect rules of JSON, JavaScript, Java, Python, C-family languages, SQL, HTML, XML, URLs, regex literals, CSV, bash quoting and Unicode/hex escapes. The input is decoded with the source dialect and then re-encoded with the target, and a round-trip check warns when a dialect cannot represent the text losslessly. All of it runs in your browser.

  • 100% free — no account needed
  • Runs in your browser
  • Nothing is uploaded

Frequently asked questions

Is String Escape / Unescape Tool really free?

Yes. String Escape / Unescape Tool is completely free on PureBrowser — every feature, with no account, no trial, and no credit card.

Does String Escape / Unescape Tool upload my data?

No. String Escape / Unescape Tool runs entirely inside your browser, so anything you type, paste, or open stays on your own device.

Do I need to sign up or install anything?

Neither. There is no account and nothing to download — open the page and String Escape / Unescape Tool is ready to use on desktop or mobile.

Does String Escape / Unescape Tool work offline?

Once the page has loaded, yes. All of the processing happens locally in your browser, so it keeps working without a connection.