What is JSON Formatter?
Generate a separate result from API responses or configuration JSON. Use Format input or Minify input when you want to change the source itself. The separate result supports 2-space, 4-space or Tab indentation, compact output, and a collapsible tree for smaller documents. Numeric and string tokens, duplicate members and member order are retained; only whitespace outside strings changes.
Tool input is processed locally in a browser worker and is not uploaded by the formatter. The page may still request hosting, advertising and analytics resources. Processing supports up to 2 MiB, 128 nesting levels and 100,000 nodes; output is limited to 8 MiB. Tree view is available up to 2,000 nodes and 32 levels.
Frequently asked questions
Is my JSON uploaded anywhere?
The formatter does not upload your input. Processing happens in your browser. Hosting, advertising and analytics requests are separate from tool input processing.
Why does my JSON fail validation?
The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys, and unescaped newlines inside strings. The error message points to the exact position.
Does formatting change my data?
Only whitespace outside strings changes. A value such as 9007199254740993, exponent notation, string escapes and member order are retained. Duplicate keys are preserved, not repaired; applications may interpret duplicate keys differently. JSON5, comments and trailing commas are not accepted.