Data tools

We never see your dataFree, no sign-up

JSON formatter and validator

Paste JSON, or something close to it, and get clean, valid JSON as you type. Large IDs and exact numbers stay intact.

JSON

Formatted

{
  "name": "Sample",
  "active": true
}

Guide

How to format JSON

  1. Paste your JSON

    Paste a response, a JavaScript object or a Python dict, or open a file.

  2. Choose the result

    Format for reading or Minify for one line. Indent and key sorting are under Adjust.

  3. Copy or download

    Copy the result straight into your editor, or save it as a .json file.

Know-how

Good to know

Updated

Formatting without changing values

Many online formatters parse JSON into JavaScript numbers and print it back, which silently rounds integers above 9,007,199,254,740,991 and can change decimals like 1.10 to 1.1. Database IDs and money values are where that hurts.

This formatter checks the JSON strictly and then changes only the whitespace between tokens, so every number, string escape and key order stays exactly as you pasted it.

Reading JSON errors

Errors show the line and column where parsing stopped. The real mistake is usually just before that point: a missing comma at the end of the previous line, an extra comma before a closing bracket, or a quote that was never closed.

JSON is stricter than JavaScript. Keys need double quotes, strings can't use single quotes, comments aren't allowed and trailing commas are errors. When the meaning is clear, the formatter fixes these for you and lists what it changed.

Questions

Not here? Email us.

Shortcuts

Set up for a specific job