JSON-LD, n.

What is JSON-LD?

JavaScript Object Notation for Linked Data: a format for adding schema.org structured data to a page inside a script tag.

Filed under structured data in the SEO glossary

Try the free schema markup validator

What JSON-LD is

JSON-LD (JavaScript Object Notation for Linked Data) is a W3C standard for describing things as structured data. On websites it is used to add schema.org vocabulary, such as Article, Product, Organization or BreadcrumbList, inside a <script type="application/ld+json"> tag.

Because the data sits in its own block instead of being woven through the HTML like Microdata or RDFa, it is easy to add, generate and maintain. Google recommends JSON-LD wherever a site can use it.

How search engines use it

Structured data tells search engines exactly what a page is about: the price and availability of a product, the author and date of an article, the steps in a recipe. Google uses it to understand pages and to decide whether a page is eligible for rich snippets such as review stars, product prices and breadcrumbs.

Eligibility is not a guarantee. Google shows rich results only when the markup is valid, matches visible content and the page meets its quality guidelines.

Common JSON-LD errors

The most common problems are invalid JSON (a trailing comma or an unescaped quote breaks the whole block), a missing @context, misspelled types or properties, and missing required properties such as offers on a Product. Markup that describes content users cannot see, such as reviews that are not on the page, can earn a manual action.

Test every template after a change, not only one page: a CMS update that breaks a single field breaks it on thousands of URLs.

Example

Organization markup in JSON-LD:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Co",
  "url": "https://example.com",
  "logo": "https://example.com/logo.png",
  "sameAs": ["https://www.linkedin.com/company/example"]
}
</script>
Check it on your site: Schema markup validatorValidate JSON-LD and see which recommended properties are missing. Free, no signup.
Questions

Frequently asked questions

Is JSON-LD better than Microdata?

Google supports JSON-LD, Microdata and RDFa equally for rich results but recommends JSON-LD because it is easier to implement and maintain at scale.

Where should JSON-LD go, head or body?

Either works. Google reads JSON-LD in the head or the body, including blocks injected by JavaScript, although server-rendered markup is the most reliable.

Is JSON-LD a ranking factor?

Not directly. It helps search engines understand a page and can make it eligible for rich results, which can raise click-through rate.

Related terms

Keep learning

Full SEO glossary

More free tools

Check the rest of your SEO

All free SEO tools

Find every issue like this across your site

Fix it automatically, then see what the fix earned.

  • The AI drafts the fix for every issue like this across your site, ranked by impact
  • Approve it and the free WordPress plugin publishes it, with one-click undo
  • 28 days later, the clicks each fix earned, from your own Search Console
Fix my site free Free plan, no card · not on WordPress? Copy each fix in