๐Ÿ“š Links & SEO ยท Guide

How to Add Schema Markup to Your Website: A Free Generator Guide

Create JSON-LD structured data for FAQ, Article, Organization, Local Business and Product pages. Learn what schema markup does, how to add it and how to test it.

By RexBD Team 24 Nov 2026 7 min read 1,530 words
How to Add Schema Markup to Your Website: A Free Generator Guide

Search engines are good at reading text, but they still benefit from a little help. Schema markup is that help. It is a small block of code that describes your page in a format machines understand perfectly: "this is a local business, open from 9 to 6, at this address" or "this is a product that costs this much and has these reviews".

With the right markup, Google can show richer results for your pages, such as star ratings, prices, breadcrumbs and business details. These enhanced listings stand out and often attract more clicks. This guide explains how to use the free Schema Markup Generator on RexBD to create structured data without writing code by hand.

What schema markup is

Schema.org is a shared vocabulary created by Google, Microsoft, Yahoo and Yandex in 2011. It defines hundreds of types of things, such as Person, Organization, Product, Recipe and Event, along with their properties, such as name, address, price and date.

You add this information to your page as structured data. Google recommends the JSON-LD format: a script block, usually placed in the page's <head>, that contains the data as JSON. It looks like this:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Ltd",
  "url": "https://example.com",
  "logo": "https://example.com/logo.png"
}
</script>

Visitors never see this code. Search engines read it to understand the page with certainty instead of guessing from the text.

๐Ÿงฑ Free tool ยท no sign-upTry the Schema Markup GeneratorCreate JSON-LD structured data for FAQ, Article, Organization, Local Business and Product. Open tool โ†’

Why structured data matters

Structured data is not a direct ranking boost. Google has been clear that it is used to understand content and to make pages eligible for rich results. But eligibility for rich results can matter a lot:

  • Product results can show price, availability and review stars.
  • Local business information helps Google connect your website with your address, phone number and opening hours.
  • Article markup helps Google understand headlines, dates and authors.
  • Breadcrumb markup replaces the raw URL in search results with a readable path.
  • Organization markup helps Google show the correct logo and details for your brand.

A note on FAQ markup: since 2023 Google shows FAQ rich results only for a small set of well-known, authoritative government and health websites. FAQ schema is still valid, still helps machines understand your question-and-answer content, and other services may use it, but most sites should not expect FAQ dropdowns in Google results any more.

How to use the Schema Markup Generator

Step 1: Choose the schema type

Open the Schema Markup Generator and choose the type that matches your page: FAQ, Article, Organization, Local Business or Product. Pick the type that describes the main content of the page. A product page gets Product markup, a blog post gets Article markup.

Step 2: Fill in the fields

Enter the details the form asks for. For a local business, that means name, address, phone, opening hours and URL. For a product, it means name, description, image, price and currency. Only enter information that is visible and true on the page. Google requires that structured data matches what users can see.

Step 3: Copy the JSON-LD code

The generator writes valid JSON-LD as you type. Copy the complete script block.

Step 4: Add it to your page

Paste the block into the page's HTML, usually inside <head> or just before the closing </body> tag. In WordPress you can use a plugin that allows custom code in the head, or a dedicated schema plugin. Many website builders have a "custom code" or "header code" setting per page.

Step 5: Test it

Paste your page URL or code into Google's Rich Results Test. It shows which rich result types the page is eligible for and lists any errors or warnings. The Schema Markup Validator at validator.schema.org checks the code against the full Schema.org vocabulary.

Ad Kothay

Choosing the right type for each page

Page Best schema type Key properties
Home page Organization (or LocalBusiness) name, url, logo, sameAs
Shop or office location LocalBusiness address, telephone, openingHours, geo
Product page Product name, image, offers (price, currency, availability)
Blog post or news Article / BlogPosting headline, image, datePublished, author
Help or FAQ page FAQPage question and answer pairs
Any deep page BreadcrumbList the path from home to this page

You can combine several types on one page. A product page might have Product, BreadcrumbList and Organization markup together.

