How to use
Convert schema markup in seconds:
- Paste JSON-LD or HTML containing JSON-LD scripts into the input box.
- Choose an output format (JSON, minified, script tag, or extract-from-HTML).
- Optional: enable Normalize @context, Sort keys, and/or Use @graph.
- Click Convert, then Copy output.
FAQ
What schema formats does this converter support?
This tool works with schema.org JSON-LD (raw JSON) and HTML pages that contain JSON-LD in <script type="application/ld+json"> tags.
Can it convert Microdata or RDFa to JSON-LD?
No—this converter only extracts/converts JSON-LD. For Microdata/RDFa, use a dedicated parser.
What does “Use @graph” do?
If multiple JSON-LD blocks are found, it combines them into one object using @graph, which is often easier to manage and publish.
What does “Normalize @context” change?
It rewrites common schema.org variants (like http://schema.org) to https://schema.org for consistency.
Is my data sent to a server?
No. All parsing and conversion runs locally in your browser, and the code does not make network requests.
Why do I get a JSON parse error?
JSON-LD must be valid JSON (no trailing commas, unquoted keys, or comments). Fix the JSON, then convert again.
Can I paste a full HTML document?
Yes—choose “Extract JSON-LD from HTML” or any mode; the tool will detect and parse application/ld+json scripts automatically.