CompleteSEOTools
Home › Web Apps › JSON Editor

JSON editor

Paste JSON, fix it in the text view or the tree view, and download the result.

About JSON Editor

The text view checks your JSON as you type and points to the line and column of the first mistake. The tree view shows objects and lists you can collapse and expand, change a value, add a key or delete an entry. Format, minify and sort keys work on the whole document. Big files are fine because the tree only draws the parts you open, in batches of 100 entries. Everything stays in your browser and nothing is uploaded.

  • Finding the missing comma in a config or API response.
  • Changing a few values in a large file without hand editing the text.
  • Sorting keys so two files can be compared line by line.
  • Shrinking JSON before it goes into a URL or a request.

How to use JSON Editor

1

Step 1

Paste JSON into the text box or open a .json file. Errors show under the box.

2

Step 2

Open the Tree tab to expand entries. Use edit, add or delete beside any entry.

3

Step 3

Go back to Text to see the result, then Copy or Download.

Good to know

  • JSON has no comments and no trailing commas, and keys need double quotes. The checker tells you when it finds one of these.
  • Numbers are read as ordinary JavaScript numbers, so integers above 9,007,199,254,740,991 may lose their last digits.
  • Duplicate keys in the same object are merged and the last one wins, which is how the browser reads JSON.

Common questions

How large a file can it open?

Files of a few megabytes open without trouble. Up to about 40 MB can be loaded, but the page will be slower and a very large tree takes time to build.

Does sorting change my data?

Only the order of keys inside objects. Lists keep their order, because order in a list carries meaning.

Is my JSON sent anywhere?

No. It is read and changed inside this page only.