Developer utility

JSON Formatter

Validate, format, minify, inspect, and copy JSON with a readable output panel, tree view, path table, and parser feedback directly in your browser.

Input

Paste JSON

Validation Waiting

Paste JSON to validate, format, minify, and inspect structure.

Size0 B
Depth0
Keys0
Items0

Output

Formatted or minified JSON

Tree view

JSON structure

Paths

Key paths and value types

#PathTypePreview

Examples

Common JSON samples

JSON quick reference

ValueValid JSON exampleNotes
Object{"name":"Ada"}Keys must use double quotes.
Array[1,2,3]Values are ordered.
String"hello"Strings use double quotes, not single quotes.
Number42No quotes around numeric values.
BooleantrueUse lowercase true or false.
NullnullUse lowercase null.

JSON formatting notes

  • JSON does not allow comments, trailing commas, or unquoted object keys.
  • Formatted JSON is easier to review; minified JSON is better for compact transfer.
  • Sorting keys can make config diffs easier, but it changes the original property order.
  • The path table samples nested values so large JSON objects remain scannable.

JSON formatter FAQ

Is this JSON formatter private?

Yes. The page uses browser JavaScript to parse and format JSON locally.

Can it fix invalid JSON automatically?

No. It reports parser errors, but it does not guess corrections that could change data meaning.

Can I minify JSON after formatting it?

Yes. Both actions parse the current input and write the chosen result into the output panel.