Skip to content
FileTinker

JSON Formatter & Validator

Paste JSON to instantly beautify, minify or validate it. Errors are pinpointed by line and column, and everything runs in your browser — your data never leaves your device.

The formatted JSON will appear here.

JSON tools

Jump straight to the mode you need — each has its own page:

How to format JSON

  1. Paste or type your JSON into the box.
  2. Choose Beautify, Minify or Validate — set the indent and key order if beautifying.
  3. Copy the formatted result, or read the line-and-column error if the JSON is invalid.

About JSON formatting

A JSON formatter (or beautifier) re-indents minified or messy JSON into a readable, consistently-spaced structure, which makes API responses, config files and log payloads far easier to scan and debug. Minifying does the reverse — stripping every space and newline to produce the smallest possible payload for storage or transfer.

Validation parses the text with the same engine browsers use, so anything it accepts is valid JSON anywhere. When parsing fails you get the exact line and column of the problem, which beats hunting for a stray comma or trailing bracket by eye. Because it all happens locally, you can safely format JSON that contains private or production data. One caveat: numbers are parsed as native doubles, so integers above 2^53 or very long decimals can lose precision.

Frequently asked questions

Is my JSON uploaded anywhere?

No. Formatting, minifying and validation all run in your browser using the built-in JSON parser, so whatever you paste never leaves your device — safe for private or production data.

What's the difference between beautify and minify?

Beautify re-indents JSON with line breaks and spacing so it is easy to read; minify removes all unnecessary whitespace to produce the smallest valid JSON, which is ideal for transfer or storage.

Why does it say my JSON is invalid?

The validator reports the first syntax error with its line and column. Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or a missing bracket or brace.

Can it sort JSON keys?

Yes. Turn on “Sort keys” when beautifying and every object’s keys are ordered alphabetically (recursively), which makes two JSON documents easy to compare.