All tools · Developer

JSON formatter & validator

Paste JSON to format it at once; errors are pointed out by line and column. Your data never leaves the browser.

How to use

  1. Paste your JSON.
  2. Choose the indent and whether to sort keys; the result appears below.
  3. Errors show their line and column, and are checked again as you edit.

Questions

Is it safe for API responses or config files?

Formatting and validation run in your browser; the data is not uploaded or stored.

What about comments or trailing commas?

Standard JSON allows neither, so they are reported as errors.

Are numbers or key order changed?

No. Unless you sort them, keys stay in their original order and numbers are kept exactly as written (1.0, 1e2, very large integers). Duplicate keys are flagged.

How are keys sorted?

By character code, including keys of nested objects.

Are non-ASCII characters escaped?

No. They are output as they are.

Related tools

All tools