{ } JSON Formatter & Validator

Beautify, minify and validate JSON with precise error locations β€” runs entirely in your browser

Paste JSON below β€” it's validated as you type.

About JSON

πŸ“¦ What JSON is

JavaScript Object Notation β€” the standard data format of the web. APIs, config files and databases all speak it. It's just objects {}, arrays [], strings, numbers, booleans and null.

🎯 Errors with line & column

When your JSON is invalid, this tool points at the exact line and column of the first problem β€” far faster than staring at a wall of text looking for the missing comma.

πŸ› The usual suspects

Trailing commas ([1,2,]), single quotes instead of double, unquoted keys, and comments β€” all fine in JavaScript, all invalid in strict JSON.

πŸ—œοΈ Format vs minify

Formatting adds indentation for humans; minifying strips every unneeded byte for machines. Same data either way β€” minified JSON is typically 20–40% smaller.

πŸ”  Sorted keys for diffs

Sorting object keys alphabetically makes two JSON documents comparable line-by-line β€” great before pasting into a diff tool or committing config to git.

πŸ”’ Safe for real data

Everything happens in your browser β€” API responses, config files and payloads you paste here are never uploaded, logged or stored.