JSON Formatter & Validator

Pretty-print, minify, and validate JSON locally with instant error pointers.

Great for API payloads and logs: nothing is sent to a server, and line/column hints speed up fixes.

Other languages 日本語 | English | 简体中文 | Español | Português (Brasil) | Bahasa Indonesia | Français | हिन्दी | العربية

Why use this formatter?

Validate fast

Format and debug JSON

Paste JSON, pick an indent, and format or minify. Errors are highlighted automatically with a caret under the position.

Parsing runs locally. Empty input stays empty without errors.

Formatted JSON

Preview

How to use this formatter

Use this page when you need to quickly validate a JSON payload, fix a parse error, and copy a clean result without sending anything to a server.

Recommended workflow

  1. Paste the original JSON and confirm whether the live validator reports an error.
  2. Use Format when you want readable indentation, or Minify when you want compact JSON for transport.
  3. Before copying, confirm the indent size and make sure escaped characters still match your intended payload.

What this tool does not change

Frequently asked questions

Will my JSON be uploaded?

No. Parsing, formatting, and error highlighting happen only in your browser, so sample payloads stay on your device.

How are errors highlighted?

When parsing fails, the tool shows the line and column plus a caret under the exact position so you can fix it quickly.

Does this tool round numeric values?

No. The formatter uses the browser's JSON parser and serializer. It changes whitespace and layout, but it does not round numbers for display.

What is the difference between Format and Minify?

Format adds indentation and line breaks for readability. Minify removes extra whitespace so the JSON becomes compact.

What should I review before copying formatted JSON?

Check that the parse error is gone, confirm the indent size you want, and make sure escaped characters still match your original intent.