Schema Markup Generator

Build valid JSON-LD structured data for Article, Product, LocalBusiness, Organization, Event, Video, HowTo, and Breadcrumb markup. Runs entirely in your browser.

Article

Blog posts, news stories, and editorial pages.

Google shows up to about 110 characters.

At least 1200px wide; Google prefers 16:9, 4:3, and 1:1 versions.

Publisher

JSON-LD

Fill in the fields and your markup appears here.

Required by Google, still empty

HeadlineImage URLAuthor nameDate published
How to use the output

Structured data is a machine-readable summary of what a page is about, written in JSON-LD — the format Google explicitly recommends over Microdata and RDFa. This tool builds one valid block per type, includes only the properties you filled in, and escapes the output so it can't break out of the script tag it gets pasted into.

Two checks are worth running after you paste it: the Schema Markup Validator on this site confirms the block parses and declares a type once the page is live, and Google's own Rich Results Test confirms the per-type property requirements for the specific enhancement you're after. Keep the markup honest — describing products, ratings, or events that don't match what a visitor actually sees on the page is a manual action risk, not a clever trick.

What each type describes, and what Google can do with it

Google has retired or restricted several rich results over the years, FAQ and HowTo being the best known, and the list keeps changing. So the last column says what Google has documented each type can support, not what it will show: whether a result appears is Google's decision for each page and query, and valid markup never guarantees one. Check Google's current documentation before you plan around a feature. The fields in parentheses are the ones this tool marks with an asterisk.

TypeDescribes (required fields)What Google can do with it
ArticleA blog post or news story (headline, image, author, date published).Helps Google understand the page's title, image, author and dates, which can improve how they appear in results. Covers the NewsArticle and BlogPosting subtypes too. No dedicated rich result is promised.
ProductOne product with a price and availability (name, image, price, currency).Product snippets can show price, availability and ratings when Google chooses to. Merchant listings use a larger property set, such as shipping and returns, that this tool does not build.
LocalBusinessA physical business (name, street, city, country).Helps Google match your name, address, phone and hours to the business. Your Google Business Profile manages local listing details, so treat the markup as a supporting signal.
OrganizationThe company behind the site, usually described once (name, website URL).Helps Google tie your name, logo, site and official profiles to one entity. It does not guarantee any of them is shown.
EventA dated event (name, start, venue name, venue address).Google documents event markup for listings that show dates, times and locations. Check its current Event documentation for the eligibility rules.
VideoA page whose main content is a video (title, description, thumbnail URL, upload date).Google documents video markup for video appearances in Search. It only helps for a video Google can find and index on that page.
HowToStep-by-step instructions (title, steps).Google no longer shows HowTo rich results, as the tool's own description says. The markup is still valid schema.org.
BreadcrumbThe page's place in the site hierarchy (the trail).Google documents it for showing a path in a result instead of the raw URL. How and where it displays has changed over time, so check Google's current documentation.

FAQ and Review markup are not in this generator. The FAQ Schema Generator and the Review Schema Generator build them, and the FAQ schema guide explains what changed for FAQ results.

Which type to choose for which page

Choose by what the page is mainly about, then add a breadcrumb trail beside it. Google says it understands several items on one page.

The page isGenerateWorth knowing
Your home page, or one about pageOrganizationGoogle recommends it on the home page or one page describing the organization, not every page. A business with a physical location can use LocalBusiness instead, a subtype of Organization.
A blog post, guide or news storyArticle, plus BreadcrumbThe tool always writes Article; change the value by hand for BlogPosting or NewsArticle. A tutorial is still an Article, since Google shows no rich result for HowTo.
A product pageProduct, plus BreadcrumbGoogle's product snippets need a name plus one of offers, review or aggregateRating, so the price does real work. Add a rating only if the page shows it.
A page for one business locationLocalBusinessGoogle asks for the URL of the specific location, so each location gets its own page and block.
A page for one dated event at a venueEventGoogle says events must be bookable by the general public; membership-only and invitation-only events are not eligible.
A page built around one videoVideoGoogle's video guidance says to create a dedicated watch page for each video where that makes sense for your business.
Any page below the home pageBreadcrumb, beside the main blockGoogle shows breadcrumbs on desktop results only, and describes a trail as at least two items.

