toolqik

121 · JSON

JSON Editor

Edit JSON in a tree or as text, with types, rename, reorder and undo.

Runs in your browser
Current JSON

  

About this tool

Editing JSON as raw text is fiddly: one missing comma or quote and the whole document is broken. This JSON editor lets you work on the structure instead. Select any node in the tree, change its value or type, rename its key, or add, duplicate, move and delete items. The JSON stays valid after every change, and the text version updates as you go.

How to edit JSON

  1. Paste JSON on the Text tab, open a file, or load the sample.
  2. On the Tree tab, click a node. The panel on the right shows its key, type and value.
  3. Change the value and click Apply. Change the Type to turn a string into a number, an object into an array, and so on.
  4. Use + Add property or + Add item on objects and arrays, Duplicate to copy a node, the arrows to reorder array items, and Delete to remove a node.
  5. Made a mistake? Undo and Redo (or Ctrl+Z and Ctrl+Y) step through your changes.
  6. Copy or download the result from Current JSON.

Tree and text stay in sync

You can switch between the two views at any time. Typing on the Text tab updates the tree as soon as the text is valid JSON; while it isn’t, the error is shown with its line and column, and the tree keeps the last valid version, so you never lose work.

Good to know

  • Renaming a key keeps the property in the same position, and the editor won’t let you create a duplicate key.
  • Numbers must be real JSON numbers: NaN and Infinity are rejected.
  • The editor is designed for files up to a few megabytes. For bigger files, explore them with the JSON viewer.
  • Nothing is uploaded or stored: your JSON exists only in this tab.

FAQ

How do I edit a JSON file online?

Open the file or paste its contents on the Text tab, then click any node in the tree to change its value, key or type. Download the result when you are done.

Can I change the type of a value?

Yes. Select the node and pick a new type, such as number, string, boolean, null, object or array. The value is converted where possible, and you can undo the change.

How do I add a new key to a JSON object?

Select the object and click “+ Add property”. A new key called newKey is added; rename it and set its value in the panel.

Does the editor keep my JSON valid?

Yes. Tree edits always produce valid JSON. On the Text tab, changes apply only when the text parses, and errors are shown with their position.

Is there undo?

Yes. Undo and Redo keep up to 200 steps. Ctrl+Z and Ctrl+Y (Cmd on Mac) work when you are not typing in the text box.

Is my data saved anywhere?

No. The JSON lives only in this browser tab and is gone when you close it. Download it to keep it.

esc
↑↓ navigate↵ open