Encoding
JSON Escape
Escape text into a valid JSON string literal — newlines, quotes and unicode handled automatically.
Output will appear here…Why use our JSON Escape?
100% private
Everything runs in your browser. Your data never leaves your device — safe for production payloads.
Instant results
No round trips, no rate limits, no login. Format, validate and inspect megabytes of JSON in milliseconds.
Standards-first
Follows RFC 8259 / ECMA-404 exactly. Reports errors with precise line and column diagnostics.
Related developer tools
JSON Unescape
Unescape a JSON string literal back to plain text — reverses \n, \", \uXXXX and other escapes.
OpenJSON Stringify Online
Convert JSON into an escaped JavaScript string literal — ready to paste into code with correct quoting.
OpenJava Escape
Escape a plain string into a Java string literal — non-ASCII characters escaped as \uXXXX.
OpenJavaScript Escape
Escape a plain string into a JavaScript string literal — handles quotes, backslashes and control characters.
OpenJSON to Base64
Convert JSON to a compact Base64-encoded string. Great for embedding JSON in URLs, cookies or headers.
OpenJSON URL Decode
URL-decode a percent-encoded JSON string and pretty-print the parsed structure.
OpenRelated reading
Deep-dive guides that pair well with the JSON Escape.
Guides
What is JSON? A developer's introduction
Understand the JSON data format, its history, and why it dominates modern APIs and configuration files.
ReadComparisons
JSON vs XML: which should you use?
Compare readability, verbosity, tooling, schema support and performance between JSON and XML in modern systems.
ReadDeveloper Tips
10 common JSON errors and how to fix them
Every JSON syntax error you'll ever see — trailing commas, unquoted keys, bad escapes — with a working repair strategy.
Read