Format raw or minified JSON into readable indented output, validate it, or minify it into a compact single line. Everything runs locally in your browser — no JSON data is ever sent to a server.
This tool formats raw or minified JSON into human-readable indented output, or minifies it into a compact single line. Validation happens at the same time — if the input is not valid JSON, an error message is shown. You can choose between 2-space, 4-space, or tab indentation, and optionally sort all object keys alphabetically. Everything runs in your browser using JavaScript's built-in JSON.parse and JSON.stringify.
No. It validates and formats valid JSON only. Syntax errors show an error message.
Reorders all object keys into alphabetical order at every level of nesting, making large structures easier to compare or read.
Format adds indentation and line breaks for readability. Minify removes all whitespace for a smaller file size. Both validate the input first.
No enforced limit. Very large files may slow the browser tab as everything runs locally.
No. All formatting runs in your browser using JSON.parse and JSON.stringify. Nothing is transmitted.
Yes. Once the page has loaded, all processing runs locally.
2 spaces is most common for JSON. 4 spaces matches Python conventions. Tabs suit some codebases — check your project's style guide.
Yes, completely free with no sign-up required and no usage limits.
Everything is processed locally in your browser — the JSON is never sent to a server.