JSON Formatter, Validator & Minifier
Format, validate, and minify JSON in your browser. See parse errors with line/column. Optional key sorting. Nothing is uploaded.
Runs 100% in your browser — nothing is uploaded.
79 bytes
Result
130 bytes(+65%)
Frequently asked
Is my JSON uploaded anywhere?
No. Formatting and validation happen entirely in your browser using the native JavaScript engine. Your data never leaves the device.
Why does the parser say "unexpected token"?
JSON is stricter than JavaScript: keys must be double-quoted strings, no trailing commas, no comments. The error message shows the exact line and column where parsing failed.
What is "sort keys" for?
It reorders object keys alphabetically at every nesting level. Handy for diffing two JSON blobs that have the same content but different key order.
Related tools
- JWT DecoderPaste any JSON Web Token (JWT) to see the decoded header, payload, and expiratio
- Hash GeneratorInstantly compute MD5 and SHA-family hashes of any text. All hashing happens in
- Base64 Encode / DecodeEncode or decode Base64 text. UTF-8 safe by default. Optional URL-safe variant.
- Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal. Supports huge n
- Cron BuilderPick a preset or enter your own fields to build a cron expression. Includes a pl
- CSS Beautifier & MinifierBeautify minified CSS with proper indentation, or minify pretty CSS to a single