JSON Formatter
Format, minify and validate JSON without changing large integers, number notation, key order or string escapes. Import files and locate syntax errors.
Convert readable text to Unicode escapes and back, including UTF-16 pairs, code point escapes, emoji and common control characters.
Updates as you type or change an option
Inspect escaped API text without running JavaScript. The result is converted text, not a complete quoted string literal ready for every programming language.
Enter readable text on the left or escaped text on the right. UTF-16 mode uses \uXXXX; code point mode uses \u{...} for characters outside the basic multilingual plane.
Decoding also accepts \xXX, newline, tab and backslash escapes. Invalid code points, incomplete escapes and unpaired surrogates are rejected. No JavaScript is executed. Input limit: 2 MiB.
UTF-16 represents some characters with a surrogate pair. Code point mode can use one \u{...} escape instead. JSON accepts \uXXXX escapes but not the braced code point syntax.
Paste the escape sequence on the encoded side: \u0041\nB becomes A, a line break and B. Do not add enclosing quotes; they would remain part of the text.
Look for a trailing backslash, an incomplete \uXXXX sequence or an unpaired surrogate. Restore the missing source characters; the tool cannot infer them or evaluate JavaScript expressions.
Your choice about analytics
We use Umami to measure page visits. Analytics is optional, and your tools work either way.
Your current setting allows analytics.
Your current setting does not allow analytics.
The analytics service has changed. Refresh the page after finishing your current work to apply the new settings.
Your browser is sending a Do Not Track or Global Privacy Control signal. Analytics will remain off.
We use Umami to understand which pages people visit and how they find this site. You can decline or change your choice at any time. All site features will still work.
Your choice is saved in this browser for six months. Analytics does not upload files or content you enter in our tools.
Privacy Policy
Comments
0