Add compact JSON
Paste JSON or choose a local .json file up to 10 MB.
Browser-local JSON formatter
Turn compact JSON into a readable structure with consistent indentation. Your input stays on this device.
No account · no upload · no installation
01 — 03
Formatting starts with strict validation, so the result is both consistent and valid.
Paste JSON or choose a local .json file up to 10 MB.
Select two or four spaces, then format the complete document.
Review the readable result and use it in your editor, documentation, or test fixture.
EXAMPLES & SYNTAX
The parser preserves JSON values while changing only the representation required by this tool.
{
"site": "jsonminify.org",
"enabled": true,
"items": [1, 2]
}{
"site": "jsonminify.org",
"enabled": true,
"items": [
1,
2
]
}{"name":"value"}Keys and string values require double quotes.
[1, 2, 3]Items keep their original order.
true · false · nullThese tokens are lowercase and are not quoted.
space · tab · line breakOptional outside strings; meaningful inside quoted strings.
WHY JSONMINIFY.ORG
The formatter rewrites whitespace only after standard JSON parsing succeeds.
Normalize nested objects and arrays with a predictable two- or four-space layout.
Trailing commas, comments, and unquoted keys are reported instead of silently repaired.
Formatting, copying, and download preparation happen entirely in your browser.
COMMON USE CASES
Formatting helps humans inspect structure, review changes, and explain data without changing the values consumed by software.
Expand a compact response into nested objects and arrays that are easier to scan during debugging or integration work.
Create consistent code samples for API guides, support articles, tickets, and technical discussions without manually aligning braces and commas.
Reveal nesting and sibling keys before reviewing a configuration change, checking an exported setting, or comparing environments.
Normalize indentation before a code review so structural edits are separated from inconsistent whitespace changes.
JSON REFERENCE
Formatting is a serialization step performed after strict parsing. It improves presentation but does not add schema checks or repair invalid source.
Two spaces keep documents relatively compact and are common in web projects. Four spaces create stronger visual separation for deeply nested data. Both outputs represent the same JSON value.
Opening and closing braces or brackets move to predictable levels, while commas separate sibling values. The formatter does not flatten nested structures.
Escaped characters remain valid JSON strings and numeric values remain numbers. Formatting does not convert values into a different type.
A document can be valid JSON but still violate an API contract. Use a JSON Schema validator when you need required fields, formats, ranges, or business rules.
FAQ
What the formatter changes, what it rejects, and where your data is processed.
No. It parses standard JSON and writes the same values with consistent whitespace and indentation.
This version supports two or four spaces so results stay predictable across editors and platforms.
No. The tool reports the error location and preserves your original input for correction.
No. Parsing and formatting run locally in the browser and the site does not receive your JSON.