JSON Key Extractor

List every key path in a JSON document with its data type.

Also called: list JSON keys, JSON path extractor.

FreeNo sign-upRuns in your browser
DEVELOPER

JSON Key Extractor

List every key path in a JSON document with its data type.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the JSON Key Extractor (12 seconds)

Recorded on a phone, steps written on screen, no sound.

About the JSON Key Extractor

List every key path in a JSON document (like user.address.city or items[0].price) with the type of its value. Useful to understand an unfamiliar API response.

What the list shows

Every key path in the JSON, one per line, with the type of value it holds: user.name: string, user.age: number. Items of a list are written with [], so orders[].total: number covers the total of every order.

If the same key holds different types in different places, all of them are shown, for example price: number | null. Useful for writing documentation, planning a database table or checking that an API returns the fields you expect.

How to use the JSON Key Extractor

  1. Enter your textType or paste JSON.
  2. Press Run toolThe result appears right under the button.
  3. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the JSON Key Extractor gives for it (produced by the tool itself, not typed by hand).

JSON
{"name": "Kitwise", "tools": 3, "tags": ["pdf", "image", "text"], "free": true}

Result:

name: string
tools: number
tags: array
tags[]: string
free: boolean

Good to know

What you need
You type or choose: JSON
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Are array items listed?

Yes, with their index.

Can I flatten the JSON?

Use Flatten / Unflatten JSON.

More tools in Developer

See all Developer tools