Small tools. Better flow.

JSON workspace

Format, validate, explore a tree, and compare structures.

Usage guide

Your input stays in this browser.

Input & options

1 MB per document; tree display capped at 2,000 nodes

View code examples ↓

Result

Your result will appear here.

Code examples

Starting points for your own code. Run them in the environment shown below.

Node.js 22+ · ES module (.mjs)

Current inputs apply only to fields used by the example. Selected files are not embedded.

const input = "{\"name\":\"Alice\",\"active\":true}";
const value = JSON.parse(input);
console.log(JSON.stringify(value, null, 2)); // Pretty
console.log(JSON.stringify(value));          // Minified, same data

Put it to work

Paste an API response and expand nested properties in the tree, or compare it with a second JSON document.

Details that matter

Format and meaning

JSON requires quoted keys and does not allow comments or trailing commas.

Using it correctly

Structural comparison ignores object key order but preserves array order.

Common pitfalls

Integers outside JavaScript’s safe range can lose precision. Represent large IDs as strings.

Supported scope and limits

1 MB per document; tree display capped at 2,000 nodes

Split inputs that exceed the limit. If a format or algorithm is unsupported, choose a tool that matches your requirements instead of silently changing the format.