TTKTheTextKit
On-Page SEO7 min read

Breadcrumb Structured Data: Example, Rules and an Audit

Breadcrumb structured data needs two items and a clear position. We audited the 116 pages that carry it, with a copy-paste example and Google's rules.

By TheTextKit TeamPublished

Breadcrumb structured data audit: 116 of 120 pages carry it, all 116 pass our checks, and Search Console shows 24 valid items

A table of three results from auditing the breadcrumb markup of a 120 page site. 116 pages carry a BreadcrumbList. All 116 passed our checks. Search Console showed 24 valid items on the day we read it.

Breadcrumb structured data is a BreadcrumbList in JSON-LD that lists the pages leading to the current one, in order, with at least two items. Google uses it to categorize a page in search results, and its documentation says the feature is available on desktop. When we audited our site on October 12, 116 of its 120 pages carried breadcrumb structured data, so we read every block, checked it against Google's rules and compared the result with Search Console. Here is the markup to copy, and what we found.

A breadcrumb structured data example

This is the block on our UTM Link Builder page, exactly as the server sends it:

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://thetextkit.com" },
    { "@type": "ListItem", "position": 2, "name": "Tools", "item": "https://thetextkit.com/tools" },
    { "@type": "ListItem", "position": 3, "name": "UTM Link Builder", "item": "https://thetextkit.com/tools/utm-builder" }
  ]
}

Put it in a <script type="application/ld+json"> tag in the page. The visible trail on the page should show the same three steps: Home, Tools and UTM Link Builder.

PositionName
1Home
2Tools
3UTM Link Builder
A three step breadcrumb trail: position 1 is Home, position 2 is Tools, position 3 is the UTM Link Builder page

A table of a breadcrumb trail with three positions. Position 1 is Home. Position 2 is Tools. Position 3 is UTM Link Builder, the page itself.

Each step is a position, a name and a URL.

Google's rules for breadcrumb structured data

Google's breadcrumb documentation sets out what the markup needs. It says to define a BreadcrumbList that contains at least two ListItem entries. For each ListItem the required properties are position, name and item. The position starts at 1. The item is the URL of the page that the breadcrumb represents, but for the last item it is optional, and Google uses the URL of the containing page if it is missing.

Two more points are easy to miss. Google recommends breadcrumbs that represent a typical user path to a page, instead of mirroring the URL structure. And it says it is not required to include a ListItem for the top level, your site's domain, or for the page itself. A page can also have more than one trail, if people can reach it by different routes.

RuleWhat Google says
Items in a trailAt least 2
First position1
URL of the last itemOptional
Where the feature is availableDesktop
Google's breadcrumb rules: at least 2 items, positions start at 1, the last URL is optional, available on desktop

A table of four rules from Google. A trail needs at least two items. The first position is 1. The URL of the last item is optional. The feature is available on desktop.

Four rules from Google's breadcrumb documentation.

The same page notes that data-vocabulary.org markup is no longer eligible for Google rich result features, so old markup in that format needs converting. And as with any structured data, Google does not guarantee that a feature will appear.

What we found on our own pages

We fetched every page in our sitemap and read the JSON-LD. For each page that carries a trail, we checked four things. It has at least two items. The positions run 1, 2, 3 in order. Every item has a name and a URL. And the markup matches what a visitor sees.

CheckPages that passed
Pages with a BreadcrumbList116 of 120
First item is the home page116
Last item URL equals the page URL116
Last item name appears in the visible trail116
What our breadcrumb audit found: 116 of 120 pages have a BreadcrumbList, and all 116 start at home and end at the page itself

A table of four results from auditing breadcrumb markup. 116 of 120 pages have a BreadcrumbList. On all 116 the first item is the home page. On all 116 the last item URL equals the page URL. On all 116 the last item name appears in the visible trail.

Every trail we shipped passed every check.

Of the 116 trails, 112 have three items, such as Home, Tools and a tool, and four have two items. Four pages carried no breadcrumb markup. One is the home page, which has no parent. The other three were the contact page, the terms of service and the cookie policy. We have since added trails to those three, so every audited page except the home page now carries one.

One detail is worth being honest about. Our trails are generated from the URL path, so they do mirror the URL structure, which Google says is not the recommended basis. It works for us because tools sit under /tools and guides under /blog, so the path is also a sensible route. But a tool page's trail skips its category, although many visitors arrive through the category page. A trail built from the user path would add that step. Google's guidance suggests that is the better model, and we have not changed ours.

