JSON formatter

Format, minify, and validate JSON without changing number precision.

Up to 100,000 characters. Text stays on your device.

RESULT

Paste text to get started.

Up to 100,000 input characters, 64 nesting levels, and 1 million output characters. Duplicate keys are preserved with a warning. No JSON5, automatic repair, uploads, or URL fetching.

How it works

Format, minify, and validate standard JSON locally. Numbers and object-key order are preserved as entered.

The formatter validates JSON tokens and inserts or removes whitespace outside strings. It does not convert number tokens into floating-point numbers.

A worked example

{"n":9007199254740993} retains the exact digits after formatting. An object with a trailing comma is rejected.

A few useful answers

Does formatting upload my JSON?

No. Processing stays in this browser page. Pasted content is not stored or sent in analytics.

Back to calculator ↑