Required and recommended properties: this tool's list against Google's

The asterisk fields are this tool's own choice of essentials. Google's documentation keeps its own lists, and they only partly match.

TypeAsterisk fields in this toolRequired by Google's documentationWhere they differ
ArticleHeadline, image, author name, date publishedNone. Author, headline, image and the dates are recommended.The tool is stricter. Google also recommends an author URL; the tool has no field for it.
ProductName, image, price, currencySnippets: a name plus one of offers, review or aggregateRating, and a price in the offer. Merchant listings also need an image and a currency, and a price above zero.The tool's set is the merchant listing minimum. Currency is only recommended for snippets.
LocalBusinessName, street, city, countryName and address.Google documents openingHoursSpecification, not the text openingHours lines the tool writes.
OrganizationName, website URLNone. Name, URL, logo, sameAs, contact point and more are recommended.The tool is stricter.
EventName, start, venue name, venue addressName, start date, and a location with a name and an address.The sets match. The tool always writes an attendance mode, which Google's page no longer lists.
VideoTitle, description, thumbnail URL, upload dateName, thumbnail URL, upload date.Google only recommends a description. It prefers the file URL, with the embed URL as the alternative; both are optional here.
BreadcrumbThe trail (at least one named row)A list of items, each with a name and position, and a URL on every item except the last. At least two items.Positions are automatic. The tool does not stop a one-item trail.

So a filled asterisk list does not prove eligibility. Google revises these pages, so check the type's current documentation before you rely on a list.

What the generator builds for each type

  • Article: always @type Article, with one image URL, the author as a Person with a name only, and a nested publisher Organization (name and logo). The Article URL becomes mainEntityOfPage (blank means the property is dropped), so set it to the page's canonical address and the block names the same URL as your canonical tag. Dates are written exactly as the date fields give them, year first, such as 2026-09-14.
  • Product: one Offer. The price is written as text such as "89.00", the currency is upper-cased and the availability is always written. There are no individual reviews, GTIN or MPN fields, variants, shipping or returns.
  • LocalBusiness: the business type you type becomes @type with spaces removed, or LocalBusiness if blank. Hours are openingHours text lines, not openingHoursSpecification, the form for special dates such as holiday closures.
  • Organization: the logo is a plain URL, each profile URL on its own line becomes a sameAs entry, and a contact point is written only when a telephone is entered.
  • Event: a single Offer, and a location that is always a Place with a text address. Attendance mode starts on In person and status on Scheduled. There are no performer or organizer fields.
  • Video: the upload date is a date with no time, and the duration is checked as an ISO 8601 value such as PT1M33S.
  • HowTo: each filled row becomes a step with a position, a name and instructions, in the order entered. There are no step images, supplies or tools.
  • Breadcrumb: each row with a name becomes a list item numbered from 1, with the URL as its item.

JSON-LD, Microdata or RDFa, and where the block goes

  • JSON-LD is one script block of JSON, separate from the visible HTML. Google recommends it, and it is the only format this tool outputs. It can be added, tested and removed without touching the page design.
  • Microdata (itemscope, itemtype, itemprop) and RDFa (typeof, property) put attributes on the visible elements. Google reads both, but the data is mixed into your templates, so a design change can break it. This tool does not produce either.

Paste the block exactly as printed, script tags included. If your CMS already wraps custom code in a script tag, paste only the JSON between the tags. It can sit in the <head> or the body, but it must be on the page it describes. Where you can, have it in the HTML the server sends: Google can read a block added by JavaScript, but only after it renders the page, which is slower and less dependable. If a plugin or theme already writes markup for the same thing, keep one description, so two versions cannot disagree.

Adding the block when your pages are built in code

The generator escapes every < in its output as \u003c, so a value that contains a closing script tag cannot end the block early. If a template or component builds the JSON-LD for you, do the same. Next.js documents this pattern: render the object as a script tag in the page's component and replace < with its Unicode escape. A plain script tag is the right choice there, because JSON-LD is data, not code to run.

