PlainLogic

Free tool · No sign-up · No uploads

JSON Formatter & Validator

Paste messy JSON, get clean JSON back — formatted, minified, or checked, with the exact line and column when something is wrong. It runs entirely in this tab: nothing is uploaded, nothing is stored.

Format some JSON

Format, minify, and validate JSON

Paste an API response, a config file, or a data dump — up to 1 MB.

Result

Formatted output appears here, with keys, strings, and numbers highlighted.


            

Tip: Ctrl + Enter (or Cmd + Enter on Mac) formats from the input box.

How to use it

  1. Paste your JSON in the left box — or hit Load sample to see it work.
  2. Format to pretty-print it, Minify to strip every space, or Validate to check it without changing anything.
  3. Copy or download the result. If the JSON is invalid, the error panel shows the exact line and column, with the offending line marked.

What it does

Pretty-prints with 2-space, 4-space, or tab indent; minifies to one line; sorts object keys A–Z; and validates with a precise error location — the line, the column, and the offending line with a caret underneath.

Private by design

Your JSON is parsed in your browser tab and never sent anywhere. There is no server call, no upload, and no account — paste an API key or a token in a payload and it stays on your machine.

When to use it

Reading an API response, cleaning up a config file, checking a data export before it goes into a script, or finding the one bad comma that broke a fetch call. If it parses here, it parses everywhere.

Questions

Is it free?

Yes. Formatting, minifying, and validating JSON are free to use as often as you like. There is no account and no trial.

Does my JSON get uploaded anywhere?

No. Your JSON is parsed right in your browser tab, on your own device — it is never sent to a server, stored, or logged. The page works offline once it has loaded.

What does the validator check?

Syntax only: whether the text is well-formed JSON. It reports the exact line and column of the first problem, with the offending line shown. It does not check a schema — it cannot tell you whether a field means what you think it means.

What happens with duplicate keys?

The last value wins, which is how JSON.parse behaves everywhere. The tool does not warn about duplicates — if two keys collide, check the source that produced the JSON.

How large can the JSON be?

Up to 1 MB of pasted text. The cap keeps the tab responsive on large dumps — for anything bigger, split the file and check one piece at a time.

Get PlainLogic

Get PlainLogic

Useful AI and technology, explained simply. New tools, practical guides, prompt techniques, and the occasional update worth knowing about.

This is the automated list — one-way updates in your inbox. For a human reply, write to help@plainlogic.org instead.