Edit JSON Editor
Paste JSON, edit values inline in a tree view or raw editor, add and remove keys, format and minify
Paste raw JSON, expand it into a clickable tree, and edit values, keys, or entire branches without manually counting braces or fixing commas. Flip between tree view and raw text whenever you need to. And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser reads your JSON and builds an interactive tree structure. Each key-value pair becomes a clickable node you can expand, collapse, or edit. When you're done, hit Copy or Download — the tool serializes the tree back into valid JSON with your chosen formatting.
Examples
Fixing a typo in a package.json dependency
Your build fails because "react" is pinned to a version that doesn't exist. Quick tree edit.
{
"dependencies": {
"react": "18.2.99",
"next": "14.1.0"
}
}
{
"dependencies": {
"react": "18.2.0",
"next": "14.1.0"
}
}
Adding a new field to an API response mock
You need to add a "role" field to a user object for testing. The tree view's "Add Key" button handles it without you worrying about comma placement.
{
"id": 42,
"name": "Jordan",
"email": "[email protected]"
}
{
"id": 42,
"name": "Jordan",
"email": "[email protected]",
"role": "admin"
}
Cleaning up a bloated config file
Someone left debug flags and test endpoints scattered through a 200-line config. Tree view makes it easy to spot and delete unused keys without scanning every line by hand.
{
"api_url": "https://api.prod.co",
"debug": true,
"test_endpoint": "/dev/null",
"timeout": 30
}
{
"api_url": "https://api.prod.co",
"timeout": 30
}
Who Uses This
Editing API response mocks, tweaking server configs, and debugging malformed payloads from third-party services.
Adjusting i18n translation files and component fixture data without opening an IDE.
Modifying test fixtures on the fly — changing one value in a 50-field payload to trigger an edge case.
Quick-editing JSON exports from databases or APIs before importing into spreadsheets or notebooks.
Common Mistakes
JSON doesn't allow trailing commas — JavaScript does, so people paste JS objects and wonder why the parser chokes. Remove the comma after the last property in every object and array.
JSON requires double quotes around keys and string values. Single quotes or unquoted keys are valid in JavaScript but not in JSON. The error message will point to the exact line if you paste something with single quotes.
Config files like tsconfig.json use JSONC (JSON with comments), but standard JSON parsers reject // and /* */ blocks. Strip comments before pasting, or use a JSONC converter first.
Technical Details
- Processing: 100% client-side — nothing is uploaded or stored
- Browser Support: Chrome, Firefox, Safari, Edge
- Max File Size: Limited only by your browser's memory (typically handles files up to ~10 MB)
- Output Formats: Formatted JSON (2-space indent) or minified single-line
Frequently Asked Questions
Can I edit nested JSON objects?
Yes — the tree view lets you expand any nested object or array. Click the arrow to open a node, then click any value to edit it inline. You can go as many levels deep as your JSON has.
Is my JSON data sent to a server?
No. All parsing and editing happens in your browser using JavaScript. Your data stays on your machine the entire time. There is no backend, no database, no analytics on your content.
How do I add a new key to a JSON object?
In the tree view, look for the "+" button next to any object node. Click it, type the key name, pick a value type (string, number, boolean, null, object, or array), and the new entry appears instantly. No need to worry about commas — the tool handles that.
What's the difference between Format and Minify?
Format adds indentation and line breaks so you can actually read the structure. Minify strips all whitespace down to a single line — useful when you need the smallest possible file size for an API call or storage.
Can I edit JSON files larger than 10 MB?
Technically yes, but the tree view gets sluggish with very large files. For anything over 10 MB, switch to raw editing mode — it's just a text area with no rendering overhead, so performance stays snappy. You can always switch back to tree view for smaller sections.