57 / Data
JSON Formatter, Viewer & Validator
Format, validate, repair, search, explore, compare, and export JSON in one private browser workspace with precise error locations.
Private developer workbench
Format, inspect, compare, and export.
Paste or open JSON once, then format it, pinpoint syntax errors, explore a collapsible tree, compare responses, or turn object arrays into CSV.
Source JSON
Paste, type, or open a file
Paste JSON or load the sample. Processing stays in this tab.
Valid JSON becomes a searchable tree here.
- Paste a second valid JSON document to compare values by path.
An array of objects can be previewed as rows.
Load an array of objects to unlock the table and CSV export.
Field note
Format and inspect JSON without sending an API response anywhere
Paste JSON or open a local file. The validator uses the browser's JSON parser, reports the exact line and column it received, and keeps the failing line visible. Format with two spaces, four spaces, or tabs; minify the same value; or recursively sort object keys without reordering arrays.
JSON tree viewer and search
The tree separates objects, arrays, strings, numbers, booleans, and null values. Search scans full paths and values, so a query can find a nested key even when its parent branch is collapsed. Very large trees stop after 5,000 rendered nodes to keep a phone tab responsive; formatting and saving still use the complete parsed value.
JSON repair with a receipt
The repair button handles a small, visible set of common JavaScript-shaped mistakes: comments, single quotes, unquoted keys, trailing commas, byte-order marks, and non-JSON literals. It lists every repair class it applied. Review the result before using it in production because no automatic repair can infer missing business data.
Compare JSON and export CSV
The diff checks semantic paths rather than line wrapping, then marks added, removed, and changed values. When the root is an array of objects, the table combines all encountered columns and exports a standard UTF-8 CSV. Nested values remain JSON inside their cells.