1001Ferramentas
🏷️ SEO

Microdata Schema Extractor

Extracts schema.org microdata (itemscope, itemtype, itemprop) from HTML and converts it to equivalent JSON-LD.

Extracting a page's microdata as JSON-LD

There are two ways to mark up structured data on a page: microdata, with attributes scattered through the HTML, and JSON-LD, a script block separate from the content. Google understands both, but has recommended the second for years — it is easier to generate, review and maintain, because it does not tangle with the visual markup.

Paste the HTML and the page walks the microdata scopes, builds the property tree and returns the JSON-LD equivalent. The reading respects the format's rules: each property's value comes from the attribute appropriate to its element — content on meta, address on link and anchor, source on image, date on time elements — and the element text in the remaining cases.

It is the right tool for a migration. Older sites tend to have microdata spread across page templates, and rewriting it all by hand is expensive and error-prone. By converting first and reviewing the JSON afterwards, you can add the new block, check it in Google's testing tool and only then strip the old attributes — with no window where the page has no structured data at all.

Frequently asked questions

Can I keep both formats at once?
You can, and during a migration it is the safer route. The risk is divergence: two blocks describing the same thing with different values confuse the search engine, which may pick either. Coexistence is for the transition period, not forever.
Does the conversion catch everything?
It covers the structure of scopes, types and properties, which is most of it. What needs attention afterwards is deep nesting and properties referring to another item by identifier — worth checking the result in the testing tool before publishing.
What about RDFa, is it still used?
It rarely appears on new sites but exists in the installed base, chiefly in institutional and academic content. Google understands it too. The recommendation is the same as for the others: migrate to JSON-LD when the opportunity arises, because maintenance is simpler.

Related Tools