How to use the Schema generator tool
- Pick Website, Organization, Article or Product under Schema type.
- Enter the name in Name or headline. For an article this is the headline.
- Paste the page address into Canonical URL, starting with http:// or https://.
- Add a Description and, if you have one, an Image URL. Both can be left empty.
- Select Generate, then Copy, and paste the block into the head or body of the page it describes.
What JSON-LD schema markup is
Schema.org is a shared vocabulary of types and properties for describing things on web pages. JSON-LD, short for JSON for Linking Data, is a W3C format for writing such descriptions as a JSON object. The @context key names the vocabulary and @type names the kind of thing being described.
The object sits in a script element with the type application/ld+json. Browsers do not execute it, and it does not change how the page looks. Crawlers read it to understand the page. Google recommends JSON-LD where a site's setup allows it, as the easiest of the supported formats to implement and maintain.
A worked example
With Schema type set to Article, the name field is written as headline. All four fields were filled in, so the block contains description and image as well. Leave either of those empty and its line is simply omitted.
Schema type: Article
Name or headline: How Base64 padding works
Canonical URL: https://example.com/blog/base64-padding
Description: Why encoded strings end with = signs.
Image URL: https://example.com/img/padding.png
Result:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How Base64 padding works",
"url": "https://example.com/blog/base64-padding",
"description": "Why encoded strings end with = signs.",
"image": "https://example.com/img/padding.png"
}
</script>Properties the schema markup generator writes
The output is deliberately small, and it always has the same shape, listed below.
Text is serialized as JSON, so quotes and backslashes are escaped correctly. In addition, every less-than sign is written as \u003c. A title that contains a closing script tag therefore cannot end the block early, and JSON parsers read the escape as the original character.
- @context is always https://schema.org.
- @type is WebSite, Organization, Article or Product, according to your selection.
- name holds the Name or headline field, trimmed. For Article the key is headline.
- url holds the Canonical URL after normalization, so https://example.com becomes https://example.com/.
- description is included only when the Description field has text.
- image is included only when Image URL is filled, and it must be an http or https address.
What to add before you rely on rich results
The block is a valid starting point, not a complete record. For articles, Google lists no required properties but recommends author, datePublished, dateModified and image. For product snippets it requires name plus at least one of review, aggregateRating or offers. The Product output of this tool has none of those three, so add an offers object with a price and currency by hand.
Edit the JSON in any text editor, keep the commas and quotes valid, and run the final markup through the structured data testing tool of the search engine you care about. Markup must describe content that is visible on the page.
Frequently asked questions
Which schema types does this generator support?
Four: WebSite, Organization, Article and Product. The menu shows the first as Website, and the output uses the official spelling WebSite. Other Schema.org types such as FAQPage or LocalBusiness are not offered.
Will this markup give my page rich results?
Not by itself. Search engines decide when to show rich results, and several features need more properties than this tool writes. A Product block, for example, needs offers, a review or a rating before Google considers it for product snippets.
Why does the Article output use headline, not name?
Schema.org gives Article a dedicated headline property, and that is the one Google reads for article titles. The generator switches the key automatically when you choose Article and uses name for the other three types.
What happens if I leave the URL or name empty?
The tool stops with a message. An empty name gives Enter a name or headline. A missing or relative URL gives Enter an absolute HTTP or HTTPS URL without embedded credentials. Description and image are optional.
Is the data I enter sent anywhere?
No. The JSON-LD is assembled by a script in your browser and shown in the Result box. Nothing is submitted to a search engine or to this site, and you publish the block yourself.