export default function Page() {
  const jsonLd = {
    "@context": "https://schema.org",
    "@type": "Article",
    headline: "How to descale an espresso machine",
  };

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

Build the object from the same data that renders the visible text, so a price or date cannot change in one place and not the other.

Worked example: a bakery's home page

Every name, address and URL here is invented. A small bakery opens the Local Business tab and enters Bakery as the business type, a name, description, image, phone number, website and a $$ price range, then the address (14 Harbour Lane, Portland, OR, 97201, US) and two opening-hours lines, Tu-Fr 07:00-17:00 and Sa-Su 08:00-14:00. Latitude and longitude stay blank. The tool prints exactly this:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Bakery",
  "name": "Harbour Lane Bakery",
  "description": "Small-batch sourdough, pastries and custom cakes, baked fresh every morning.",
  "image": "https://www.example.com/images/storefront.jpg",
  "telephone": "+1 415 555 0147",
  "url": "https://www.example.com/",
  "priceRange": "$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "14 Harbour Lane",
    "addressLocality": "Portland",
    "addressRegion": "OR",
    "postalCode": "97201",
    "addressCountry": "US"
  },
  "openingHours": [
    "Tu-Fr 07:00-17:00",
    "Sa-Su 08:00-14:00"
  ]
}
</script>
  • @type is Bakery because the business type was used as typed. Left blank it would have been LocalBusiness.
  • There is no geo property because latitude and longitude were blank. Blank fields are left out, never written as empty values.
  • Each opening-hours line became one string in the openingHours array.
  • The "Required by Google, still empty" list is absent because the four required fields (name, street, city, country) are filled in.

The block is valid, but it only helps if the page says the same thing, so check that the phone number, address and hours in the visible text match it before you paste.

Worked example: an article page with a breadcrumb trail

A guide page needs two blocks. On the Article tab, enter the headline, an image URL, the author name, both dates and the article URL, and leave the description and publisher blank. On the Breadcrumb tab, enter Home, Guides and the guide's title, with a URL on the first two rows and none on the last. The names and addresses are invented. The tool prints this for the article:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to descale an espresso machine",
  "image": "https://www.example.com/images/descale-cover.jpg",
  "author": {
    "@type": "Person",
    "name": "Jane Doe"
  },
  "datePublished": "2026-10-24",
  "dateModified": "2026-10-24",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.example.com/guides/descale-espresso-machine"
  }
}
</script>

And this for the trail:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://www.example.com/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Guides",
      "item": "https://www.example.com/guides/"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "How to descale an espresso machine"
    }
  ]
}
</script>

Neither tab shows a "Required by Google, still empty" list or a warning. Run through this site's Schema Markup Validator code, a page holding both as two script tags reads 2 JSON-LD blocks found — 2 valid, with a score of 100 and Article and BreadcrumbList listed. Merging them by hand into one @graph array, with a single @context on the outside, reads the same. The generator prints separate blocks, so use one layout per page. Before publishing, check that the page shows the same headline, author and dates.

Worked example: what the generator says about an incomplete product

On the Product tab, enter the name Espresso Mug, the image /images/mug.jpg, a price of 14.00, no currency, and a rating value of 4.6 with no count. The block still prints, with "price": "14.00", no priceCurrency, and an aggregateRating holding only the rating value. Beside it, the tool shows:

  • Under "Required by Google, still empty": Currency.
  • Image URL should be an absolute URL starting with https:// — relative paths aren't resolved by search engines.
  • An aggregate rating needs both a rating value and a count — Google ignores one without the other.

Enter an https:// image address, usd as the currency and a rating count of 128, and all three messages clear. The block gains "priceCurrency": "USD" (upper-cased) and "ratingCount": 128. Copy stays enabled throughout, so read the messages first.

The rules that make markup valid and eligible

  • Valid is not the same as eligible. Valid markup parses and uses real types and properties. Eligible also means it has the properties a feature needs and follows Google's content guidelines. Even then, showing a result is up to Google.
  • The markup must match the visible page. The name, price, availability, hours, dates and ratings in the block must be on the page and say the same thing. Content that exists only in the markup, or is hidden from visitors, goes against Google's guidelines and can get the markup ignored or lead to a manual action.
  • Required first, then recommended. Fill the asterisk fields, then add optional ones that are true. For some types, Article for example, Google lists most properties as recommended rather than strictly required, so check the current documentation for the split.
  • One main entity per page, described once. A product page carries one Product block and an article page one Article block. Supporting blocks such as a breadcrumb trail sit beside it, and one block is never pasted across pages whose content differs.
  • Keep the facts identical everywhere. A business's name, address and phone, or an Organization's name, logo and URL, should read the same in the markup, the page text and your Business Profile.
  • Use absolute, crawlable URLs. Images and logos need full https:// addresses Google is allowed to fetch, so not blocked by robots.txt. The tool warns about any URL that is not absolute and still prints the block.

