↑ ↓ NavigateEnter Open toolEsc Close

JSON Formatter & Validator

Paste JSON to check its syntax and make nested data easier to read. Choose two spaces, four spaces, or tabs for indentation, or minify valid JSON into a compact result.

Format and validate JSON

Paste your JSON below. Parsing stays in your browser.

Run with Ctrl / ⌘ + Enter · Search with Ctrl / ⌘ + K

How to use JSON Formatter & Validator

  1. Paste your JSON or load the example.
  2. Choose an indentation style, then format, minify, or validate.
  3. Correct any syntax errors and copy the output.

Examples

Pretty-print with two spaces

INPUT
{"name":"DevKitNow","private":true}
RESULT
{
  "name": "DevKitNow",
  "private": true
}

Minify an array

INPUT
[
  1,
  2,
  3
]
RESULT
[1,2,3]

When to use this tool

  • Read an API response or a configuration file.
  • Find syntax mistakes before using a JSON document.
  • Compact a sample payload for a test or issue report.

Frequently asked questions

What does this JSON validator check?

It checks whether the input follows JSON syntax. It does not validate your data against a schema or check whether values meet application rules.

Why are comments or trailing commas rejected?

Standard JSON does not allow comments or trailing commas. Object property names and string values must use double quotes.

What is the difference between formatting and minifying?

Formatting adds indentation and line breaks for readability. Minifying removes unnecessary whitespace outside strings. Both parse and serialize the data.

Will formatting preserve every detail of the original text?

No. The tool parses JSON as JavaScript values. Duplicate object keys, very large numbers, numeric formatting, and some property ordering can change during serialization.

Is my JSON stored or sent to a server?

No. Parsing, validation, and formatting happen in your browser. The tool does not upload or store your JSON.