Skip to content

Schema Markup Generator: JSON-LD for SEO

Schema markup generator for JSON-LD: build Article, Product, LocalBusiness, and FAQPage structured data with the fields Google looks for, then copy it.

By Updated Runs in your browser

Schema Markup Generator guide

Fill in a short form and get valid JSON-LD structured data for articles, products, local businesses, or FAQ pages. Empty fields are left out, special characters are escaped, and the code is ready to paste and test.

What the generator outputs

It produces a single script tag of type application/ld+json containing a schema.org object. Every block starts with "@context": "https://schema.org" and an "@type" that names the entity. Fields you leave blank are dropped entirely, so you never ship empty strings that validators flag as errors. Nested objects like author, brand, and address disappear too if every field inside them is empty.

Any < character in your text is written as \u003c. That is valid JSON, it reads the same to search engines, and it stops a stray closing script tag inside a product description from breaking out of the block. It is a small detail that hand-written snippets often miss.

The four types and what Google uses

Article: headline, image, author, and dates. Google recommends including an author with a name and, ideally, a profile URL, plus datePublished and dateModified in ISO 8601 format. Enter dates with the date picker and they come out as 2026-09-01. Article markup helps Google display the right title, image, and date in Top Stories and Discover.

Product: name, image, and at least one of offers, review, or aggregateRating are needed for product snippets. The offer needs price and priceCurrency; availability uses full schema.org URLs like https://schema.org/InStock, which the generator writes for you. Ratings must reflect reviews visible on the page.

LocalBusiness: name, address, and phone matching what appears on your site and your Google Business Profile. Use the most specific subtype you can, such as Restaurant or Dentist. Opening hours use the compact format Mo-Fr 09:00-17:00; separate multiple ranges with commas.

FAQPage: one question and answer per line, separated by a vertical bar. Google stopped showing FAQ rich results in Search on May 7, 2026, after restricting them to government and health sites in 2023. The markup itself is still valid schema.org and can still be read by other search engines and AI tools, so it is harmless to keep, but do not add it expecting a Google snippet.

Worked example: a coffee shop

Choose LocalBusiness, set the type to CafeOrCoffeeShop, and fill in name, website, phone in international format (+1-512-555-0142), street, city, state, and ZIP. Hours of "Mo-Fr 07:00-18:00, Sa-Su 08:00-16:00" become an openingHours array with two entries. Price range $$ signals a moderate price level.

Paste the output into the site's header, publish, then run the URL through the Rich Results Test. You should see a LocalBusiness item detected with no errors. Warnings about optional fields like geo coordinates are fine to leave, but adding latitude and longitude helps map-based features.

Rules that get markup ignored

Marking up content that is not on the page. If your JSON-LD says 4.8 stars from 500 reviews and the page shows no reviews, Google treats it as spam and can issue a manual action that removes all rich results for the site.

Self-serving reviews. Since 2019, Google does not show review stars for a LocalBusiness or Organization marking up reviews of itself on its own site. Product and recipe pages with genuine reviews remain eligible.

Mismatched details. Prices that differ from the visible price, a phone number that differs from the page, or a product marked InStock when it is sold out all erode trust. Keep structured data generated from the same source as the page content when you can.

Common mistakes

Pasting JSON-LD with smart quotes from a word processor, which makes the whole block invalid. Always copy directly from the generator into your code editor or CMS field.

Using the wrong date format. September 1, 2026 is not valid; 2026-09-01 is. Adding a time and zone, such as 2026-09-01T08:00:00-05:00, is optional but more precise.

Duplicating the same entity with conflicting values, for example an SEO plugin and a theme both outputting Organization markup. Check the page source for multiple ld+json blocks and remove the extra one.

Expecting instant results. Google needs to recrawl the page, and rich results can take days or weeks to appear, if they appear at all.

How we calculate: sources

Frequently asked questions

What is schema markup?

Structured data using the schema.org vocabulary that tells search engines what a page is about in machine-readable form: this is a product, this is its price, this is the business address. It can make a page eligible for rich results like star ratings and prices.

Is JSON-LD better than Microdata?

Google supports JSON-LD, Microdata, and RDFa, but recommends JSON-LD because it sits in one script block, separate from your HTML, and is easier to maintain.

Does schema markup improve rankings?

Not directly. Google says structured data is not a ranking factor, but rich results can raise click-through rates, and clear entity data helps search engines understand your pages.

Do FAQ rich results still show in Google?

No. Google limited FAQ rich results to authoritative government and health sites in August 2023, then stopped showing them in Search entirely from May 7, 2026. FAQPage is still valid schema.org markup and other search engines and AI tools can still read it.

Where do I put the JSON-LD code?

Anywhere in the page's HTML, usually in the head. Most CMSs and site builders let you add it through a header code field or an SEO plugin. One page can hold several JSON-LD blocks.

Why is my Product markup not showing stars?

Rich results are never guaranteed. Ratings must come from real customer reviews shown on the page, and Google ignores self-serving review markup for LocalBusiness and Organization entities about themselves.

How do I test my schema markup?

Paste the page URL or code into Google's Rich Results Test to see which rich results it qualifies for, and into the Schema Markup Validator at validator.schema.org to check general schema.org syntax.

Is data uploaded?

Everything runs in your browser. Nothing you enter is uploaded to a server or stored by us.

Can I have multiple schema types on one page?

Yes. A product page can include Product, BreadcrumbList, and Organization markup. Use separate JSON-LD blocks or one block with an @graph array.

Does Bing use schema markup?

Yes. Bing supports schema.org structured data in JSON-LD, Microdata, and RDFa, and Bing Webmaster Tools includes a markup validator.