dev utility

JSON Formatter & Validator

Format, minify and validate JSON locally with precise error positions and no silent number rounding.

Format or check JSON

Paste JSON below. Your JSON is not sent to a server. Large integer identifiers are kept exactly as written.

Maximum 8 MB. Comments, trailing commas and single quotes are rejected. Drop a .json file here or open one below.

Try an example

How it works

Paste a JSON document to pretty-print it, minify it, or find the exact line and column of a syntax error. Large identifiers are preserved as written rather than rounded by JavaScript numbers.

Limits

Questions

Does the formatter keep large numbers exact?

Yes. The tokeniser preserves numeric lexemes rather than passing the document through JavaScript number conversion, so identifiers such as 900719925474099312345 stay intact.

Is my JSON sent anywhere?

No. The document is parsed and rendered in the tab. The page has no upload endpoint and does not log JSON content. You can paste or drop a file locally.

Does the validator repair JSON automatically?

No. It explains the problem and highlights the offending position. Automatic repair can hide data changes, especially for comments, trailing commas or JSON5-style keys.

What are the most common JSON errors?

Trailing commas, comments, single-quoted keys, unquoted keys, missing commas or colons, unescaped control characters and JavaScript values such as undefined or NaN. The error panel names the likely case it detects.

Privacy

Approved improvement measurement records coarse event counts only: page ready, task started, completed, export requested and a generic failure class. It never records filenames, file contents, text, output, full URLs or a visitor ID. You can turn measurement off for this hostname below.