Home › Developer & Design Tools › JSON Formatter and Validator

JSON Formatter and Validator

Paste JSON to check it, tidy it or shrink it.

Private by design: your files and text are processed in your browser and are not uploaded to our servers.

About this tool

Paste JSON and press Format and validate. If it is valid, you get neatly indented text. If it is not, you get a message that says what is wrong and, where the browser gives it, the line and column.

Minify removes spaces and line breaks to make the text as short as possible.

Common JSON mistakes

Single quotes, missing quotes around keys, trailing commas and comments are the most common reasons for an error.

How to use it

  1. Paste your JSON.
  2. Press Format and validate, or Minify.
  3. Copy the result.

Good to know

Key features

Limitations

Privacy and security

Runs in your browser; the file is not sent to any server.

Frequently asked questions

How do I validate JSON?

Paste it and press Format and validate. A valid file is formatted. An invalid one shows an error.

Why does my JSON fail with a trailing comma?

JSON does not allow a comma after the last item. Remove it.

Can I change the indent?

Yes. Choose 2 spaces, 4 spaces or a tab.

Is my JSON uploaded?

No. It stays in your browser.

More tools you may need

Related guides

Last reviewed: 2026-11-22. Found a mistake? Tell us. See our tool accuracy policy.