Skip to content
KuponGuru
Back

JSON Formatter & Validator

Format, sort and minify JSON, and see exactly which line a mistake is on.

FreeRuns in your browser

About the JSON Formatter & Validator

Paste JSON from an API, a config file or a log and read it properly: indented the way you like, keys sorted if you want them sorted, and minified again when you need one line. If it will not parse, the line and column of the problem are named and the line itself is shown, instead of the character offset browsers report.

How to use it

  1. 1Paste the JSON into the left box.
  2. 2Pick the indent, and turn on sorting or minifying if you want them.
  3. 3Copy the result, or download it as a .json file.

Questions

Why does it say my JSON is invalid when it looks fine?

The usual causes are a trailing comma after the last item, single quotes instead of double ones, or a key without quotes. JSON allows none of the three, however common they are in JavaScript. The line and column shown point at the first place the parser gave up.

Does sorting keys change the data?

No. Object keys have no order in JSON, so sorting them A to Z changes how it reads, not what it means. Arrays keep their order, because order is part of what an array is.

Is my text uploaded or stored?

No. The tool runs in this browser tab. What you paste is never sent to KuponGuru, and it is gone when you close the tab.

NewFree

Base64 Encoder & Decoder

Text to Base64 and back, in any language, with the URL-safe alphabet when you need it.

UtilitiesUse tool
NewFree

URL Encoder & Decoder

Percent-encode a link or one value, decode one back, and read what a long link carries.

UtilitiesUse tool
NewFree

Markdown to HTML

Convert Markdown to clean HTML with a live, safe preview, tables and task lists included.

DocumentUse tool

Looking for something else? Browse every tool.