Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Edit JSON Editor

Paste JSON, edit values inline in a tree view or raw editor, add and remove keys, format and minify

Your files never leave your browser
JSON Input0 chars, 0 lines
Drag & drop a JSON file here, or browse
Accepts .json files
Tree View0 chars
Ready·

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

Paste or Drop JSON
→
Parse into Tree
→
Edit & Export

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.

INPUT
{ "dependencies": { "react": "18.2.99", "next": "14.1.0" } }
OUTPUT
{ "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.

INPUT
{ "id": 42, "name": "Jordan", "email": "[email protected]" }
OUTPUT
{ "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.

INPUT
{ "api_url": "https://api.prod.co", "debug": true, "test_endpoint": "/dev/null", "timeout": 30 }
OUTPUT
{ "api_url": "https://api.prod.co", "timeout": 30 }

Who Uses This

👨‍💻 Backend Developers

Editing API response mocks, tweaking server configs, and debugging malformed payloads from third-party services.

🎨 Frontend Developers

Adjusting i18n translation files and component fixture data without opening an IDE.

🧪 QA Engineers

Modifying test fixtures on the fly — changing one value in a 50-field payload to trigger an edge case.

📊 Data Analysts

Quick-editing JSON exports from databases or APIs before importing into spreadsheets or notebooks.

Common Mistakes

Trailing commas after the last item

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.

Using single quotes instead of double quotes

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.

Pasting JSON with comments

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

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.

Share: