JSON Formatter
Paste JSON to prettify or minify it. Validation errors are highlighted instantly.
More Tools
About JSON
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write, and easy for machines to parse and generate. JSON is based on a subset of JavaScript and is language-independent.
JSON data types
- String: "text" (must use double quotes)
- Number: 42 or 3.14
- Boolean: true or false
- Null: null
- Array: [1, 2, 3]
- Object: {"key": "value"}
Frequently Asked Questions
Why is my JSON invalid?
Common JSON errors include: trailing commas after the last item, single quotes instead of double quotes, unquoted keys, comments (JSON doesn't support them), or missing commas between items. Our formatter pinpoints the exact error.
What is the difference between prettified and minified JSON?
Prettified JSON has indentation and line breaks to make it human-readable. Minified JSON removes all unnecessary whitespace to reduce file size — useful for APIs and production data transfer.
Is my JSON data kept private?
Yes. All formatting happens entirely in your browser using JavaScript. Your JSON data is never sent to any server.