Skip to content
Back

Schema Markup Generator

Write JSON-LD structured data for organizations, articles, products, events, FAQs and more.

Required needed for Google’s rich result ·Recommended helps Google understand the page ·Optional

Paste the code into the page’s HTML (the head or the body both work). Structured data makes a page eligible for rich results but doesn’t guarantee them, and the markup must describe what people can actually see on that page.

Write JSON-LD structured data without hand-coding it

Schema Markup Generator turns a short form into JSON-LD — the structured data format Google recommends — for eleven kinds of page: Organization, LocalBusiness, Article, BlogPosting, NewsArticle, Product, Event, FAQPage, BreadcrumbList, Person and WebSite. The code updates as you type, inside a ready-to-paste script tag.

Each field is labelled Required, Recommended or Optional, following Google’s structured-data documentation for that feature. Missing or doubtful values produce warnings, never a blocked result. Everything runs in your browser; nothing you type is sent anywhere.

How to create schema markup for a page

  1. Pick the Type of content that matches the page, and read the short note under it.
  2. Fill in the fields. Repeatable parts — FAQ questions, breadcrumb levels, opening hours — have their own Add and Remove buttons.
  3. For dates, choose the date and time, then the UTC offset of the place it applies to. The offset is added to every date in the form.
  4. Fix anything flagged next to a field, and check the line above the code for required fields that are still empty.
  5. Click Copy code, paste it into the page’s HTML, publish, then check the live page with Google’s Rich Results Test or the Schema Markup Validator (both links open in a new tab).

What ends up in the code

  • Only what you filled in: empty fields are left out entirely, and so are nested parts such as an address, author or offer when none of their fields have a value.
  • Standard wrapper: every snippet starts with "@context": "https://schema.org" and the type you chose, pretty-printed with two-space indentation.
  • Safe to paste: any "</" inside your text is written as "<\/", which JSON reads the same way but which can’t close the script tag early.
  • Enumerations as URLs: availability, condition, event status and attendance mode are written as schema.org addresses such as https://schema.org/InStock.

Pages that benefit from structured data

  • Shops: describe a product with its price, currency, availability, brand and barcode.
  • Local businesses: give your address, phone number, price range, map position and opening hours.
  • Publishers and bloggers: mark up headlines, images, publication dates and authors.
  • Event organisers: cover in-person, online and hybrid events, with tickets if you sell them.

Getting markup accepted

  • Mark up only what visitors can see on that page. A price, rating or answer that appears only in the code is against Google’s guidelines.
  • Use full addresses starting with https:// for every URL and image; the form flags anything else.
  • Write prices with digits and a dot, such as 19.99, and choose the currency separately.
  • Keep the page’s visible title in step with your meta tags, and make sure the page is listed in your sitemap so it gets crawled.

Rich results and their limits

Markup makes a page eligible, not guaranteed

Valid structured data lets Google show a rich result, such as prices or event dates, but Google decides whether to show one, depending on the query, the page and its policies.

Why some options are missing

There are no rating or review fields: ratings a business writes about itself, or makes up, break Google’s review snippet policies and can lead to a manual action. The WebSite type has no search box action, because Google retired the sitelinks search box. And since 2023 Google shows FAQ rich results only for well-known government and health websites — FAQPage markup is still valid, but on other sites it won’t produce that result.

Schema Markup Generator: common questions

Where do I put the JSON-LD code?

Anywhere in the page’s HTML — inside the head or the body both work. Many content management systems have a field or plugin for custom head code. Add it to the specific page it describes, not to every page.

Does the tool check my markup with Google?

No. It checks what it can locally — empty required fields, malformed URLs and dates, an end before a start, prices with symbols, GTIN check digits, coordinates out of range. For Google’s own verdict, run the Rich Results Test on the live page.

Which time zone are dates in?

The one you pick in Time zone (UTC offset). It starts at your browser’s current offset; change it to the offset of the place where the event happens, remembering that daylight saving time can make it differ from today’s.

Can I combine several types on one page?

Yes. Generate each type and paste each script tag into the page. Switching types keeps what you entered for the others while the page is open.

Why can’t I add star ratings to a product?

Self-written or invented ratings are against Google’s policies. If customers leave real reviews, the review system that displays them on the page should produce that markup.

Is my information stored anywhere?

No. The form and the code exist only in the open page and are gone when you close it. More tools for search work are in SEO tools.