What Search Console showed

On October 11 we read Search Console. Its Breadcrumbs report listed 24 valid items and no invalid ones. That is far below the 116 pages that carry the markup, and it is not a fault. The report reflects the pages Google has crawled and processed, and at that moment Search Console listed 45 indexed pages in total. Google's documentation tells you to check the report after you deploy markup, and to expect an increase in valid items and no increase in invalid ones. A low count on a young site is normal, and zero invalid items is the number to watch.

Mistakes to avoid

MistakeFix
A trail that only repeats the URL pathShow the path a visitor would take
One item onlyUse two or more
Positions out of orderStart at 1 and count up
Markup with no visible trailShow the same trail on the page
Four breadcrumb mistakes and fixes: do not copy the URL, use two items or more, count from 1, show the trail on the page

A table of four mistakes and fixes. A trail that copies the URL path should show the visitor route. One item should become two or more. Positions out of order should count up from 1. Markup with no visible trail needs the same trail on the page.

Most mistakes come from copying the URL instead of the user path.

The last row comes from Google's general structured data guidelines, which say not to mark up content that is not visible to readers. A trail in the markup should have a matching trail on the page. If you build trails by code, generate the visible links and the markup from the same list, as we do, so they cannot drift apart.

Adding it in Next.js

In a Next.js component you write the block into a script tag. The Next.js JSON-LD guide points out that JSON.stringify does not sanitize strings that could be used for script injection, and suggests replacing the < character with its escape code. This is the shape we use:

<script
  type="application/ld+json"
  dangerouslySetInnerHTML={{
    __html: JSON.stringify(breadcrumbJsonLd).replace(/</g, '\\u003c'),
  }}
/>

The replacement keeps a page title that contains angle brackets from closing the script tag early. It does not change how search engines read the data, because < is still the same character once the JSON is parsed.

How to test your breadcrumb markup

  1. Read it. View the source and search for BreadcrumbList, or run document.querySelectorAll('script[type="application/ld+json"]') in the Console and parse each block. The JSON Formatter shows a block with indentation.
  2. Run Google's Rich Results Test on the page and fix any critical errors it lists.
  3. Check the addresses. Each item should be the real URL of that step. The URL Parser splits an address so you can see its scheme, host and path.
  4. Watch Search Console after Google has crawled the page. See our guide to checking if a page is indexed for how to read what Google has processed.

For other markup types, see our guide to schema markup examples. The Schema Markup Generator writes FAQ, Article, Product and How-to markup. We write breadcrumb blocks in code, so that tool does not include them. Our guide to FAQ schema covers a type Google no longer shows.

Limits

We audited one site on one day. Our checks follow Google's documentation as we read it, and they test the markup and its match with the visible trail, not whether Google shows breadcrumbs for a page. The Search Console number is from one property on October 11, so it will have changed. Google's documentation says the feature is available on desktop, and we did not test how a trail looks in results on different devices. We did not run our pages through Google's Rich Results Test for this guide, so our checks rest on the documentation. We cannot say whether markup changes how often a page is clicked.

Frequently asked questions

What is breadcrumb structured data?

It is BreadcrumbList markup, usually JSON-LD, that describes a page's position in the site hierarchy as an ordered list of links. Google uses it to categorize the page in search results. It should match the breadcrumb trail a visitor sees.

How many items does a BreadcrumbList need?

At least two ListItems, according to Google. Each item needs a position and a name, and an item URL, except that the last item may leave the URL out, in which case Google uses the URL of the page.

Should the breadcrumb mirror the URL path?

Not necessarily. Google recommends breadcrumbs that represent a typical user path to the page, instead of mirroring the URL structure. It also says you do not have to include the home level or the page itself.

Do breadcrumbs show in Google on mobile?

Google's documentation says the breadcrumb feature is available on desktop, in all regions and languages where Google Search is available. It does not promise that markup will produce a result, because Google decides what to show.

How do I test my breadcrumb markup?

Use Google's Rich Results Test on the page, then inspect the URL in Search Console and check the Breadcrumbs report after Google has crawled it. The report only counts pages Google has processed, so give it time.

Check your markup

Read a block with the JSON Formatter and split each address with the URL Parser. Everything runs in your browser, so nothing you type is uploaded.

Try these free tools

100% in your browser

Keep reading

All articles →