JSON Editor Online

Edit JSON as a tree: change values and keys, add, duplicate, move and delete items, and change types, with undo. The text updates as you edit. Runs in your browser, so your data is never uploaded.

JSON text

Ln 1, Col 1Empty

Tree editor

Your editable tree will appear here.
No JSON loaded

What Is a JSON Editor?

A JSON editor lets you change JSON without hunting for commas and brackets in a wall of text. Each value appears in a tree where you can click and type. The editor keeps the structure valid for you, so the result is always correct JSON. Edit config files, fix an API response before sending it back, or build test data by hand.

How to Edit JSON Online

  1. Paste your JSON on the left, drop a .json file on it, or click Sample.
  2. Click Format & Load. Common mistakes like trailing commas or single quotes are repaired first.
  3. Edit in the tree: click a value or key, type, and press Enter.
  4. Copy the updated JSON from the left panel, or download it as a file.

What You Can Do in the Tree

ActionHow
Change a valueClick it, type, then press Enter or click elsewhere. Esc cancels.
Rename a keyClick the key name and type a new one. Duplicate keys are refused.
Add a key or itemClick + on an object or array.
DuplicateClick ⧉ to insert a copy right after the item.
Reorder an arrayUse ↑ and ↓ on array items.
DeleteClick ✕.
Change the typePick string, number, boolean, null, object or array from the type list. "42" becomes 42, an object becomes an array of its values, and so on.
Undo and redoButtons above the tree, or Ctrl + Z and Ctrl + Y.

You can also keep typing in the text panel: as soon as the text is valid JSON, the tree updates. While the text has an error, the tree keeps the last valid version and the error line is highlighted.

Large Files

Only the first two levels open automatically, and long arrays show 100 items at a time with a "Show more" button, so big files stay responsive. To just read or search a large file, the JSON Viewer is faster; to pull out one value, use the JSONPath Tester.

Private by Design

Everything happens in your browser tab. Your JSON is not uploaded or saved anywhere, which makes the editor safe for config files with keys and for customer data. Reloading the page clears it, so download your file when you are done.

Frequently Asked Questions

How do I edit JSON online?

Paste your JSON into the editor and click Format & Load. Then click any value or key in the tree, type the new text and press Enter. The JSON text updates as you edit, ready to copy or download.

Can I add, delete and reorder items?

Yes. Use + to add a key or array item, the duplicate button to copy an item, the arrow buttons to move array items, and the delete button to remove them. Undo and redo are available for every change.

Will the editor break my JSON?

No. The tree always writes valid JSON, and duplicate keys are refused. Values that are not numbers cannot be saved in a number field; change the type to string instead.

Is my JSON uploaded?

No. The editor runs in your browser and your JSON never leaves your device. Nothing is saved, so download the file when you are done.

Related Tools