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.

Why did a large number change?

Integers beyond JavaScript's safe range (about 9 quadrillion) lose precision. Keep such values as strings.

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