Home › Generators › Schema Markup Generator

Schema Markup Generator

This free schema markup generator builds valid JSON-LD structured data for your web pages — no coding needed. Pick a schema type, fill in the fields, and get clean, copy-ready code you can paste into your page. Search engines use this markup to understand what your content is about, which is how pages earn rich results like FAQ dropdowns, star ratings, and event details in search.

Your JSON-LD will appear here
Choose a type, fill in the fields, and press Generate Schema.

How it works

Schema markup is a small block of code, written in a shared vocabulary from schema.org, that tells search engines what a page actually contains. A human visitor reads your page and understands that a list of questions is an FAQ, that a price belongs to a product, or that a date is an event. A search engine cannot guess that on its own — schema markup spells it out in a format machines can read. This generator writes that code for you in JSON-LD, the format Google recommends, which sits inside a <script type="application/ld+json"> tag and never changes how the page looks.

Start by picking the schema type that matches your page. FAQPage is for a page that answers a list of questions, and it can earn expandable questions directly in search results. Article is for blog posts and news stories, with a headline, author, and publish date. LocalBusiness is for a shop, restaurant, or service with an address and phone number. Product is for a product page with a price and review rating, which can earn star ratings in results. Recipe is for cooking pages with times and ingredients. Event is for concerts, classes, and meetups with a date and location.

Fill in the fields that appear for your type. The fields marked as the main ones — the question and answer for an FAQ, the headline for an article, the name for a business — are the ones search engines need most, so fill those in first. Extra fields are optional but useful: a product rating, a recipe cook time, or an event location all make the result richer. Leave any field you do not have blank and it is simply left out of the code rather than filled with a guess.

Press Generate Schema and the JSON-LD appears in the output box, neatly formatted with two-space indentation. The validation line underneath checks the result straight away: it parses the JSON and reports whether it is valid. If it says valid, the code is ready to use. Copy it with the Copy button, or download it as a .json file, then paste the contents inside a <script type="application/ld+json"> block in your page's <head> section. After publishing, you can double-check the page with Google's Rich Results Test to confirm the markup is recognized.

A few honest notes. Schema markup does not guarantee a rich result — Google decides whether and when to show one, and it only shows them for pages that follow its content rules. What the markup does guarantee is that your page is eligible and easy to understand, which is the part you control. Also keep the markup truthful: the FAQ in your code must match the FAQ visible on the page, the price must match the price shown, and the rating must be a real rating. Markup that does not match the visible page can be ignored or penalized, so always generate it from the real content.

Worked example

A blogger writes a short FAQ on her site and wants the questions to appear in search results. She picks FAQPage and enters one question and answer.

Step 1: Choose FAQPage as the schema type.
Step 2: Enter the question What is schema markup? and the answer Schema markup is code that tells search engines what a page contains.
Step 3: Press Generate Schema.

The generator produces valid JSON-LD containing "@type": "FAQPage", with the question and answer nested inside a mainEntity array, and the validation line confirms the JSON parses cleanly. She copies the code, pastes it into her page, and the page is now eligible for an FAQ rich result.

FAQ

What is schema markup?

Schema markup is structured data, written in the schema.org vocabulary, that describes a page's content in a machine-readable format. Search engines use it to understand pages and to show rich results, such as FAQ dropdowns and star ratings, in search results.

What is JSON-LD?

JSON-LD is a way of writing structured data as a block of JSON inside a script tag. It is Google's recommended format for schema markup because it sits separately from the page content and is easy to add, read, and check.

Where do I paste the generated code?

Paste the JSON-LD inside a <script type="application/ld+json"> tag in the <head> section of your page, or just before the closing </body> tag. The code is invisible to visitors and only affects how search engines read the page.

Does schema markup guarantee rich results?

No. Schema markup makes a page eligible for rich results, but Google decides whether to show them based on the page's content, quality, and relevance. The markup is still worth adding because without it, rich results are not possible at all.