Common mistakes, and what this generator does about them

MistakeWhy it mattersThis generator
Marking up reviews you wrote about yourself, or ratings the page does not showGoogle's review guidelines rule out self-serving reviews for LocalBusiness and Organization, and made-up ratings risk a manual action.The only ratings field is the Product aggregate rating. It warns about a value without a count (or the reverse) and a value outside 1 to 5, but cannot know whether the ratings are real.
A wrong or invented @typeA type that does not exist, or does not fit the page, gives Google nothing to use.Not checked. The Local Business type is only stripped of spaces, so "Pizza Place" is written as PizzaPlace, which is not a schema.org type. Compare the name with schema.org.
Required fields left emptyThe feature the type supports may not be available.Lists them under "Required by Google, still empty" and leaves the property out. Copy still works, so read that list before you paste.
Stale price, availability or event statusThe block says one thing and the page another.Availability starts on In stock and is always written, so a sold-out item must be changed to Out of stock. Event status and attendance mode also start on their first option. The block is a snapshot and never updates itself.
Duplicate or conflicting Organization blocksTwo descriptions of one company on a page can disagree.The Article tab already writes a nested publisher (name and logo only). If you also paste an Organization block, keep the name and logo identical.
An event time with no time zone, or an end before the startThe time can be read in the wrong zone, or the dates contradict each other.Warns about both. The end check compares the two values as text, so it is reliable only when both use the same format and offset.

Check the block after you paste it

  1. Read the live page next to the block and confirm every fact in the markup is visible on the page.
  2. Run the published URL through the Schema Markup Validator. It collects every JSON-LD block on the page, checks that each parses as JSON, unpacks any @graph, and checks that each entity declares a @type. It does not check a type's required properties or whether the markup matches the page, and it needs a URL our server can reach.
  3. Run Google's Rich Results Test. It accepts a public URL or pasted code, so you can try a block before it goes live. It reports which rich result types it finds, with errors for missing required properties and warnings for many missing recommended ones. A pass means the page is eligible, not that Google will show anything.
  4. Once Google has recrawled the page, Search Console lists the structured data it found for the types it has reports for, and flags errors.
  5. The Full Site Audit includes a structured data check among its free checks, next to canonical and meta tags, so you can see whether something other than the markup is the bigger problem. The schema markup guide covers the wider picture.

Frequently asked questions

Where do I put the generated code?

Paste the whole <script type="application/ld+json"> block into your page's HTML. It can go in the head or anywhere in the body — Google reads it from either. Most CMSs have a field for custom head code; in a framework you'd render it as a script tag on the page it describes. The markup must live on the page it's about, not on a shared template that puts the same Product data on every URL.

Does adding structured data improve my rankings?

Not directly. Structured data doesn't raise your position — what it does is make you eligible for rich results: star ratings, prices, event dates, breadcrumb trails, recipe cards. Those change how much space and attention your result gets, which is usually worth more in clicks than a small position change would be.

Why are some fields marked with an asterisk?

Those are the properties this tool treats as essential for each type, based on Google's structured data guidance. For most types Google lists them as required for a rich result; for a few, Article for example, Google lists most properties as recommended instead, so check Google's current documentation for your type. Markup missing them is still valid schema.org and won't cause an error, but Google may skip the enhanced display. The tool lists any you've left empty under the output so you can see what may be holding back eligibility.

Can I put more than one type on the same page?

Yes, and it's common — an article page often carries Article, BreadcrumbList, and Organization together. Generate each one here and paste them as separate script blocks, or combine them into a single @graph array if you prefer. Search engines read all the blocks on the page either way.

Is what I type here sent anywhere?

No. The JSON-LD is assembled in your browser as you fill in the form, so unpublished product prices, client details, and staging URLs stay on your machine. Nothing is uploaded or stored.

Should I use Article, NewsArticle or BlogPosting?

