JSON Formatter and Validator

Runs in your browser: nothing is uploaded

Formatting and checking JSON

Paste your JSON into the left-hand box. A tidied copy appears on the right while you type, and the line beneath tells you whether it is valid. Choose Minify for the smallest possible version, pick an indent, and tick Sort keys if you are comparing two payloads.

When there is a mistake we give you the line, the column and a suggestion. Show me takes you to the character in question.

Why we check it on your device

The JSON people need to fix is rarely harmless. It tends to contain customer records, access tokens and the names of internal servers. Send that to an online validator that works on a server and a third party has a copy.

We read the text inside your browser and nowhere else. Nothing is uploaded or logged, the page works without a connection, and whatever you pasted is gone once the tab is closed.

The mistakes we see most, and the cure

Our messageThe causeThe cure
Trailing comma[1, 2, 3,]Delete the final comma
Single quotes{'name': 'Sam'}Change to double quotes
Keys must be in quotes{name: "Sam"}Write "name"
Must be lower caseTrue or None, pasted from Pythontrue, null
No comments// noteTake the comment out
Expected a commaTwo values side by sidePut a comma between them

A browser console would call every one of these "Unexpected token", which helps nobody. We wrote our own parser so that the message could be specific.

Long numbers are not rounded

Many formatters load your JSON into JavaScript and print it out again. JavaScript cannot store whole numbers above 9,007,199,254,740,991 precisely, so an identifier such as 9007199254740993 comes back as 9007199254740992 without any warning. Order numbers and 64-bit database keys often fall in that range.

We do not convert numbers at all. Each is passed through as written. Press Load a sample and you can see one survive.

Keys that appear twice

{"id": 1, "id": 2} is permitted by the standard, yet programs differ over which value they keep. We format it and flag it, since it is almost always an error.

Formatted or minified?

Formatted JSON is for reading: a code review, a wiki page, a support ticket. Minified JSON is for sending, because removing the spaces makes it smaller. The content is the same in both.

Last reviewed 15 November 2026.