Skip to content
Cuisdev

JSON Editor

Two panels with text, tree and table modes, compare, transform and repair

  • Runs in your browser
  • No sign-up
  • Free forever
Loading the tool…

How to use the JSON Editor

  1. 1

    Paste JSON into the left panel, drop a .json file onto it, or use Open to load from this browser, from disk or from a URL. Documents are saved in your browser as you type and reopen from the link in the address bar.

  2. 2

    Switch each panel between text, tree and table with the buttons in its menu bar. Text is a code editor with folding and search, tree lets you expand, edit, drag and right-click nodes, table shows arrays of objects as a grid.

  3. 3

    Use the menu bar to format, compact, sort, search, undo and redo. Invalid JSON is underlined with the error, and the editor offers to repair quotes, commas and comments automatically.

  4. 4

    Click the arrows between the panels to copy one document into the other, or to transform it with a filter, sort or pick query into the other panel.

  5. 5

    Turn on Compare to highlight every added, removed and changed value in tree and table modes, and step through the differences with the arrows.

  6. 6

    Save as .json, copy formatted or compact, or copy a share link that carries the document inside the URL. Optional AI assist works with your own Gemini key.

Features

  • Two independent documents side by side, each with text, tree and table modes
  • Copy and transform between panels, with filter, sort and pick queries (JSON Query, JMESPath, JSONPath, Lodash)
  • Compare documents with highlighted additions, removals and changes, and jump between differences
  • Format, compact, sort keys, search and replace, undo and redo, code folding
  • Live validation with automatic repair for comments, single quotes, unquoted keys and trailing commas
  • Tree mode with inline editing, drag to reorder, duplicate, extract, insert and a right-click context menu
  • Table mode for arrays of objects with sortable, editable columns
  • Documents saved in your browser and addressed in the URL, plus open from disk or URL, save and share links
  • Full screen, dark mode, and optional AI assist with your own Gemini key
  • Opens files up to 100 MB, with text mode staying responsive on large documents

Two documents, three views, one workspace

Most online JSON tools give you a text box and a Format button. This editor gives you two complete documents side by side, and each can be viewed as code, as an expandable tree or as a table. Keep an API response on the left and your edited version on the right. Drop two config files in and compare them. Paste a large array and read it as a spreadsheet.

Everything runs in your browser and your documents are saved locally as you type. The address bar carries the ids of the two open documents, so a reload or a bookmark brings them straight back.

Text, tree and table

Text mode is a full code editor: syntax colouring, folding, bracket matching, search and replace, multiple cursors, and live validation that underlines the first error and offers a one-click repair.

Tree mode shows the structure. Expand and collapse branches, click a value to edit it, drag nodes to reorder them, and right-click for the full menu: insert, duplicate, extract, convert between object and array, sort and transform a subtree. A navigation bar at the top shows the path of the selected node.

Table mode lays an array of objects out as a grid with one row per item and one column per field. It is the fastest way to scan hundreds of records, and every cell is editable.

Copy, transform and compare

The arrows between the panels copy a document from one side to the other, or transform it on the way. Transform opens a query dialog with a live preview: filter items, sort by a field, pick only the fields you need, and write the result into the other panel. JSON Query is the default language and has a point-and-click wizard for arrays; JMESPath, JSONPath, Lodash and plain JavaScript are also available.

Compare highlights every difference between the two documents in tree and table modes. Green marks values that exist only on the right, red marks values that exist only on the left, and amber marks values that changed. Step through them with the arrows.

Common JSON errors and what they mean

  • Unexpected token } or ] usually means a trailing comma after the last property or item.
  • Unexpected token ’ means single quotes. JSON strings and keys must use double quotes.
  • Expected a quoted property name means an unquoted key, such as {name: "x"}.
  • Unexpected end of input means the document stops early. A closing } or ] is missing.
  • Unexpected token / means a comment. Strict JSON has no comments.

In every case the editor points at the position and, for the common mistakes, offers to repair the document automatically.

Frequently asked questions

Is my JSON uploaded to a server?
No. Both panels run entirely in your browser and documents are saved in this browser's local storage. The only network calls are the ones you trigger yourself, such as opening a URL or using AI assist with your own key.
What do the Copy, Transform and Compare arrows do?
Copy puts the whole document from one panel into the other. Transform opens a query dialog so you can filter, sort or pick fields from one document and write the result into the other panel. Compare highlights every difference between the two documents.
Which query languages does Transform support?
JSON Query (the default, with a wizard for arrays), JMESPath, JSONPath, Lodash and plain JavaScript. The dialog shows a live preview before you apply the result.
How do share links work without a server?
The document is compressed into the part of the URL after the # symbol, which browsers never send to any server. Links hold about 12 KB of compressed data; for larger files use Save to disk.
Where are my documents stored and how do I find them again?
In your browser's local storage. The address bar carries the ids of the two open documents, so a bookmark or a reload reopens them. Open > Local documents lists everything saved on this device, with sizes and dates.
Can it repair broken JSON?
Yes. When a document is not valid JSON the editor shows the error and offers an automatic repair for the common mistakes: comments, single quotes, unquoted keys, trailing commas and JavaScript-only values. AI assist can handle harder cases with your own key.
Does it support JSON5 or JSONC?
Paste it and accept the repair to convert it to strict JSON. Strict JSON (RFC 8259) is what APIs and config parsers expect.
Can I use it offline?
Yes. Once the page has loaded, everything except Open from URL and AI assist keeps working without a connection.

Last updated .