Input
Output
Empty Formatting runs in your browser

Online JSON Editor

Edit JSON as text or as an interactive tree. Change values, rename keys, insert and reorder items without hunting for commas and brackets, then sort, filter, undo and redo as you go. When you are done, download the file, save it in your browser or share a link.

How to edit JSON online

  1. Paste JSON into the left editor, open a file with Open file (Ctrl+O), or drop one onto the page.
  2. Edit the text in the Code view, or use the right editor's Tree view to change values and structure with the mouse.
  3. Press Format (Ctrl+Enter) to send the left editor to the right, or the left arrow between the editors to bring your tree edits back to the left.
  4. When you are done, copy or download the JSON, save it in your browser with Ctrl+S, or share it with a link.

Code view: edit JSON as text

The Code view is a full code editor built on Ace, the editor used by many online IDEs. It gives you syntax highlighting, line numbers, bracket matching, code folding, multiple cursors, search and replace (Ctrl+F and Ctrl+H) and unlimited undo. Errors are marked as you type, with the line and reason in the status bar, so you never save broken JSON by accident.

Tree view: edit JSON without the syntax

The Tree view shows every object and array as a node you can expand and collapse. It is the easiest way to edit JSON if you do not want to think about commas and brackets:

Sort, filter and transform

Each editor's ⋯ menu has Sort keys, which orders the keys of an object or the items of an array, ascending or descending, and Transform and filter, which opens a dialog where you filter, sort and pick fields, for example to keep only the orders with a status of "shipped", or to list just the email address of every user. You see a preview before anything changes, and undo takes you straight back.

Fix mistakes as you go

If the text in the Code view stops being valid JSON, the error is shown with its line and column. Repair common mistakes, in the input's ⋯ menu, fixes common problems such as single quotes, trailing commas and missing quotes around keys. For heavily broken input, such as JSON cut off half way through, try JSON Repair.

Save, reopen and share

Make the editor comfortable

Open the settings dialog with the sliders icon or Ctrl+, to choose a coding font such as JetBrains Mono, Fira Code, Source Code Pro or Cascadia Code, change the font size, and pick a colour theme like GitHub Light, One Dark, Monokai, Dracula, Nord or Gruvbox. You can also turn line wrapping, line numbers, indent guides and font ligatures on or off, and choose whether the editor remembers your last input.

What people use the JSON editor for

Related tools

To check what changed after editing, paste the old and new versions into JSON Compare. To move data into a spreadsheet or a config format, use JSON to CSV or JSON to YAML. To only read a document, the JSON Viewer opens straight into the tree.

Free and private

The online JSON editor is free, with no account and no limits. Your JSON stays in your browser unless you choose to create a share link.

Frequently asked questions

How do I edit JSON online?

Paste or open your JSON, then edit it in the code view, or switch to Tree view to change values, rename keys, and add, duplicate, move or remove items without worrying about commas and brackets.

Can I edit JSON in a tree view?

Yes. Tree view shows objects and arrays as expandable nodes. Click a key or value to edit it, drag items to reorder them, and use the context menu to insert, duplicate or remove nodes and change their type.

Can I undo changes?

Yes. Use Undo and Redo in the editor's ⋯ menu, or Ctrl+Z and Ctrl+Y in the code view.

Can I sort or filter JSON in the editor?

Yes. Each editor's ⋯ menu has Sort keys, to order keys or array items, and Transform and filter, which filters, sorts and picks fields with a query, for example to keep only the items that match a condition.

How do I save my edited JSON?

Download it as a file, copy it, or press Save (Ctrl+S) to keep it in this browser so you can reopen it later from Saved. You can also create a share link to send it to someone else.

Download JSON

Save to this browser

Saves both the input and the output. Stored only in this browser on this device; use Export in Saved to back it up.

Share

Anyone with the link can see this JSON. Leave out passwords, tokens and personal data.

Shares the input and the output together.

Editor settings

Type

{
  "id": 1024, "name": "Ada", "active": true,
  "tags": ["0O", "1lI", "=> != >="], "manager": null
}

Colour theme

Code editor

Defaults

Saved JSON

    Nothing saved yet

    Press Ctrl+S or use Save on the toolbar to keep JSON here. It stays in this browser and is never uploaded.

    Stored in this browser only, not in an account. Saved JSON and links are lost if you clear your browsing data, use a private window, switch browser or device, or the browser frees up space. Use Export all now and then to keep a copy.

    Send feedback

    How is online-json working for you?