Local Business markup: a closer look

For shops, restaurants, clinics, agencies and service businesses, LocalBusiness markup is the most valuable type. Make sure you include:

  • Exact business name, written the same way everywhere online.
  • Full postal address, matching your Google Business Profile.
  • Telephone number in international format, such as +880 1XXX-XXXXXX.
  • Opening hours for each day.
  • Geo coordinates if you know them.
  • sameAs links to your Facebook page, Instagram and other official profiles.

Consistency matters. If your website, Google Business Profile and Facebook page all show slightly different addresses or names, search engines are less sure which details are correct.

A worked example: a neighbourhood bakery

Suppose you run a bakery and want Google to understand your website properly. Using the generator's Local Business type, you would enter the bakery's name, street address, area, city and postcode, its phone number in international format, the website address, a link to the logo, and the opening hours for each day of the week. You would also add the links to the bakery's Facebook and Instagram pages in the sameAs field.

The generator turns that into a single JSON-LD block. You paste it into the head of the home page and the contact page, run the Rich Results Test, and confirm there are no errors. From then on, when you change your opening hours for a holiday season, you update the website, the markup and your Google Business Profile together so they always agree.

This simple setup takes about ten minutes and gives search engines a clear, machine-readable summary of the business, which is exactly what local search relies on.

Product markup: avoid the common errors

Product rich results are popular and Google checks them carefully. The most common errors are:

  1. Missing price or currency. The offers section needs both. Use the ISO currency code, such as BDT or USD.
  2. Price does not match the page. If the page shows เงณ1,250 and the markup says 1200, Google may ignore it.
  3. Fake reviews. Only include ratings that come from real customers and are visible on the page. Marking up reviews you wrote yourself breaks Google's guidelines.
  4. Missing image. Use a full image URL that loads publicly.

Article markup for blogs

If you publish articles, Article or BlogPosting markup helps Google understand the headline, main image, author and publication date. Keep the headline under about 110 characters, use a large image (at least 1200 pixels wide is a good rule), and update the dateModified property when you meaningfully update the article.

Validating and maintaining your markup

Structured data is not a one-time job. Prices change, opening hours change, businesses move. Outdated markup is a mismatch between your code and your page, which can stop rich results appearing.

  • Check Google Search Console's Enhancements reports, which list errors across your whole site.
  • Re-test pages after major redesigns.
  • If you use a content management system, generate markup from the same data that fills the page, so they always match.

The JSON Formatter & Validator is handy for spotting syntax errors, such as a missing comma, if you edit JSON-LD by hand.

Common mistakes

  • Marking up content that is not on the page. Structured data must describe visible content.
  • Using the wrong type. A blog post about a product is an Article, not a Product page.
  • Broken JSON. One missing comma or bracket breaks the entire block. Always test.
  • Duplicate conflicting markup. A theme and a plugin both adding Organization markup with different names confuses things. Check the page source for multiple blocks.
  • Expecting instant results. Even valid markup does not guarantee rich results. Google decides when to show them.

Our schema markup tips and mistakes article has a checklist for each schema type.

Frequently asked questions

Does schema markup improve rankings?

Not directly. It helps search engines understand your page and makes it eligible for rich results, which can improve click-through rates.

Which format should I use: JSON-LD, Microdata or RDFa?

JSON-LD. Google recommends it, and it is the easiest to add and maintain because it sits in one block instead of being spread through your HTML.

Where do I put JSON-LD code?

Usually in the <head> of the page, though Google also reads it in the body.

Why are my rich results not showing?

Valid markup makes a page eligible, but Google chooses whether to show rich results based on many factors, including the search and site quality. Check the Rich Results Test and Search Console for errors first.

Is the Schema Markup Generator free?

Yes. It is free, requires no sign-up and runs in your browser.

Found this useful?Share it with a friend or colleague who needs it.

Keep reading

More links & seo articles
321 free tools, one placeSEO, text, images, code, money, units and design. Private, fast and almost all in your browser.
Ad Kothay