JSON Formatter and Validator
Format, validate, minify, and sort JSON in your browser. Errors show the line and column so you can fix them quickly.
About this tool
Paste JSON to pretty print it with two spaces, four spaces, or tabs, or minify it to one line. Sort keys to compare two payloads.
When the JSON is invalid, the formatter shows the line and column where parsing stopped.
Runs entirely in your browser. Nothing you enter or open is uploaded.
Questions
- Does it accept comments or trailing commas?
- No. It checks strict JSON as defined by RFC 8259, which is what APIs expect.
- Is there a size limit?
- Only your browser's memory. Files of several megabytes format in a moment.