Schema Markup Generator
Generate JSON-LD structured data markup.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How structured data improves search results",
"image": "https://example.com/cover.jpg",
"datePublished": "2026-05-19",
"author": {
"@type": "Person",
"name": "Jane Doe"
},
"publisher": {
"@type": "Organization",
"name": "Example Media"
}
}
</script>Paste the block above into the <head> or <body> of the matching page. Empty optional fields are omitted automatically. Always confirm the result in Google’s Rich Results Test before publishing.
How to use Schema Markup Generator
What this tool does
The Schema Markup Generator builds valid JSON-LD structured data for the schema
types you are most likely to need: Article, Product, FAQPage, BreadcrumbList,
LocalBusiness, Organization, Event, Recipe, WebSite and Person. You choose a
type, fill in the fields that appear for it, and the tool assembles a complete,
pretty-printed <script type="application/ld+json"> block ready to paste into
your page. Optional fields you leave blank are simply omitted from the output,
so you never ship empty properties that trigger validator warnings.
Structured data is a standardised way of describing what a page is about in terms search engines understand. Instead of leaving Google to infer that a string of text is an author name or a price, you state it explicitly. That machine-readable description is what makes a page eligible for rich results.
Why it matters for SEO
Rich results change how your listing looks on the search results page. An Article with valid markup can show a headline image and publish date; a Product can display price and availability; a Recipe can surface cooking time and a rating; an FAQPage can expand into an accordion of questions directly under your link. Every one of these takes up more vertical space and gives the searcher a reason to click you over a plain blue link, which is why structured data is one of the highest-leverage technical SEO tasks available.
It also future-proofs your content. Search engines, AI answer engines and shopping surfaces increasingly read structured data to decide what to show and where. A page that clearly declares its type, author, dates and key properties is far easier for any of these systems to use correctly than one they have to guess at.
JSON-LD is the format to use. Microdata and RDFa embed attributes directly into your HTML tags, scattering the description across the markup and making it fragile to template changes. JSON-LD keeps everything in one block, so it is simple to generate, review and version — which is exactly what this tool does.
How to use it
- Pick a schema type from the dropdown. The tool loads with a sample Article so you can see a working example immediately.
- Fill in the fields shown for that type. Repeatable types — FAQPage and BreadcrumbList — let you add and remove rows; breadcrumb positions are numbered automatically.
- Watch the JSON-LD update live in the output panel as you type.
- Press Copy code and paste the whole
<script>block into your page, ideally inside the<head>. - Validate the live page in Google’s Rich Results Test before relying on it.
SEO best practices
Mark up only what is genuinely on the page — structured data must match the
visible content, or Google may ignore it or issue a manual action. Keep one
primary schema block per page that describes that page’s main entity. Use
absolute URLs (including https://) for image, logo and sameAs fields. Use
ISO 8601 for dates and durations: 2026-05-19 for dates and PT45M for a
45-minute duration. For Product offers, include price, currency and an
availability value so the listing can show a complete offer. Re-check your
markup whenever the underlying content changes.
Common mistakes to avoid
The most frequent error is marking up content that is not actually visible to
users — invented review counts, off-page prices, FAQs that do not appear on the
page. Google treats this as spammy structured data. Other common mistakes:
mixing up datePublished and dateModified; using relative image paths instead
of full URLs; choosing a type that does not match the page (Article markup on a
category listing, for example); and forgetting that schema.org validity is not
the same as rich-result eligibility. Finally, do not paste the same block site
wide — each page needs markup describing itself.
Privacy & your data
This generator is completely client-side. Every value you enter — headlines, prices, addresses, telephone numbers, author names, social profile URLs — is assembled into JSON-LD by JavaScript running in your own browser. Nothing is uploaded to a server, nothing is stored between visits, and no analytics capture what you typed. When you close the tab, the data is gone. That makes the tool safe for staging sites, unreleased products and internal pages you are not ready to publish. You only expose the markup to the world when you choose to paste it into a live page yourself.
Frequently asked questions
What is JSON-LD and why is it the recommended format?
Will adding schema markup move my page up the rankings?
What is the difference between schema.org types and Google rich result types?
Do I need a separate schema block for every page?
Is my data sent anywhere when I use this generator?
Related tools
JSON-LD Validator
Validate JSON-LD structured data.
Meta Tag Generator
Generate SEO meta title, description, and keyword tags.
Open Graph Generator
Generate Open Graph tags for rich social previews.
JSON Formatter
Format, validate, and minify JSON instantly.
Twitter Card Generator
Generate Twitter Card markup for your pages.
HTML Encoder & Decoder
Encode and decode HTML entities.