Skip to content
ToolMug

Schema Markup Generator (JSON-LD)

Structured data tells search engines what a page is about — a product with its price, an article with its author and date, a shop with its address and opening hours. Pick a type, fill in the form and copy a ready-to-paste JSON-LD script tag. Missing fields that Google requires or recommends are pointed out while you type, and a link takes you to Google’s Rich Results Test to check the result.

Runs in your browser — nothing you enter is uploaded

Questions and answers visible on the page. Google now shows FAQ rich results mainly for authoritative government and health sites, but other search engines and AI assistants still read it.

Paste the code into the page’s <head> or <body>. Only mark up content that is visible on the page — structured data that does not match the page can lead to a manual action.

How to use

  1. Choose the Schema type — FAQ page, Article, Product, Local business or Breadcrumbs.
  2. Fill in the fields. Required and recommended fields that are still missing are listed next to the code.
  3. Copy the code and paste it into the page’s HTML, then check it with the Rich Results Test.

Options explained

FAQ page
Questions and answers that are visible on the page.
Product
Needs a price or a rating; add availability, brand and image for richer results.
Breadcrumbs
The path from the home page; every item except the current page needs a full URL.

Example output and what is checked

A product with a price and a rating produces this code. Empty fields are left out, the currency is converted to upper case and the availability becomes a schema.org address:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Trail Backpack 30L",
  "image": [
    "https://example.com/pack.jpg"
  ],
  "sku": "NP-30",
  "brand": {
    "@type": "Brand",
    "name": "Northpeak"
  },
  "offers": {
    "@type": "Offer",
    "price": "89.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.6",
    "reviewCount": "128"
  }
}
</script>

The list next to the code shows these messages as you type:

Type Required Recommended
FAQ page At least one complete question and answer —
Article Image, if given, must be a full URL Headline, image, published date, author
Product Name; a price or a rating with its review count; a currency when there is a price Image
Local business Name; street address and city Phone, URL, opening hours
Breadcrumbs A full URL for every item except the last At least two items

Frequently asked questions

Will adding structured data get me rich results?

It makes a page eligible, but Google decides what to show. FAQ rich results, for example, are now shown mainly for authoritative government and health sites.

Where do I put the code?

Anywhere in the page’s <head> or <body>. Many CMS platforms have a field or plugin for custom scripts.

Can I mark up content that is not on the page?

No. Structured data has to describe content that visitors can see; mismatched markup can lead to a manual action.

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools