Online JSON Viewer, Formatter and Validator | FlyJson
View JSON in code, tree, table, grid, and graph formats. Import JSON, CSV, XLSX, or ZIP files, or load API data using a URL or cURL. Validate, format, and minify JSON, then export to CSV, Excel, TSV, or JSON. Everything runs locally in your browser.
How to view JSON files
- Paste JSON, import a local file, or load JSON with a GET or POST request from a URL or cURL command.
- Switch between code, tree, table, grid, and graph views. Syntax errors are underlined in the editor and listed in the status bar.
- Format, minify, or escape JSON. Copy it, export it to CSV, Excel, TSV, or JSON, or create a share link containing the current data.
Viewer modes and features
- Code · Edit the JSON source
- Tree · Expand objects and arrays by depth
- Table · Compare fields in an array of records
- Grid · Inspect data by key or index
- Graph · Explore connected nodes
JSON formatting example
Input JSON
{"project":{"id":"P-42","active":true},"tags":["maps","api"]}Formatted JSON
{
"project": {
"id": "P-42",
"active": true
},
"tags": [
"maps",
"api"
]
}Common JSON syntax errors
{"name":"Map",}Remove the trailing comma before the closing brace.
{'active': true}Use double quotes around JSON property names and string values.
When to use the JSON Viewer
- Debug API responses · Send GET or POST requests from a URL or cURL command. Check the response in code view or expand the tree to a selected depth.
- Compare records · View a non-empty array of objects as a table. Compare fields by column and export the selected group as CSV, Excel, or TSV.
- Inspect nested configuration · Drill into objects in grid view or use the graph to explore parent and child nodes. Copy or download the full JSON when finished.
Frequently asked questions
Which file formats are supported?
JSON, comma-separated CSV, XLSX, and ZIP. The first row of a CSV or spreadsheet provides column names. Multiple sheets are grouped by name, and multiple files in a ZIP are grouped by path.
When can I use table view?
Table view works with non-empty arrays of objects. Each object forms a row and the combined fields form the columns. Select a group when the JSON contains multiple arrays.
Are my files or edits uploaded?
Files and edits are processed in your browser. The browser sends API requests directly to the specified address, which must allow cross-origin access. Anyone with a data share link can read the JSON it contains.
How are size, key count, and depth calculated?
Size is measured in UTF-8 bytes. Lines counts editor lines, Keys counts object properties, and Depth measures the deepest object or array nesting. A scalar value has depth zero.
How do I find a JSON syntax error?
Switch to code view and check the red underline and the status bar. Check double quotes around property names, trailing commas, and matching brackets, then format again.
What is a JSON viewer?
A JSON viewer helps you read and inspect JavaScript Object Notation, a common format for API responses, configuration files, and data exchange. JSON represents objects, arrays, strings, numbers, booleans, and null. Use tree view to locate fields in deeply nested data, or use the graph to see how parent and child nodes connect.
To format or minify JSON, use the JSON formatter.