Format, minify, or validate JSON
- Paste JSON and choose an explicit action.
- Select two spaces, four spaces, or tabs for formatted output.
- Copy or download exactly the displayed result.
Format, validate, or minify JSON with native parser semantics and no server processing.
Enter text and choose an action.
Format readable JSON, create a compact representation, or validate syntax without changing the input. Standard JSON parsing preserves array order and insertion order but duplicate object keys resolve according to normal parser behavior.
A bounded UTF-8 string is passed to the browser's native JSON parser only after you choose an action. Formatting uses JSON.stringify without custom key sorting.
Formatting adds indentation for readability. Minifying removes insignificant whitespace while preserving parsed JSON values.
No. Arrays, strings, numbers, booleans, and null are valid JSON roots.