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
| Dialect | Escaped form of |
|---|---|
| JSON string | a\"b\\c\nd — ü |
| JavaScript / TypeScript | a\"b\\c\nd — ü |
| Java | a\"b\\c\nd — ü |
| Python | a\"b\\c\nd — ü |
| C / C++ / C# | a\"b\\c\nd — ü |
| SQL (single quote) | a"b\c d — ü |
| HTML entities | a"b\c d — ü |
| XML entities | a"b\c
d — ü |
| URL percent-encoding | a%22b%5Cc%0Ad%20%E2%80%94%20%C3%BC |
| Regex literal | a"b\\c\nd — ü |
| CSV field | "a""b\c d — ü" |
| Shell (single quotes) | 'a"b\c d — ü' |
| Shell (double quotes) | "a\"b\\c d — ü" |
| \uXXXX sequences | a"b\c\u000ad \u2014 \u00fc |
| \xNN sequences | a"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.
More developer tools
Folder Structure Generator
Build folder structure diagrams, ASCII directory trees, and file tree visualizations for READMEs and docs.
.gitignore Generator
Generate merged .gitignore rules for your stack with one click.
JSON to TypeScript Interface
Convert JSON into TypeScript interfaces with inferred nested types.
Text to Slug Converter
Convert titles and phrases into clean SEO-friendly URL slugs.
UTM Builder
Build campaign URLs with UTM parameters for analytics tracking.
JSON Formatter & Validator
Validate, format, and minify JSON directly in your browser.