How to use this tool
Paste JSON, select two- or four-space indentation and choose Format, Validate or Minify. Read syntax feedback, copy the output or clear both editors. JSON input and results stay on your device.
How it works
The browser’s standards-compliant JSON parser validates input, then JSON serialization produces formatted or compact output. Objects, arrays and primitive JSON values are supported. Content is displayed as plain text and never executed.
A QUICK EXAMPLE
Put it into practice.
{"items":[1,2],"active":true} becomes a readable object with line breaks and indentation. Minify removes unnecessary whitespace without changing the parsed structure.
Good to know
Input is limited to 1,000,000 UTF-16 code units. JSON parsing follows JavaScript number semantics: integers beyond 9,007,199,254,740,991 may lose precision. Duplicate object keys retain the last value. Comments, trailing commas and undefined are not valid JSON. Error locations are shown only when reliably derivable.
Common questions
Can I format a JSON array or a single value?
Yes. Arrays, objects, strings, numbers, booleans and null are valid top-level JSON values.