Skip to content
Encoding & Data/

JSON Editor

29 nodes
${6 keys}
[3 items]
0:{3 keys}
1:{3 keys}
2:{3 keys}
{3 keys}

Every action here — formatting, a tree edit, sorting, undo, converting — rewrites the document through JSON.parse and JSON.stringify. JavaScript has one number type, a 64-bit float, so integers beyond 9,007,199,254,740,991 lose digits, 1.0 comes back as 1, and 1e3 as 1000. Comments and trailing commas are not JSON and are rejected rather than preserved. Duplicate keys are resolved by the parser before this tool sees them: the last one wins. The document, the query and the schema are kept in this browser’s local storage so a reload does not lose them — nothing is uploaded, but a shared machine keeps them until you clear the panes.

About JSON Editor

Format, validate, explore and diff JSON in a tree editor with JSON Schema validation and JSON Pointer paths — all in your browser.

What it does

Pretty-print or minify, browse a document as a collapsible tree instead of a wall of braces, validate against a JSON Schema, copy the JSON Pointer path to any node, and diff two documents. Error messages point at the line and character where parsing actually failed.

Built for large documents

An API response of a few thousand lines is unreadable as raw text and slow in most browser-based editors. The tree view keeps it navigable — collapse what you do not care about, expand the branch you do, and copy the exact path to the value you were hunting for.

Common questions

Why does my JSON fail to parse when it looks fine?
Almost always a trailing comma, a single quote where JSON requires double, or an unquoted key. Strict JSON allows none of the three. The error message gives the position.
What is a JSON Pointer?
A standard path syntax (RFC 6901) for addressing a value inside a document — /users/0/email means the email of the first user. Useful in schema errors and patch operations.
Can it validate against a JSON Schema?
Yes, including draft 2020-12, with errors reported against the failing path.
Is it safe to paste an API response containing tokens?
Yes. Everything happens in your browser — nothing you enter is uploaded, and the tool keeps working with no network connection.

Related tools