How to extract JSON data
Choose the extractor by the source you have. JSON-LD Extractor reads HTML and lists the JSON-LD blocks inside it. JSONPath Extractor works with an existing JSON document, then returns values that match your path in JSON, JSONL, CSV, or plain text.
Choose a JSON extractor for the job
- JSON-LD Extractor accepts pasted HTML, an uploaded
.htmlfile, or a public HTTPS URL. It extracts every JSON-LD block, parses the blocks independently, keeps their source order, and lists@context,@type, and@graphentities. - JSONPath Extractor queries a JSON document with JSONPath. You can build a path by clicking through its expandable tree, or write one with dot and bracket notation, wildcards, recursive descent, slices, unions, and filter expressions.
Use JSON Tools if the document needs another operation first. The parent category includes tools for cleaning, validating, comparing, merging, flattening, and querying JSON and JSON Lines.
How JSON-LD extraction works
Use JSON-LD Extractor for JSON-LD embedded in page markup. The extractor handles each block independently and keeps the order in which the blocks appear. Its output lists @context, @type, and @graph entities.
Input: HTML with a JSON-LD block
Output: @context, @type, @graph entities
Paste markup from the clipboard or upload a saved .html file. You can also enter a public HTTPS URL. That option fetches the page at the address you provide.
How to query JSON with JSONPath
JSONPath Extractor selects parts of an existing JSON document. Click through the expandable tree to build a path, or enter dot or bracket notation yourself. Wildcards can match several items, recursive descent can search deeper levels, and slices, unions, and filters can narrow the matches.
Input: JSON document
Query: JSONPath expression
Output: matching values as JSON, JSONL, CSV, or plain text
After the query runs, export the matching values as JSON, JSONL, CSV, or plain text. JSON and JSONL keep data-oriented output, while CSV and plain text give you other output formats for the selected values.
Typical JSON extraction jobs
- Inspect a saved HTML response for embedded JSON-LD blocks and review them in source order.
- Check a public page's JSON-LD, including its
@typeand@graphentries, before changing the page markup. - Query a nested JSON export for one field across multiple records, then export the matches as CSV.
- Write a JSONPath filter for a subset of a JSON response, then save the selected results as JSON or JSONL.
Frequently asked questions
How do I extract JSON-LD from HTML?
Use JSON-LD Extractor, then paste the HTML, upload an .html file, or provide a public HTTPS URL. It extracts every JSON-LD block and shows its @context, @type, and @graph entities.
How do I extract a value from a JSON file?
Use JSONPath Extractor and query the document with a JSONPath expression. You can build the path from the expandable tree or write it with dot and bracket notation, then export the matches in a chosen format.
What is the difference between JSON-LD and JSONPath extraction?
JSON-LD extraction finds embedded JSON-LD blocks inside HTML, while JSONPath extraction selects matches inside an existing JSON document. Choose the first for page markup and the second for targeted values in nested data.
Can I export JSONPath matches as CSV?
Yes, JSONPath Extractor can export matches as CSV. It also exports JSON, JSONL, and plain text.
Does JSON Extract Tools upload my data?
JSON Extract Tools runs extraction locally in your browser, with no upload. JSON-LD Extractor also accepts a public HTTPS URL, so choosing that input fetches the source page at the URL.