JSON Formatter and Validator
Paste JSON to check it, format it neatly or minify it. If something is wrong, you see what and exactly where.
How to format JSON
- Paste your JSON in the left box (or press “Example” to try it).
- Choose 2 spaces, 4 spaces, a tab, or Minify. Tick “Sort keys” to order properties A to Z.
- Copy or download the result on the right.
What the checker tells you
- Whether the JSON is valid, and what it holds (an object with N keys, or a list of N items).
- For an error: the line, the column, the line itself with a marker under the problem, and what to change.
- Keys written twice in the same object, which is allowed but usually a mistake.
Working with plain text lists? See Sort lines and Remove duplicate lines.
Frequently asked questions
How do I check if my JSON is valid?
Paste it in the left box. A green "Valid JSON" note appears at once, or a red one that says what is wrong and on which line and column. Press "Show me where" to jump to the problem.
What are the most common JSON errors?
A missing comma between items, a comma after the last item, keys or text in single quotes instead of double quotes, keys without quotes, comments, and Python-style True, False or None instead of true, false and null. The tool explains each of these in plain words.
Can it minify JSON?
Yes. Choose "Minify" to remove all spaces and line breaks, which makes the JSON as small as possible for sending or storing.
Are large numbers kept exactly?
Yes. Numbers are copied exactly as written, so long IDs like 12345678901234567890 are not rounded, which happens with many JavaScript-based formatters.
Is my JSON uploaded?
No. It is checked and formatted in your browser, so API keys, tokens or private data in it never leave your device. Still, avoid pasting secrets into any website you do not trust.