JSON Formatter & Validator
Beautify and validate JSON, or minify it down to one line. Errors are reported with a clear message so you can find the problem fast — all in your browser.
Format, validate, and minify
Format pretty-prints your JSON with two-space indentation so it’s easy to read. Minify strips every unnecessary space and newline to produce the smallest valid JSON, handy for shrinking API payloads. Either way, the tool first parses your input, so if anything is malformed you get an error pointing at the problem.
Common JSON mistakes
Strict JSON is stricter than most people expect. These all make it invalid:
- Trailing commas after the last item in an object or array
- Single quotes — keys and strings must use double quotes
- Unquoted object keys
//or/* */comments, which JSON doesn’t allow
Everything is parsed locally in your browser with the native JSON engine — your data never leaves your device, so it’s safe to paste private payloads.
Frequently asked questions
Is my JSON sent to a server?
No. Formatting and validation happen entirely in your browser with the native JSON parser. Your data never leaves your device, so it is safe to paste sensitive payloads.
What does "minify" do?
Minifying removes all unnecessary whitespace and line breaks, producing the smallest valid JSON. That is useful for reducing payload size in API requests or configuration files.
Why does it say my JSON is invalid?
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments — none of which are allowed in strict JSON. The error message points to where parsing failed so you can fix it.
More tools
Checksum & Hash Calculator
MD5, SHA-1, SHA-256 & SHA-512 of any file or text. Verify a download against its published checksum.
BandwidthDownload Time Calculator
Estimate transfer time from a file size and your connection speed.
UnitsFile Size Converter
Convert between B, KB, MB, GB, TB and binary KiB / MiB / GiB units.
EncodingBase64 Encoder / Decoder
Encode text to Base64 or decode it back, with full UTF-8 support.
EncodingURL Encoder / Decoder
Percent-encode text for URLs, or decode an encoded URL back to text.
GenerateQR Code Generator
Make a QR code from any text or link; download as PNG or SVG.