JSON formatter

This runs in your browser. Nothing is uploaded.

What it does

Lays JSON out so you can read it, or squeezes it onto one line. If something's wrong, it tells you the line and column.

Questions

What breaks JSON most often?
A comma after the last item, single quotes, and comments. JavaScript allows all three and JSON allows none.
Why did a long number change?
JavaScript can't hold every digit of whole numbers above 9,007,199,254,740,991. Store long IDs as text in quotes.

Related tools

See the full list: Developer tools