JSON Visualizer
Explore, format, repair, and filter JSON payloads as a collapsible tree or CSV table locally in your browser.
Visualizer & Formatter Preferences
(2 Spaces • Expand All • Natural Order)
How to Use JSON Visualizer in 3 Steps
Paste or Upload JSON
Paste an API response or configuration payload into the left editor, or upload a .json file from your device.
Explore Tree and Table
Expand or collapse nested branches, filter keys and values in real time, or switch to Table view for object arrays.
Copy Paths and Export
Hover over any node to copy its exact JSONPath, or click Download and Export CSV to save your data.
Visualizer Features & Controls
| Feature / Control | Action | Description |
|---|---|---|
| Tree Node Chevron | Toggle Branch | Expand or collapse nested objects {} and arrays [] while keeping child branch states intact. |
| Live Filter Bar | Search Keys and Values | Filter matching keys or primitive values across every level and unfold matching parent branches automatically. |
| Path Copy Button | Copy Node Path | Copy JavaScript dot-and-bracket notation such as data.items[2].price directly to your clipboard. |
| Auto-Repair | Fix Syntax Errors | Quote bare keys, convert single quotes to double quotes, strip comments, and remove trailing commas. |
| Table View | Flatten Object Arrays | Convert an array of objects into a spreadsheet grid with dotted nested headers and one-click CSV export. |
JSON Visualizer: Frequently Asked Questions
Is my JSON uploaded anywhere?
No. Parsing, formatting, tree rendering, and CSV export run locally in JavaScript inside your browser. API responses and tokens never leave your device.
What does Auto-Repair fix?
Auto-Repair fixes single-quoted strings, unquoted keys, trailing commas, comments, and curly quotes. Always review the repaired output because truncated payloads cannot be recovered.
How do I copy the path to a value?
Hover over any node in Tree view and click the path icon. It copies a JavaScript path like data.items[2].price to your clipboard.
How large a JSON file can I open?
The formatter handles multi-megabyte files locally. Set Default Tree Expansion to "Collapsed" in Preferences before opening payloads with hundreds of thousands of nodes.
How does CSV export work?
Table view flattens an array of objects into rows and converts nested keys into dotted column headers. Click Export CSV to download that grid.
How do I sort object keys alphabetically?
Key Ordering defaults to "Original" to preserve your input order. Select "A-Z Sorted" in Preferences to sort keys alphabetically at every nesting level.
Explore All Dev Tools
Format, minify, inspect, and validate code and developer payloads locally.