Parse JSON, format it with two-space indentation, or minify it locally. Plain-text output and browser syntax errors; no account required.
Why this matters
Paste JSON and choose Format for two-space indentation or Minify to remove unnecessary whitespace. Parsing and serialization use the browser's JSON APIs; syntax-error wording depends on the browser. This tool does not implement a tree view, schema validation, structural comparison, or conversion to YAML/CSV/TypeScript.
Output size is measured in UTF-8 bytes. Parsing can replace duplicate object keys and round numbers outside JavaScript's safe integer range. It is not a lossless editor for signed payloads, duplicate-key documents, or precision-sensitive numbers. Keep the original.
Try a reproducible example
Paste {"name":"Ada","items":[1,2],"active":true} and choose Format. It becomes an indented object with an indented array. Choose Minify to produce the compact form again. See the step-by-step JSON example for the expected output and invalid-input checks.
Syntax is not a schema
A successful parse says the text is syntactically valid JSON. It does not check required fields, types, domain rules, or whether an API accepts the payload. Reference: RFC 8259.
Frequently Asked Questions
What is JSON?
JSON (JavaScript Object Notation) is a lightweight data format used by APIs, config files, and databases. It's human-readable and easy for machines to parse.
Does this send my data anywhere?
No. Parsing happens entirely in your browser.
What's the difference between format and minify?
Format adds whitespace and indentation for readability. Minify removes all unnecessary whitespace to reduce file size, ideal for production APIs.
Why does my JSON fail to parse?
Common issues: missing quotes around keys, trailing commas, unescaped characters in strings. The error message points to the location.