Home / All tools / JSON formatter and validator

JSON formatter and validator

Paste JSON and see at once whether it is valid. Format it to read it, or minify it to save space.

Published by DirhamKit · Updated 12 Nov 2026

Your JSON stays in this browser. Nothing is stored or sent anywhere.

How do I check if JSON is valid?

Paste it in the box. If it is valid you see "Valid JSON" and the formatted result. If not, you see the reason from the browser's own JSON parser, usually with a position.

Input{a:1}
ProblemKeys need double quotes: {"a":1}

What are the most common JSON mistakes?

Single quotes. JSON strings and keys must use double quotes.
A trailing comma after the last item, such as [1,2,]. JSON does not allow it.
Comments. JSON has no comment syntax, so // and /* */ make it invalid.
Very long whole numbers. This tool uses the browser's number type, which can round integers with more than 15 or 16 digits. A warning appears when the input has 17 or more digits outside quotes.

What is the difference between format and minify?

Formatting adds line breaks and indentation so people can read it. Minifying removes all extra spaces so the file is as small as possible. The data is the same either way.

Questions people ask

Is what I type stored or sent anywhere?

No. The sum runs in your browser and nothing is sent to us.

Does it sort or change my keys?

No. Keys stay in the same order. If a key appears twice, the last value wins, as in the browser's JSON parser.

Is there a size limit?

No fixed limit, but very large files (tens of megabytes) may be slow because the work is done on your device.

Why does my JSON say it is invalid?

The usual causes are a trailing comma after the last item, single quotes instead of double quotes, or a missing quote or bracket. The message shows what the parser found wrong.

Is my JSON sent anywhere?

No. It is checked and formatted in your browser.

Related tools

About this page

Maintained by the DirhamKit editorial team · Last updated 12 Nov 2026

Sources

This tool does its work with standard browser features. It does not depend on a UAE rule.

General information and estimates, not tax, legal or financial advice.