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.
| Type | Describes (required fields) | What Google can do with it |
|---|---|---|
| Article | A 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. |
| Product | One 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. |
| LocalBusiness | A 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. |
| Organization | The 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. |
| Event | A 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. |
| Video | A 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. |
| HowTo | Step-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. |
| Breadcrumb | The 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 is | Generate | Worth knowing |
|---|---|---|
| Your home page, or one about page | Organization | Google 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 story | Article, plus Breadcrumb | The 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 page | Product, plus Breadcrumb | Google'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 location | LocalBusiness | Google 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 venue | Event | Google says events must be bookable by the general public; membership-only and invitation-only events are not eligible. |
| A page built around one video | Video | Google'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 page | Breadcrumb, beside the main block | Google 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.
| Type | Asterisk fields in this tool | Required by Google's documentation | Where they differ |
|---|---|---|---|
| Article | Headline, image, author name, date published | None. 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. |
| Product | Name, image, price, currency | Snippets: 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. |
| LocalBusiness | Name, street, city, country | Name and address. | Google documents openingHoursSpecification, not the text openingHours lines the tool writes. |
| Organization | Name, website URL | None. Name, URL, logo, sameAs, contact point and more are recommended. | The tool is stricter. |
| Event | Name, start, venue name, venue address | Name, 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. |
| Video | Title, description, thumbnail URL, upload date | Name, 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. |
| Breadcrumb | The 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
@typeArticle, with one image URL, the author as a Person with a name only, and a nested publisher Organization (name and logo). The Article URL becomesmainEntityOfPage(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 as2026-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
@typewith spaces removed, or LocalBusiness if blank. Hours areopeningHourstext lines, notopeningHoursSpecification, 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
sameAsentry, 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>@typeis Bakery because the business type was used as typed. Left blank it would have been LocalBusiness.- There is no
geoproperty 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
openingHoursarray. - 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
| Mistake | Why it matters | This generator |
|---|---|---|
| Marking up reviews you wrote about yourself, or ratings the page does not show | Google'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 @type | A 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 empty | The 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 status | The 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 blocks | Two 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 start | The 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
- Read the live page next to the block and confirm every fact in the markup is visible on the page.
- 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. - 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.
- Once Google has recrawled the page, Search Console lists the structured data it found for the types it has reports for, and flags errors.
- 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.