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
Processing runs in your browser session; very large inputs may be slow or memory-heavy. Edge cases, locale-specific rules, and third-party API semantics may differ—verify critical results independently before relying on them in production or legal contexts.
Example
Input {"b":2,"a":1} for format-json yields a deterministic reformatted string unique to this converter.