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.
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.
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.
How to add and test it
- Pick the schema type that matches the page, and check the required properties in Googleβs structured data documentation.
- Write the JSON-LD, or generate it from your CMS or a plugin.
- Paste it into a JSON formatter to catch syntax mistakes.
- Test the live URL with Googleβs Rich Results Test and the Schema Markup Validator.
- 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

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.
Related articles
More guides on the same topic.
- SEO Β· 8 min readHow to Allow or Block AI Crawlers With robots.txt and llms.txtAI assistants now read the web just like search engines do. This guide covers choosing which AI crawlers may visit, what llms.txt can and cannot do, and how to test your rules.
- SEO Β· 9 min readCore Web Vitals Explained: LCP, INP and CLS in Plain EnglishCore Web Vitals sound technical, but they measure three simple things: how fast the main content appears, how quickly the page reacts, and whether it jumps around. Here is what to fix first.
- SEO Β· 9 min readCanonical Tag Missing or Wrong: What It Means and How to Fix ItCanonical tags tell search engines which URL is the main version of a page. Missing or incorrect canonicals create duplicates, diluted signals, and confusing indexing, and each case has a straightforward fix.