elefcode

Schema Markup Generator (JSON-LD)

Fill in a form, get valid Schema.org structured data for rich results in Google.

News, blog and article pages — can show a larger image and date in results.

Keep it under 110 characters.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "How to Convert px to rem",
  "image": [
    "https://example.com/cover.png"
  ],
  "author": {
    "@type": "Person",
    "name": "Sam Lee"
  },
  "datePublished": "2026-10-01T09:00",
  "mainEntityOfPage": "https://example.com/px-to-rem"
}
</script>

All required fields are filled. Paste the code into your page’s <head> or <body>, then check it with Google’s Rich Results Test.

Structured data must describe what is visible on the page. Marking up content users cannot see can lead to a manual action.

Advertisement

Guide

About the Schema Markup Generator (JSON-LD)

Schema markup is structured data that describes a page’s content in a vocabulary search engines understand — this page is a recipe, that number is a price, this date is when the event starts. Written as JSON-LD, it sits in a <script type="application/ld+json"> tag and can make a page eligible for rich results such as star ratings, FAQs, breadcrumbs and event dates.

Choose a type, fill in the form, and copy the generated code. Fields Google needs for the rich result are marked, and any you leave empty are left out of the output.

Which schema type should I use?

  • Article for blog posts and news; Product for anything you sell.
  • LocalBusiness for a physical location, with address and opening hours.
  • Organization and WebSite once, on your home page.
  • BreadcrumbList on any page deeper than the home page.
  • FAQPage, HowTo, Recipe, Event, VideoObject and JobPosting when the page is that kind of content.

Rich results are not guaranteed

Valid markup makes a page eligible, but Google decides when to show rich results. Since 2023, FAQ rich results appear mainly for authoritative government and health sites, and how-to rich results were retired — the markup is still valid and helps search engines and AI assistants understand the page.

How to use it

  1. 1Pick the schema type that matches your page.
  2. 2Fill in the fields — required ones are marked with *.
  3. 3Copy the code into your page’s HTML.
  4. 4Check it with Google’s Rich Results Test before you publish.

Frequently asked questions

What is JSON-LD?

JSON for Linked Data — a way of writing Schema.org structured data as a JSON object inside a script tag, separate from your HTML. It is the format Google recommends.

Where do I put the JSON-LD code?

Anywhere in the page HTML, usually in the head. It can also be injected by JavaScript or a tag manager, as long as it is present when Google renders the page.

Can a page have more than one schema?

Yes. Add one script tag per type — for example Article and BreadcrumbList on the same blog post.

Does schema markup improve rankings?

Not directly. It helps search engines understand the page and can earn rich results, which often get more clicks.

Why are some fields marked as required?

Google only shows a rich result when certain properties are present, such as price and currency for a product. The tool warns you when one is missing.

Related tools