JSON Lint

Validate, format, and minify JSON. Runs in your browser — your data never leaves the page.

How it works

Paste or type JSON in the editor above. As you type, we run the browser's native parser and report the first error with its line and column. Hit Format to pretty-print, or Minify to strip whitespace.

Why this site is fast

Guides

FAQ

Is my JSON sent to a server?

No. Validation runs in your browser using the built-in JSON parser.

What's the difference between formatting and minifying?

Formatting adds indentation and newlines so JSON is readable. Minifying removes all unnecessary whitespace to make it as small as possible — useful for embedding in code or reducing payload size.

Why does JSON not allow comments or trailing commas?

The JSON spec (RFC 8259) keeps the format minimal so parsers stay simple and interoperable. If you need comments, consider JSONC or JSON5 — but most APIs expect strict JSON.