Format or minify JSON directly in the browser.
Paste a JSON object, array, string, number, boolean, or null value, then choose an indentation width from 0 to 8 spaces. Use the minify button when you need compact JSON for logs, URLs, fixtures, or configuration snippets.
Invalid JSON returns a clear error message instead of sending the content to a server.
When to use it
Clean up API responses before code review, shrink JSON fixtures for repositories, or teach students how whitespace affects readability without changing parsed values.
Limitations
Results depend on the values you enter and standard browser math; they are not audited for regulatory compliance. Very large inputs, locale-specific rounding, or edge cases may differ from spreadsheet or server implementations.
Example
For example, enter the default sample values on the form and compare the output with a known reference; adjust one input at a time to see how the result changes.