Home › All tools › JSON formatter
JSON formatter
Format messy JSON so you can read it, minify it, or find out exactly where it is broken.
JSON को पढ़ने लायक बनाएँ या छोटा करें।
How to use it
- Paste the JSON.
- Press Format to lay it out, or Minify to strip every space.
- If it is invalid, the error says which line and character broke it.
About this tool
JSON is stricter than it looks. Keys must be in double quotes, strings cannot use single quotes, and a trailing comma after the last item is invalid even though most editors let you type it. Those three account for most of the errors this tool reports.
Minified JSON is what you send over a network; formatted JSON is what you read. Neither changes the data, so you can move between them freely. Sorting the keys makes two versions of the same object comparable in the text comparison tool.
Tips
- The error message gives a position; counting from there usually finds a missing comma or bracket.
- A response copied from a browser's network tab is often minified — format it first.
- Sorted keys plus the compare tool is the quickest way to find what changed between two payloads.
Questions people ask
Does it send my JSON anywhere?
No. It is parsed by your browser's own JSON engine.
Will it fix broken JSON?
No, it reports the first error it finds. Fixing is up to you.
Does it handle very large files?
A few megabytes is fine; beyond that the browser slows down.