JSON Formatter

Everything runs on your device. Nothing is sent anywhere.

How to use the JSON Formatter

  1. 1Paste your JSON on the left, or open a .json file.
  2. 2Pick 2 spaces, 4 spaces, tabs or Minify.
  3. 3Copy or download the result on the right.
Your JSON
Formatted

Paste JSON to format it, check it, or make it smaller. Errors point to the exact spot.

How to use the JSON Formatter

  1. 1Paste your JSON on the left, or open a .json file.
  2. 2Pick 2 spaces, 4 spaces, tabs or Minify.
  3. 3Copy or download the result on the right.

Questions

Is my data private?

Yes. Everything runs inside your browser. Nothing you type or open is sent to a server or saved anywhere.

What does it tell me when my JSON is broken?

The line and column of the first problem, and what is wrong in plain words. For example, a missing comma, a comma before a closing bracket, or single quotes.

Are big numbers kept exactly?

Yes. Numbers are copied exactly as you wrote them. Many formatters round long IDs like 12345678901234567890. This one does not.

What does "Sort keys" do?

It puts the keys of every object in A to Z order. This makes two JSON files easier to compare.

Is it free?

Yes. It is free with no signup and no limits.

More Developer tools

See all