The generator always writes @type Article, which is valid for any editorial page. NewsArticle and BlogPosting are more specific schema.org types that sit under Article, and Google's article documentation covers all three. If you want one of them, generate the block here and change the value of @type by hand before you paste it. Pick the name that matches the page, and leave the rest of the block as it is.

Why is a field I filled in missing from the output?

The generator only writes properties that survive a few rules. Empty values are dropped, so blank fields never appear. Latitude and longitude produce a geo block only when both are filled in. The Organization contact point is written only when a contact telephone is entered, whatever the Contact type says. A how-to step is skipped when both its name and its instructions are blank, a breadcrumb row is skipped when its name is blank, and a number field ignores anything that is not a number. A rating is the exception: a rating value without a count is still written, with a warning.

Can I mark up an online-only event?

Not for Google's event feature. Google's Event documentation says events must take place in a physical location and that virtual experiences with no real-world component are not supported; it dropped its online event properties in June 2025. The generator still offers Online and Mixed under Attendance mode, and it always writes the location as a Place with a venue name and a text address, because that is the only location type it builds. So an online-only block is valid schema.org, but it is not something Google's current event documentation describes, and attendance mode is no longer a property that page lists. For an event with a real venue, enter the venue name and address, and enter the start with its time zone offset, such as 2026-11-05T19:00:00+05:30. Start is a plain text box on purpose, because a browser date picker drops the offset.

Do I have to regenerate the markup when a price or a date changes?

Yes. The block is a snapshot of what you typed, and markup that no longer matches the visible page is the problem Google's guidelines warn about. For a handful of pages, regenerate and paste again whenever a price, stock status, opening hour or event detail changes. For a shop or any site where those values change often, have the page template write the JSON-LD from the same data that renders the visible text, so the two cannot drift apart. This generator is best for pages you edit by hand, and as a reference for the structure a template should produce.

This tool has no FAQ or Review type. Where do I generate those?

Use the FAQ Schema Generator at /tools/faq-schema-generator and the Review Schema Generator at /tools/review-schema-generator on this site. Neither guarantees a visible result. Google has retired FAQ rich results, so FAQPage markup is now just a machine-readable description of questions that are on the page, and review markup comes with Google's own guidelines, including a rule against reviews a business writes about itself. The HowTo type in this tool is in the same position: it is valid schema.org, but Google no longer shows a rich result for it.

Why is the price in quotes in the output? Is that wrong?

No. The generator writes the price as text, exactly as you typed it with surrounding spaces removed, so 89.00 keeps its trailing zeros. Google's product documentation says the value can be a JSON string or a number. Ratings and counts are written as numbers. Either way, enter digits and a dot only: schema.org asks for the currency in its own field instead of a symbol such as $ in the price, and for a dot as the decimal point, so write 1299.00 rather than $1,299.00.

My business has more than one type, such as Electrician and Plumber. How do I enter that?

The Business type box takes one name. If you type two, such as Electrician, Plumber, the generator removes the spaces and writes a single @type of Electrician,Plumber, which is not a type. Google's local business page says to give several types as an array, so generate the block with one type, then change the @type line by hand to ["Electrician", "Plumber"]. Check each name against schema.org first, because the generator does not.

Should a breadcrumb include the home page and the current page?

Neither is required. Google's breadcrumb documentation says you do not need a list item for the top-level path (your site's domain) or for the page itself, and that the trail should follow a typical path a visitor takes rather than mirror the URL structure. The generator numbers the rows from 1 in the order you enter them and lets the last row have no URL, which Google reads as the containing page. It does not enforce the two-item minimum Google's page describes, so a trail with one row still prints with no warning. Check the length yourself.

Should I generate both LocalBusiness and Organization for a one-shop business?

Describe the business once. Google says LocalBusiness is a subtype of Organization and recommends following the Organization fields as well, such as the logo and sameAs profile links. This generator builds the two on separate tabs, and the Local Business tab has no logo or sameAs field. For one shop, use the Local Business tab, then copy the logo and sameAs lines from the Organization tab's output into that block by hand. Pasting both blocks onto one page gives two descriptions of the same business that can drift apart.

Related tools

We use cookies to analyze site usage and improve your experience. You can decline non-essential cookies. Privacy Policy