Toolvito

Calculates on this device. File exports run online.

JSON Editor & Validator

Paste JSON or open a file. The page checks it as you type, shows where a mistake is, and lets you change, compare, clean or convert the data. Large files and full JSON Schema checks run on the Toolvito server when you ask.

Enter your values

Checks the JSON, shows where a mistake is, lists every value with its path and gives the formatted text.

Your values

Type or paste JSON, or open a file. It is read on this device and is not uploaded.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Run.

Large files and full schema checks on the server

Task
Full JSON Schema check

Checks the data and the schema of Check JSON against a JSON Schema above with every keyword of drafts 4 to 2020-12, including formats such as email and date-time. Choose that option above first.

More options

The editor above works in your browser. When you use this box, the files you choose here (or the data and schema of the schema check) are sent to the Toolvito server. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use the JSON editor

  1. Choose what you want to do under What do you want to do?.
  2. Paste your JSON into the box, or choose Or open a JSON file from your device.
  3. The result appears at once: the check, a table of every value, or the changed JSON.
  4. Use Copy text or Download file to keep the result. After an edit, Keep editing this JSON puts the result back in the box.

What each part does

  • Check and view JSON finds the first mistake with its line and column, counts objects, lists and keys, and lists every value with its path.
  • View JSON Lines reads files with one JSON value on each line (NDJSON, log files) and shows them as a table. Lines with mistakes are listed with their line number.
  • Change a value by its path sets, deletes or renames one value. A path such as /address/city is a JSON Pointer; /languages/0 is the first item of a list.
  • Compare two JSON documents lists what was added, removed or changed. Numbers are compared by value and the order of keys does not matter. Lists can be compared in order, by a key field such as id, or as collections.
  • Flatten, sort or clean JSON turns nested keys into a.b.c and back, sorts keys, removes null or empty values, or removes repeated list items.
  • Merge two JSON documents combines them key by key; where both have a value, the second one wins and is listed.
  • Check JSON against a JSON Schema tests the data against the rules of a schema. The page checks the common keywords of draft 2020-12 and lists any keyword it did not check.
  • Turn a JSON list into CSV makes a table with one column for each key.

When the server helps

The browser handles texts up to 5 MB. The server can check larger files, JSON Schema drafts 4, 6, 7, 2019-09 and 2020-12, and their formats. The box below sends the files you choose or the data and schema you enter for that check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

The server can convert JSON and JSON Lines to CSV, Excel, Parquet, YAML, XML or TOML, run a JMESPath, JSONPath or SQL query over large files, and compare two large documents.

Good to know

  • Every string and number is kept exactly as you typed it. Formatting changes only spaces and line breaks.
  • Duplicate keys are allowed by JSON but read differently by programs. The check lists them; an edit changes the last copy of a key.
  • Valid JSON has no writing mistakes. Whether the data is right is a question for a JSON Schema or for you.
  • Comments, single quotes and trailing commas are not JSON. To correct them, use the JSON Formatter & Validator, which has a repair option.

Related tools