Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    What Is Structured Data? How to Add JSON-LD to a Page

    Updated December 2026

    Written by the Toolpuffin team. Tools in this guide are tested in the browser.

    Structured data is a small block of code that tells search engines what a page is about, such as an article, a product or a local business. It does not change how the page looks to visitors. This guide explains what it is, which format to use, where to put it and how to check it.

    Try the tool: Schema Markup Generator

    What it is

    Google describes structured data as a standardized format for providing information about a page and classifying the page content. Google Search uses it to understand the page, and it can use it to show a rich result, for example for a recipe.

    Source: Google Search Central: Introduction to structured data markup

    Google recommends the schema.org vocabulary for structured data, which is why people also call it schema markup.

    Source: Google Search Central Blog: Enriching search results through structured data

    Which format to use

    Google supports three formats: JSON-LD, Microdata and RDFa. JSON-LD is the recommended one.

    • JSON-LD: a block of code in a script tag, in the head or the body of the page, separate from the visible text.
    • Microdata and RDFa: attributes added to the HTML tags of the visible content.
    • Google can also read JSON-LD that is added to the page by JavaScript.

    Put it on the page

    1. Choose the type that matches the page: article, FAQ page, product, local business or breadcrumb.
    2. Fill in the fields with the real content of the page.
    3. Copy the JSON-LD, with the script tag, into the page.
    4. Test the live page.

    Rules and testing

    • Follow Google's general structured data guidelines. Otherwise the markup may not be eligible for a rich result.
    • Mark up what visitors can see on the page, not hidden content.
    • Do not block the page for Googlebot with robots.txt or noindex.
    • Test with the Rich Results Test, which shows the rich result types found and any errors or suggestions.
    • Remove comments from JSON-LD before you publish. The Rich Results Test ignores them, but the JSON-LD standard does not support them.

    Source: Google Search Central: General structured data guidelines

    Source: Google Search Console Help: Rich Results Test

    Following the guidelines makes a page eligible for a rich result, not certain to get one. Google decides what to show.

    More guides