JSON Formatter & Validator

Validate, format, or compact JSON with clear parse errors.

Scope: JSON numbers that browser number semantics cannot preserve are rejected.

Workbench

Inputs stay on this page.

Parsing validates the complete document. Numeric literals that browser number semantics would change are rejected instead of silently rounded.

How to use JSON Formatter & Validator

  1. Choose “Format and validate” or “Compact and validate”.

  2. Paste your JSON into the JSON box.

  3. Press “Format JSON” or “Compact JSON”, then copy or download the output.

About this tool

Paste JSON to check that it's valid and make it readable with consistent indentation, or compact it onto one line for an API request or a config value.

If the JSON is broken, you get a clear parse error instead of a silently mangled result. Numbers that JavaScript would round, such as very large IDs, are flagged rather than changed.

Questions

Why is my large number rejected?
JavaScript numbers lose precision above 2^53, so an ID like 12345678901234567890 would change silently. The tool refuses it so you can quote it as a string instead.