JSON Formatter and Validator
Paste JSON to format, check or shrink it.
Your JSON
0 charactersResult
How to use it
- Paste your JSON
Drop it into the box, or press Sample to see how it works.
- Pick format or minify
Choose the indent size, and turn on key sorting if you want a stable order.
- Copy or download
If the JSON is valid you get the result at once. If not, you see the line and column of the problem.
This JSON formatter and validator makes messy JSON readable, finds the exact spot where it breaks, and can squeeze it down to one line. It works on API responses, config files, package files and log lines. The text never leaves your browser, so it is safe for private data.
Common JSON mistakes and how to fix them
A comma after the last item in an object or array is not allowed in JSON, even though many programming languages accept it. Delete the comma.
JSON needs double quotes around every key and every text value. Single quotes work in JavaScript objects but not in JSON.
{name: "Ana"} is a JavaScript object, not JSON. Write {"name": "Ana"} instead.
JSON has no comments. Remove lines that start with // or blocks inside /* */ before you paste.
Common questions
Is my JSON sent anywhere?
Why does it say my JSON is invalid?
What is the difference between format and minify?
Does sorting keys change my data?
Can it handle large files?
More free tools
Analyze text with real-time word, character, sentence, paragraph, and reading time statistics.
Runs in your browserConvert titles and phrases into clean, SEO-friendly, URL-safe kebab-case slugs.
Runs in your browserEncode text to Base64 or decode it back. Works with emoji and any language.
Runs in your browserCompare two texts and see what was added or removed, by line, word or character.
Runs in your browser