← All Articles
SEO

JSON-LD Structured Data for Beginners: A Practical Guide

Structured data helps search engines and AI tools understand what your page is about. This guide shows how to write JSON-LD, which types matter, and how to avoid common errors.

NetTooling Team9 min read

Short answer

JSON-LD is a block of JSON in a script tag that labels what a page is about, using the schema.org vocabulary. It helps search engines and AI tools understand your content and can make a page eligible for rich results. Mark up only visible content, validate it, and never expect a guaranteed ranking boost.

SEOJSON-LD Structured Datafor Beginners: A PracticalGuide123456789NetToolingnettooling.com

A web page is written for people, but search engines and AI tools have to guess what it means. Is that number a price or a phone number? Is this page an article, a product or a recipe? Structured data removes the guessing by labelling your content in a format machines read easily. The most common format, and the one Google recommends, is JSON-LD.

What JSON-LD looks like

JSON-LD is a block of JSON placed inside a script tag with the type application/ld+json, usually in the head of the page. It does not change how the page looks. It uses the vocabulary from schema.org, where @context says which vocabulary you use, @type says what kind of thing you are describing, and the remaining properties describe it.

For example, an Article block would include @type set to Article, a headline, an author, a datePublished and an image. Because it is just JSON, a missing comma or an unescaped quote breaks the whole block, which is why running it through a JSON formatter before publishing saves trouble.

Schema types worth adding first

  • Organization: your name, logo, website and official profiles. Put it on the homepage so search engines connect your brand to your site.
  • Article or BlogPosting: headline, author, publish and update dates, and image for editorial content.
  • BreadcrumbList: shows the path to the current page and can appear in search results in place of a plain URL.
  • Product, with offers and reviews, for stores. Only mark up reviews that really appear on the page.
  • FAQPage and HowTo: still useful for describing content to machines, but Google now limits visible FAQ rich results to a small set of sites and has retired HowTo rich results, so do not add them just for a snippet.

The golden rules

  • Mark up only what is visible on the page. Hidden or invented details can lead to a manual action.
  • Keep it accurate and in sync. If the price changes on the page, change it in the markup too.
  • Use the most specific type available, such as NewsArticle or LocalBusiness, not just Thing.
  • Fill in the required properties for the feature you want, and the recommended ones if you can.
IN THIS GUIDEThe golden rulesjson-ld structured da…schema markup for beg…how to add schema mar…NetToolingnettooling.com
The golden rules

How to add and test it

  1. Pick the schema type that matches the page, and check the required properties in Google’s structured data documentation.
  2. Write the JSON-LD, or generate it from your CMS or a plugin.
  3. Paste it into a JSON formatter to catch syntax mistakes.
  4. Test the live URL with Google’s Rich Results Test and the Schema Markup Validator.
  5. After publishing, watch the Enhancements reports in Search Console for errors and warnings.

Common mistakes

  • Copying markup from another site and leaving its name, URLs and ratings in place.
  • Marking up content that is not on the page, such as reviews you never display.
  • Duplicate blocks from both a theme and a plugin that disagree with each other.
  • Using relative URLs where absolute URLs are expected, such as logo and image.

Structured data makes a page eligible for rich results; it does not guarantee them, and it is not a direct ranking factor. Its steady value is clarity: it tells search engines and AI assistants exactly who published a page, what it is, and when it was updated.

Frequently Asked Questions

JSON-LD or Microdata: which should I use?

JSON-LD. Google recommends it, and because it sits in one block apart from your HTML, it is easier to write, read and maintain than Microdata or RDFa.

Will adding schema improve my rankings?

Not directly. It can make your result eligible for richer displays and helps machines understand the page, which can improve how it appears, but it does not replace good content.

Where should the JSON-LD script go?

In the head or body of the page. Both work, as long as the markup is in the HTML that crawlers receive and matches the visible content.

Try the Tools

Put this into practice with our free, no-signup tools.

About the author

NetTooling logo

NetTooling Team

Editorial team

The NetTooling team builds the free tools on this site and writes the guides that go with them. Every article is based on real website and SEO work, tested against our own tools, and updated when search engines or web standards change.

About NetToolingHow we write and review guides

Related articles

More guides on the same topic.

Browse all guides β†’