Search for a command to run...
Format, validate, and beautify your JSON payloads with ease.
Paste a payload, drag in a .json file, or import directly from a URL. Up to a few megabytes works in real time — larger documents render in a virtualized tree.
Hit Format (⌘ Enter) to pretty-print and validate in one pass. Errors show the exact line and column, with a Fix JSON button for the most common syntax slips.
Switch to the tree or table view to fold deep payloads, search keys, and copy any branch as a JSONPath. Select a value to see its type, length, and parent chain.
Copy the formatted output, download as a file, or open the code generator to scaffold TypeScript types, Zod schemas, or Go structs from the same payload.
Strict JSON is fussier than the JavaScript object literal it grew out of. Pick a pitfall to see the exact difference between what parsers reject and what they accept.
{
"name": "Ada",
"role": "admin",
}{
"name": "Ada",
"role": "admin"
}JSON does not allow a comma after the last item in an object or array, even though most languages tolerate it. Strip the comma — or use the Fix JSON button to do it for you.
Switch from raw text to a foldable tree, or pivot arrays of objects into a sortable table. Both views render millions of nodes via virtualization.
Generate a JSON Schema or TypeScript types from any payload. Useful for documenting an API, building a validator, or scaffolding a typed client.
Define regex or key-name rules to redact tokens, emails, and IDs before sharing. Rules can be saved as global defaults so every paste is sanitized automatically.
Fix JSON repairs trailing commas, unquoted keys, single quotes, and stray comments — handy when you copy a fragment out of a log or a JavaScript file.
Sort keys A→Z for stable diffs, strip nulls or empty objects, and minify down to a single line — all without touching the original input.
Every operation runs in your browser. No payload is sent to a server, and history is stored only in this tab — close it and the data is gone.
JSON (JavaScript Object Notation) is a text format for structured data, defined by RFC 8259 and ECMA-404. It supports six value types — object, array, string, number, boolean, and null — and is the lingua franca of HTTP APIs, configuration files, and document databases. The grammar is intentionally tiny, which makes JSON easy to parse but also strict: trailing commas, comments, and single-quoted strings are all rejected by conforming parsers.
Format megabytes of JSON in milliseconds.
Data never leaves your browser for maximum privacy.
Works perfectly even without an internet connection.