JSON Formatter
Beautify and validate JSON in your browser.
About this tool
Paste JSON to format it with indentation, validate it, or minify it. If it is invalid, you get the line, the column and the usual cause.
How to use
How it works
Valid JSON uses double quotes, no trailing commas and no comments. When parsing fails, the tool points at the first character that cannot be valid.
Worked example
A trailing comma
- Input
- {"tags": ["a", "b",]}
- Output
- Line 1, column 20: Trailing comma before a closing bracket
- Walkthrough
- Remove the last comma and it formats cleanly.
Limitations
- Strict JSON only: comments and single quotes are rejected.
Questions
Why is my JSON invalid?
Is my JSON uploaded?
Features
- Format, validate, minify
- Line and column errors
- Private
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
What Is A RESTful API?
Traversy Media
Most APIs exchange JSON—context for pretty-print and schema checks.
Watch on YouTubeInspect Network Activity - Chrome DevTools 101
Chrome for Developers
Debugging payloads you paste into JSON and JWT tools.
Watch on YouTube
- Introducing JSON
json.org
Canonical JSON grammar—handy when a formatter rejects a trailing comma.
- RFC 8259 — The JavaScript Object Notation
IETF
The standards text behind modern JSON interoperability rules.