JSON Formatter

Free. No sign-up. Your input is processed in your browser.

Format, validate and minify JSON. Large integer IDs keep every original digit.

How to format JSON

  1. Paste your JSON, drop a file on the box, or press the folder button (Open file).
  2. The formatted result appears automatically. Choose Text, Tree or Compact.
  3. Press Copy or Download.

Why big numbers matter

JavaScript numbers hold integers exactly only up to 9,007,199,254,740,991. A formatter that parses and rewrites a larger ID can silently change its last digits. This tool checks that the JSON is valid, then re-indents your original text, so the digits stay as you typed them.

{"orderId": 12345678901234567890}

Common JSON errors

For these, try the JSON repair tool.

Questions

Does formatting change my values?

No. Only the whitespace between tokens changes.

What file size works?

You can open files up to 5 MB. Performance near that limit has not been benchmarked.

Related tools

See all tools