Extract Keys from JSON
When you only care about the structure of a JSON document — which keys exist and where — the key extractor pulls out every key at a chosen depth, optionally with its full dot-notation path. It is a quick way to map an unfamiliar API response or build a list of fields.
You can deduplicate repeated key names and export the result as a plain list, a JSON array or newline-separated text.
How to use the extract keys
- 1Paste your JSONAdd the document you want to inspect.
- 2Pick a depth levelExtract keys at exactly one level, or up to a chosen depth. The control adapts to how deeply nested your JSON is.
- 3Choose path or nameShow the full dot-notation path (e.g. user.address.city) or just the key name.
- 4Export the keysCopy the result as a list, JSON array or plain text, with optional deduplication.
Features
- Extract keys at a specific depth or up to a depth
- Full dot-notation paths or bare key names
- Deduplicate repeated key names
- Output as list, JSON array or plain text
When to use it
- Mapping the fields of an unfamiliar API response
- Generating a checklist of required fields
- Building a schema or column list from sample data
- Auditing which keys appear across a document
Frequently asked questions
How do I extract all keys from JSON?
Paste your JSON and choose the depth level you want. MyJson lists every key found at that level, optionally with its full path, and lets you copy the result.
What is a dot-notation path?
It describes where a key lives in the structure, such as user.address.city, making it clear how to reach a nested value from the root of the document.
Can I remove duplicate key names?
Yes. Enable deduplication and repeated key names are collapsed into a single entry in the output.
Related tools
Looking to learn more? Browse our JSON guides and tutorials.