Indent
Input JSONJSON
OutputJSON
Frequently Asked Questions
How do I use JSON Formatter?
Step 2 — pick the indent style in the top-right toolbar (2 spaces, 4 spaces or a Tab); the result is regenerated on the fly. Step 3 — click "Minify" to collapse the JSON into a single compact line, ideal for embedding in code or sending as an API request body.
What can JSON Formatter do?
Front-end developers working on configuration files such as package.json or tsconfig.json can normalise formatting and keep their team style consistent. QA engineers writing API test cases can minify JSON before dropping it into scripts to avoid escape headaches.
Is my data private when I use JSON Formatter?
The JSON you enter is never uploaded to any server or written to any log, so you can safely process business data that contains sensitive information. The JSON you enter is never uploaded to any server or written to any log, so you can safely process business data that contains sensitive information.
What technical details should I know about JSON Formatter?
Keys must use double quotes; special characters inside strings must be escaped with \\ ; numbers may be integers, floats or scientific notation; booleans are exactly true / false , and the null value is null . For very large files (tens of MB or more) we recommend using a desktop streaming parser to avoid browser lag.