JSON Viewer, Formatter & Editor
View, edit, and format JSON in a live interactive tree. Inline value editing, key rename, add/remove nodes, JSONC comment support, and one-click export β all in your browser.
Raw JSON from an API response or log file is often a single dense line β completely unreadable without formatting. A good JSON viewer instantly pretty-prints nested objects and arrays, highlights syntax, and collapses or expands nodes so you can navigate to exactly the key you care about without scrolling through thousands of characters.
This tool goes further by letting you edit the JSON in place. Fix a malformed value, rename a key, or delete an unwanted node, and the tree updates live. It's the fastest way to prototype configuration payloads, inspect webhook bodies, verify GraphQL responses, or clean up a JSON fixture before committing it to your test suite β all without spinning up a terminal or installing any extension.
How to View, Format, and Edit JSON Online
- 1
Paste Your JSON or JSONC
Paste any JSON string β including JSONC with // and /* */ comments β into the input panel. Validation runs immediately and highlights any errors with the line and character position.
- 2
Browse and Edit the Tree
The JSON renders as a color-coded, collapsible tree. Click any value to edit it inline; double-click a key to rename it. Use + to add new entries and Γ to remove any node. A "Modified" badge appears when the document has been changed.
- 3
Export or Copy Your JSON
The Generated JSON panel shows the updated output in real time. Copy it to the clipboard with one click, or hit Reset to revert all changes back to the original.
How JSON Parsing and Tree Rendering Works
JSON (JavaScript Object Notation) is defined by RFC 8259 as a strict subset of JavaScript literal syntax, supporting six value types: strings, numbers, booleans, null, arrays, and objects. The parser tokenises the input character by character, validating structural characters (`{`, `}`, `[`, `]`, `,`, `:`) and ensuring strings are properly quoted and escaped. Numbers must match a specific grammar β no leading zeros, no hex literals, no trailing commas.
The interactive tree renderer maps each parsed node to a collapsible DOM element. Depth-first traversal assigns each node a path (e.g. `$.users[2].email`) which powers features like copying a path to the clipboard or filtering by key name. Large arrays are virtualised β only visible rows are rendered β to keep the UI responsive even for JSON files with tens of thousands of entries.
Why Use FileCrank JSON Viewer?
- β Interactive color-coded tree view β expand, collapse, and navigate deeply nested structures.
- β Inline editing: click values to edit, double-click keys to rename, with automatic type detection.
- β Add or remove nodes with + and Γ buttons on any object or array.
- β JSONC support β paste JSON with // or /* */ comments and they are stripped automatically.
- β Live Generated JSON panel shows the modified output in real time, ready to copy.
- β Runs entirely in your browser β no data is ever sent to a server.
Features & Specs
Frequently Asked Questions
What is the difference between pretty-print and minify?
Pretty-print adds line breaks and indentation to make JSON human-readable. Minify removes all whitespace to produce the smallest possible JSON string. Use pretty-print for reading and debugging; use minify to reduce payload size.
Why does the validator show an error on valid-looking JSON?
Common causes: trailing commas after the last item (not allowed in standard JSON), single-quoted strings (JSON requires double quotes), comments without JSONC mode enabled, and unescaped control characters inside strings. If your input uses // or /* */ comments, the tool handles them automatically via JSONC support.
Can I collapse and expand nested objects in the tree view?
Yes. Click the disclosure triangle to collapse or expand any node. Collapsed nodes show the item count so you can orient yourself without expanding everything.
Can I edit JSON values directly in the tree?
Yes. Click any value to edit it inline β the tool auto-detects the type (string, number, boolean, null) as you type. Double-click any key to rename it. Use the + button to add new entries and Γ to remove any node.
What is JSONC and how do I use it?
JSONC is JSON with Comments β it allows // single-line and /* */ multi-line comments. Paste JSONC directly and the tool strips comments automatically before parsing. This is useful for configuration files like tsconfig.json or VS Code settings.
Is there a size limit for JSON input?
The tool handles JSON up to the displayed input limit. Very large JSON over 1 MB will parse and render, but tree view navigation may be slower. The Generated JSON panel and clipboard copy are instant regardless of document size.
Browser JSON Viewer vs. jq vs. IDE Extensions
Command-line `jq` is unbeatable for scripted transformations and pipeline processing, but requires memorising its query syntax. IDE extensions add JSON support to your editor but are overkill when you just want to inspect a pasted response. A browser-based viewer requires zero setup, works on any device, and is the fastest option for quick inspection and one-off edits β especially when you are working with a payload you received in a chat message or email.
Related Tools
CSV Viewer & Smart Table
Open any CSV as an interactive smart table β sort columns, filter rows, edit cells live, and export to CSV, XLS, or XLSX. All client-side, no signup.
JSON to CSV Converter
Convert a JSON array of objects to CSV format instantly in your browser.
CSV to JSON Converter
Convert CSV data to a JSON array of objects instantly in your browser.
FileCrank JSON Viewer, Formatter & Editor lets you view, edit, and format JSON in a live interactive tree β with inline editing, key rename, add/remove nodes, JSONC comment support, and one-click export, all running entirely in your browser.
Advertisement