JSON formatter FAQ
- How do I format JSON online?
- Paste your JSON into the box on this page and choose "Format JSON". The editor opens with your text indented and readable. Pick 2 spaces, 4 spaces or tabs, and click Copy or Download.
- Can I choose the indentation?
- Yes: 2 spaces, 4 spaces or a tab. Change it and click Format again.
- Does formatting change my data?
- No. Only whitespace changes. Numbers keep every digit, including ids longer than 15 digits, and keys stay in the order you wrote them.
- How do I minify JSON?
- Paste it, then click Minify. All the whitespace that is not inside a string is removed.
- What if my JSON has an error?
- The error is marked at its line and column with a plain-language hint. If it is close to valid, for example it has comments, single quotes or trailing commas, a Repair button lists what it would fix and applies it, and you can undo it.
- Can it format JSON with comments or single quotes?
- It repairs them first. Comments are removed, single-quoted strings get double quotes, unquoted property names are quoted, and trailing commas are dropped. Then it formats the result.
- Is my JSON uploaded anywhere?
- No. Formatting runs in your browser, and large files are handled in a background thread so the page stays responsive. Nothing is sent to a server.
- Is it free?
- Yes. Formatting, minifying and validating JSON are free, with no account.