JSON Editor Online

A proper code editor for JSON: highlighting, live checks, formatting and a tree view.

Editing JSON in Notepad is how a missing comma ends up in production. This editor understands JSON: it highlights keys, strings and numbers, matches brackets, folds objects and arrays, and checks the text as you type. When something breaks, the status line shows the line and column, the spot is marked in the margin, and Go to error puts the cursor right there.

The usual slips — a trailing comma, single quotes, a comment, an unquoted key — are repaired by Auto-fix, which re-reads the text in relaxed JSON5 mode and writes strict JSON back. Format lays the document out with a two-space indent, Minify squeezes it into one line, and Sort keys orders keys alphabetically at every level so two versions are easy to compare.

Switch to Tree to read a big document as collapsible branches, search across keys and values and copy the path of any node. Open a file with the button or drop it onto the editor; when you are done, download the result or copy it. Undo, redo and search work with the usual shortcuts, and integers longer than 15 digits are never rounded.

Nothing is uploaded: everything runs inside your browser, so API responses, configs, contact lists and datasets stay on your device.

What the editor does

How to edit JSON online in 3 steps

  1. 1

    Open or paste JSON

    Drop a file onto the editor, use Open file, paste text or start from the Sample.

  2. 2

    Edit and check

    The status line shows Valid JSON or the exact line and column of the problem; Auto-fix repairs common slips.

  3. 3

    Format and save

    Format, minify or sort keys, then download the file or copy the text.

Frequently asked questions

Open the file here, change the text in the editor and download it. The editor checks the JSON while you type.
Yes: the status line names the line and column, the margin marks the spot and Go to error moves the cursor there.
Common slips — trailing commas, single quotes, comments, unquoted keys — yes, with Auto-fix. Check the result afterwards.
Files up to 50 MB open; beyond a few megabytes typing gets slower, so for very large files the JSON Viewer is more comfortable.
No. The editor works entirely in your browser.

Related tools