JSON Beautifier

JSON Editor Online

Edit JSON with live validation and a tree view that follows your changes. Format, minify, sort keys, undo, and download.

Edit JSON

Explore JSON

Paste JSON to explore nested objects and arrays. Copy a field’s path with the icon beside it.

Your draft is saved in this browser as you type, so a refresh does not lose your work. Nothing is uploaded.

Edit a config file

Open package.json, a VS Code settings file or an app config, change values, press Format, then download. Errors are flagged before you save a broken file.

Clean up an API response

Paste a response, Sort keys so two versions line up, and use the tree to find the field you need. Copy its path from the tree.

Write test fixtures

Start from New or Example, build the object you need and Minify it for a test string, or keep it indented for a fixture file.

Need comments in your config? Strict JSON does not allow them; see JSON, JSONC and JSON5. To compare two versions of a file, use Compare JSON.

Need to read or debug JSON from this result? Paste it into the JSON beautifier to format, validate and explore it as a tree.

Frequently Asked Questions

How is this different from the JSON beautifier?

The beautifier turns input into formatted output in a second panel. The editor is one document you keep working on: every change is validated as you type, the tree view follows your edits, and Format, Minify and Sort keys rewrite the document in place with undo.

Is my JSON saved anywhere?

Only in your own browser. The draft is written to this browser's local storage so a refresh does not lose it. Nothing is sent to a server. Click Clear to remove the draft.

Can I edit values directly in the tree?

Not yet. The tree is a live, searchable view for navigating the document and copying field paths. Edit the text on the left and the tree updates immediately.

What happens when I make a syntax error?

The editor turns red and shows the error with its line and column. The tree keeps showing nothing until the document parses again. Try to repair can fix common mistakes such as trailing commas and single quotes; check the result before saving.

Can I open and save files?

Yes. Use the upload icon to open a .json file and the download icon to save the edited document as a .json file.