Extract JSON Keys
Paste JSON and instantly extract all unique keys with nested key support, dot notation, and sorting
Paste any JSON — flat or deeply nested — and pull out every unique key path in one click, with dot notation, depth levels, and alphabetical sorting. And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser reads your JSON and walks every object recursively. Each key gets recorded with its full dot-notation path (like user.address.city) and its depth level. Arrays are traversed too — if an array contains objects, those keys show up in the output. Duplicate paths are filtered out, so you get a unique set of every key that exists anywhere in the structure.
Examples
Flat API Response
A simple user object from a REST endpoint — no nesting.
{"id": 42, "name": "Priya Sharma", "email": "[email protected]", "active": true}
id
name
email
active
Nested E-Commerce Order
An order object with shipping address and line items — the kind of thing where you need dot notation to keep track of what's what.
{"orderId": "ORD-7891",
"customer": {"name": "Leo Chen",
"address": {"street": "45 Oak Lane",
"city": "Portland", "zip": "97201"}},
"items": [{"sku": "BK-301",
"title": "Rust in Action",
"price": 39.99}]}
orderId
customer.name
customer.address.street
customer.address.city
customer.address.zip
items.sku
items.title
items.price
Config File With Mixed Types
App config files often mix strings, numbers, booleans, and nested objects. Quick way to audit what settings exist.
{"app": "tracker",
"version": "2.4.1",
"database": {"host": "db.internal",
"port": 5432, "ssl": true},
"features": {"darkMode": false,
"beta": {"enabled": true,
"users": ["admin"]}}}
app
version
database.host
database.port
database.ssl
features.darkMode
features.beta.enabled
features.beta.users
Who Uses This
Map API response fields to database columns or build TypeScript interfaces from raw JSON payloads.
Inventory all the fields in a dataset export before writing transformation queries.
Compare keys across two API versions to catch missing or renamed fields before release.
Understand the shape of JSON data structures in coursework without reading every nested bracket by hand.
Common Mistakes
Trailing commas after the last property ({"a": 1,}) are valid in JavaScript but not in strict JSON. The parser will reject it. Remove the comma before the closing brace or bracket.
With nested keys off, you only see top-level keys. If your JSON has objects inside objects, turn on the nested toggle or you will miss everything below the first level.
This tool extracts key names, not array positions. An array like [{"x":1},{"x":2}] gives you x once — not [0].x and [1].x. It is showing unique key paths, not every value location.
Technical Details
- Processing: 100% client-side — JSON never leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Input: Limited only by your device memory (tested up to 10 MB)
- Output Format: Plain text, one key per line, optional depth annotation
Frequently Asked Questions
What does "extract JSON keys" actually mean?
It means pulling out every property name from a JSON object (and its nested objects) into a flat list. Instead of reading through the whole structure, you get just the field names — like getting a table of contents for your data.
Does this work with nested JSON objects?
Yes. Turn on the "Nested Keys" toggle and you'll get dot-notation paths like user.address.city. Without it, only top-level keys appear. Most people want nested on — it's the whole point when your data goes more than one level deep.
Can I extract keys from a JSON array?
Absolutely. If your top-level JSON is an array of objects, the tool walks into each object and collects all the keys. You get one combined list of unique keys across every item in the array.
Is my JSON data sent to a server?
No. Everything happens in your browser using JavaScript. Your data stays on your machine the entire time. There is no backend, no API call, no logging. Close the tab and it's gone.
How do I extract keys from JSON in Python or JavaScript?
In Python, json.loads(data).keys() gives you top-level keys. For nested keys you'd write a recursive function. In JavaScript, Object.keys(obj) does the same for one level. This tool does the recursive part for you — paste the JSON and you're done, no code needed.