Format, validate, and explore JSON — without uploading it
Paste a payload to check it, pretty-print it, browse it as a tree, query it by path, or compare it with another version. Everything runs in this tab, including precise error locations and warnings for values that look like secrets.
Your JSON
Nothing leaves this tab. Your JSON is never uploaded or saved — closing the tab discards it. There is no Save button — on purpose. Saved snippets are how formatter payloads leaked.
You can also drag a file onto the editor. Files are read on this device only.
Paste JSON to begin.
Transforms need valid JSON. Escape works on any text.
Clear wipes this tab's copy. Closing the tab discards everything.
Press Ctrl+C / long-press to copy.
Document statistics
Explore and compare
Browse the document as a tree, find values by path, or compare it with a second document.
The tree appears when the document is valid JSON.
Supported: $, .name, ['key'], [n], .* / [*], and recursive descent ..name / ..['key'] / ..*. Examples: $.users[*].id, $..email. Filters and slices are not supported.
Query runs against a valid document.
The editor above is document A. Paste or load document B here. Objects compare by key (order does not matter); arrays compare index by index, so inserting an item reports the shifted indices as changed.
Document B is empty.
Change detail
Document A
Document B
Help and FAQ
Is anything uploaded or saved?
No. Your JSON is processed entirely in this tab. It is never uploaded, never written to browser storage, and there is no account, no save button, and no share link — saved formatter submissions have leaked credentials before (more than 80,000 saved submissions, per Jazz Security's report of watchTowr Labs' November 2025 findings). The only things this tool remembers between visits are two settings: your indent choice and the mask toggle. Closing or reloading the tab discards your document, so copy or download anything you need first. The tool also works offline after the page loads — you can disconnect and keep using it.
Why is my JSON invalid when another tool accepted it?
This tool checks strict JSON (RFC 8259). Comments, trailing commas, single-quoted strings, and unquoted keys are JSON5 or JSONC, not JSON — strict parsers will reject them too. The status line names the first error with its exact line and column, and "Go to error" moves the cursor there. Fix it and the next error, if any, appears.
What do "duplicate key" warnings mean?
The document is valid JSON, but the same key appears more than once in an object. Most parsers keep only the last value. This tool keeps every occurrence visible in the tree (later ones carry a "duplicate" badge) and uses the last value for queries and diff — the same behaviour your systems will apply. Copying the path of an earlier, shadowed occurrence still copies the path, which resolves to the last occurrence.
Why did sorting change "\u0041" to "A"?
Sorting rebuilds the document from its values and writes strings in canonical form, so "\u0041" becomes "A". The value is identical. Format and Minify never rewrite string or number text — 1.0 stays 1.0 and escapes stay escaped.
What do the secret warnings mean?
The tool flags string values that look like secrets, based on key names (such as password, api_key, or access_token) and value shapes (JWTs, AWS access key IDs, PEM private keys, and Bearer credentials). This is a heuristic: it will miss secrets under innocent key names and flag harmless values under suggestive ones. "No values flagged" never means a document is safe to share, and this tool does not certify any payload clean. The mask toggle hides flagged values in the tree and in copy output; Format output is never masked, because silently changing your document would corrupt it.
What query syntax is supported?
A defined subset: $ (root), .name and ['key'] (child by key), [n] (array index), .* and [*] (all children), and recursive descent ..name, ..['key'], ..* (matches at any depth). Filters, slices, unions, and negative indices are not supported in this version; the query box explains the problem and its position instead of failing silently. Copying a node's path from the tree gives a query that returns that node.
Why does the diff say many array items changed when I inserted one?
Arrays are compared index by index. Inserting an element at the head shifts every later index, so those positions report as changed and the new tail reports as added. Move detection is not part of this version. Object key order, whitespace, and number spellings with equal value (such as 1e2 and 100) never count as differences.
What are the size and depth limits?
Documents up to 10,000,000 characters and 1,000 nesting levels are processed. Beyond those limits the tool says so instead of freezing or crashing, and your text stays in the editor so you can trim it. The tree renders branches as you expand them; "Expand all" stops after 5,000 nodes and asks you to expand branches individually.
I closed the tab — where is my JSON?
Gone, by design. Nothing was uploaded or saved, so there is nothing to recover. Download or copy anything you need before closing the tab. Your indent choice and mask toggle are the only settings kept.