Extract JSON Values
Paste JSON and extract all values by key name, path, or get all leaf values with optional path display
Paste any JSON and pull out the exact values you need — filter by key name, dot-path, or dump every leaf value into a flat list. Handles deep nesting, arrays, the whole mess. And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser reads your JSON into a tree, then visits every node recursively. When you set a key filter, it matches nodes by name or dot-path and collects their values. With “All leaves” on, it skips objects and arrays entirely and grabs only terminal values. Paths are tracked as the walker descends, so turning on “Show path” gives you the exact location of each result.
Examples
Pull All Emails from an API Response
Your user endpoint returns a nested array. You need every email address for a migration spreadsheet.
{"users":[
{"name":"Alice","email":"[email protected]"},
{"name":"Bob","email":"[email protected]"}
]}
Filter: email
Grab Nested City Names with Dot Notation
Config file has addresses buried three levels deep. You want just the cities, nothing else.
{"company":{"hq":{"address":
{"city":"Berlin","zip":"10115"}},
"branch":{"address":
{"city":"Munich","zip":"80331"}}}}
Filter: address.city
Berlin
Munich
Extract Every Leaf Value from a Config File
You’re auditing a settings file and need a flat dump of every actual value — no keys, no structure, just the raw data. Turn on “All leaves” and let it rip.
{"debug":true,"port":3000,
"db":{"host":"localhost",
"name":"app_prod",
"ssl":false}}
Mode: All leaves
true
3000
localhost
app_prod
false
Who Uses This
Pulling specific fields from API responses to build test fixtures or debug payloads.
Extracting IDs or metric values from large JSON exports before importing into a spreadsheet.
Verifying that specific fields exist and hold the right values across hundreds of response objects.
Scanning Terraform state files or Kubernetes configs for a specific setting buried in deep nesting.
Common Mistakes
Trailing commas, single quotes instead of double quotes, or unquoted keys will all cause a parse error. Run it through a JSON validator first if you’re getting unexpected failures.
The filter expects dots, not slashes or brackets. Write “users.0.name” — not “users[0].name” or “users/0/name”. Array indices are just numbers separated by dots.
This tool extracts leaf values — the actual strings, numbers, booleans, and nulls. If you filter by a key whose value is another object, you won’t see that object listed. Go one level deeper in your path to reach the leaf you want.
Technical Details
- Processing: 100% client-side — JavaScript only, no server requests
- Browser Support: Chrome, Firefox, Safari, Edge
- Input Limit: Limited only by your browser’s available memory
- Output Format: Plain text, one value per line (with optional path prefix)
Frequently Asked Questions
What’s the difference between filtering by key and using “All leaves”?
Filtering by key pulls values only where the key name matches — so entering “email” grabs every value attached to an “email” key, no matter how deeply nested. “All leaves” ignores key names entirely and dumps every terminal value (strings, numbers, booleans, nulls) from the whole JSON. Use the key filter when you know what you’re looking for. Use “All leaves” when you want a full inventory.
Can I extract values from deeply nested JSON?
Yes. The tool walks the entire tree recursively, so nesting depth does not matter. A value buried 10 levels deep gets extracted the same way as one at the top level. Turn on “Show path” to see exactly where each value sits in the structure.
How do I extract values from inside arrays?
Arrays are traversed automatically. If your JSON has an array of 50 user objects and you filter by “name”, you’ll get all 50 names. The path output uses numeric indices (like “users.0.name”, “users.1.name”) so you can trace each value back to its position.
Is my JSON data sent to a server?
No. The entire extraction happens in your browser with JavaScript. Nothing is uploaded, logged, or transmitted. Close the tab and it is gone.
What does “Show path” do exactly?
It adds the full dot-notation path before each value in the output. Instead of just seeing “Berlin”, you’d see “company.hq.address.city: Berlin”. Handy when you’re debugging and need to know which part of a large response a value came from.