{} json.editor.freeonline json editor & formatter
Code
Tree view
Nothing here yet — paste JSON in the Code pane to see it visualized as a tree.
Empty 0 B 0 keys depth 0 Ln 1, Col 1

Free JSON Editor, Formatter & Viewer — runs entirely in your browser

json.editor.free is a fast, private JSON editor online: format & beautify, validate with exact error locations, browse data in a collapsible tree, run JSONPath queries, diff two JSON payloads, and convert JSON ⇄ CSV. There's nothing to install, so it works the same as a JSON editor for Mac, Windows, Linux, Chromebooks and mobile browsers — and because everything runs client-side, your data is never uploaded anywhere.

⤶

Format & beautify

Re-indent messy JSON with 2-space, 4-space or tab indentation in one click.

✓

Validate instantly

Get the exact line and column of syntax errors as you type — no more hunting for a missing comma.

◧

Tree & code view

Switch between a raw code editor and a color-coded, collapsible tree for exploring nested data.

$

JSONPath queries

Query with expressions like $.users[0].email to pull exactly the values you need.

⇄

JSON diff / compare

Paste two JSON documents side by side and see every field added, removed or changed.

⇄

JSON to CSV, CSV to JSON

Turn an array of records into a spreadsheet-ready CSV file, or import a CSV straight back into JSON.

↧

Minify for production

Strip whitespace to shrink payloads before shipping them to an API or bundling them.

🔒

100% private

No server round-trip. Your JSON stays in your browser tab, and autosaves locally so you never lose work.

JSON editor online vs. desktop apps

json.editor.freeDesktop JSON apps
Install requiredNone — open in any browserDownload & install per OS
Works on Mac / Windows / LinuxYes, identicallyOften OS-specific builds
Data leaves your deviceNever — fully client-sideDepends on the app
Tree view + JSONPath + diff + CSVAll included, freeFrequently paywalled
CostFreeOften freemium / paid tiers

Frequently asked questions

Is this JSON editor free to use online?

Yes — json.editor.free is completely free, with no sign-up, no watermark and no usage limits.

Does my JSON data get uploaded to a server?

No. Parsing, formatting, validation and conversion all happen locally in your browser. Nothing you paste or upload is ever sent anywhere, which makes it safe for private or sensitive data.

Can I use this as a JSON editor for Mac or Windows?

Yes. Since it runs in any modern browser it behaves the same on macOS, Windows, Linux, Chromebooks, tablets and phones — no download needed.

What's the difference between a JSON formatter, beautifier and validator?

A formatter (or beautifier) re-indents JSON so it's easy to read. A validator checks the JSON is syntactically correct and points to the exact line and column of any error. This tool does both, plus a minifier for production use.

Can I convert JSON to CSV, or CSV to JSON?

Yes — if your JSON is an array of objects you can export it directly to CSV, and you can import a CSV file back into JSON, both from the toolbar.

Can I compare two JSON files?

Yes. Turn on Compare mode to paste a second JSON document and see every added, removed or changed field listed clearly.