Skip to content
Let’s talk
Menu
← All free toolsJBR / Developer

JSON Formatter

Make JSON easy to read, or small enough to ship. Validate, format, and sort it entirely in your browser.

Runs locally in your browser · no uploads or account
01 / YOUR JSONSTRICT JSON

0 / 2,000,000 UTF-16 characters

02 / VALIDATED OUTPUTLOCAL ONLY
Waiting for valid JSON

Paste JSON, then choose Format or Minify.

Background processing · maximum depth 100

Output limit: 4,000,000 UTF-16 characters. If exceeded, try Minify or smaller input. No partial output is created.

Duplicate keys and unsafe integers stop formatting. Quote long IDs to keep every digit.

MAKE STRUCTURE VISIBLE

Same data.
A clearer view.

Paste JSON. Choose your view.

Format adds two or four spaces of indentation. Minify removes unnecessary whitespace. Enable sorting for alphabetical object keys at every depth; arrays keep their order. Copy or download only when you’re ready. Editing input or options clears the previous result.

Strict input, useful errors.

This tool accepts RFC 8259 JSON syntax, including scalar values. Comments, trailing commas, single-quoted strings, and duplicate keys are rejected. Validation errors show a line and column. Nothing is repaired or executed.

Keep identifiers exact.

Integer values outside −9,007,199,254,740,991 to 9,007,199,254,740,991 are rejected, including exponent notation. Quote large IDs as strings. Other numbers use JavaScript’s floating-point precision: decimal notation may change, very small values can round to zero, and negative zero formats as zero. Values that overflow the finite number range are rejected.

Limits: 2,000,000 UTF-16 characters of input, 4,000,000 of output, and 100 nested arrays/objects. The output limit applies to Format and Minify, with or without sorting; oversized results are refused before output is created. If a worker is unavailable, direct processing is capped at 100,000 input characters. No hidden truncation, uploads, schema downloads, executable previews, or saved history. Clear or leave the page to discard your input and output.