JSON Formatter & Validator

Paste JSON to validate it and format it with readable indentation, or minify it for production. Errors are reported with the line and column so you can fix them quickly. Everything runs locally in your browser.

Free · No sign-up Developer Utilities

How to use the JSON Formatter & Validator

  1. Paste your JSON into the input box.
  2. Click Format (choose 2 or 4 spaces or tabs) or Minify.
  3. If the JSON is invalid, read the error message and line number.
  4. Copy or download the result.

Examples

Input: {"name":"eSoftStudio","tools":30,"free":true}

Formatted with 2 spaces:

{
  "name": "eSoftStudio",
  "tools": 30,
  "free": true
}

How it works

The tool uses your browser’s standards-compliant JSON parser (RFC 8259). Common errors include trailing commas, single quotes instead of double quotes, unquoted keys and comments, none of which are allowed in strict JSON.

Frequently asked questions

Is my JSON sent to a server?
No. Parsing and formatting happen entirely in your browser, so it is safe for API responses and configuration files.
Why is my JSON invalid?
The most common causes are trailing commas, single-quoted strings, unquoted property names and comments. The error message points to the location of the problem.

Related guides