Schema Generator

Schema type—
Properties included—
Code length (characters)—

How Schema Generator is calculated: JSON-LD block = @context + @type + the fields you fill in, with empty fields left out

What is a schema generator?

A schema generator writes structured data for a web page: a small block of code that tells a search engine exactly what the page is. The block is written in JSON-LD, a format Google reads, and it uses the vocabulary from schema.org, a shared dictionary of types like Article, Product, Event, and FAQPage. A page with schema says, in a form a machine can trust, that it is an article with this title, this author, and this date — instead of leaving the search engine to guess from the visible text.

Search engines use that block to build rich results. A plain page appears in search as a blue link and a short snippet. A page with the right schema can appear with extra detail: star ratings under a product, dates under an event, or questions and answers under a guide. Those extras do not change where a page ranks, but they change how it looks, and a result that shows more useful detail gets more clicks than one that shows less.

This generator builds the block for you. Pick the schema type, fill in the name, description, address, and author, and press the button. The code appears in the box below, ready to copy. Paste it into the head of your page and the search engine will read it the next time it visits. You do not need to know JSON, and you do not need to memorise the schema.org vocabulary.

How a schema generator works

The output is a single script block. It opens with a line that names the format, then a JSON object with two lines every schema has: @context, which is always https://schema.org, and @type, which is the type you picked. After those come the properties you filled in — name, description, url, author, datePublished, and image — each on its own line. The block closes, and the whole thing sits in the head of the page, invisible to visitors.

Every field you leave blank is left out of the output. That matters, because an empty property is worse than a missing one: a blank author or a blank image tells the search engine something that is not true. This tool only writes what you actually typed. If you fill in five fields, the block has five properties plus the two lines it always carries. If you fill in all seven, it has seven.

The author is written as a nested object, not as plain text: a Person with a name. That is how schema.org expects it, and it is the kind of detail that is easy to get wrong by hand. The date is written in the standard year-month-day form, 2026-11-15. A JSON validator can check the finished block if you want a second opinion before you paste it in.

The schema type, explained

The type is the most important choice on the page, because it decides which properties make sense. Article is for a written piece with a headline, an author, and a publish date. BlogPosting is the same idea for a blog post. WebPage is the plain choice for a page that is not really an article — a landing page or a tool page, for example. Pick the type that matches the page, not the type that sounds impressive.

Product and Event are for things a search engine can show with extras: a product can carry a price and a rating, and an event can carry a date and a place. Organization is for a company or a site itself, with a name and a web address. FAQPage is for a page built around questions and answers, and HowTo is for a page that teaches a task step by step. Each of these has its own dedicated generator on this site, which fills in the extra fields that type needs.

The common error is picking Article for everything. An article type on a product page is not just wrong — it is invisible, because the search engine cannot show product extras from an article block. If the page sells something, use the product type. If it answers questions, use the FAQ type. The type should describe what the page is, in the plainest words you can manage.

A worked example: schema for an article page

Take the defaults on this page. The type is Article, the name is Example Article Title, the description is a single sentence, the address is https://example.com/page, the author is Example Author, the date is 2026-11-15, and the image is https://example.com/image.jpg. Press Generate Schema and the block has 8 properties in total, including the two lines every schema carries, and the code is 414 characters long. The type line reads "@type": "Article", and the author appears as a Person object with the name inside it.

Now change only the type to Event, the name to Example Conference, the description to A one-day conference about web design, and the address to https://example.com/conference, and clear the author and image. The block shrinks to 6 properties and 271 characters, because the two cleared fields are left out instead of being written as blanks. The type line now reads "@type": "Event", and nothing else in the structure changes.

That shrinking is the behaviour to trust. A generator that wrote empty strings would hand the search engine a page with an author of nothing and an image of nothing, and the search engine would treat that as bad data. This one writes only what you gave it. Paste the block into the head of the page, save, and check it with a sitemap generator workflow: submit the page, let the search engine find it, and watch for the rich result to appear.

Why schema matters for every site

Schema is the cheapest search improvement a site owner can make after the title and description. It takes a minute per page, it costs nothing, and it changes what people see before they ever visit. A result with a date, a rating, or a set of questions under it stands out on a results page full of plain blue links, and people click the result that answers their question before they open it.

It also matters for control. Without schema, a search engine guesses what a page is from the visible text, and the guess is often a menu label, a sidebar, or the first sentence of a cookie notice. With schema, the page states its own facts — its title, its author, its date — in a form the search engine does not have to guess at. The facts come from you, not from an algorithm's best guess.

Schema also feeds the tools people actually use. Voice assistants read schema to answer spoken questions. Shopping and event features in search read schema to build their cards. A page with no schema is invisible to those features, even if its content is perfect. A meta tag generator writes the tags that control the title and preview; this tool writes the block that controls the facts underneath.

Schema generator vs writing JSON-LD by hand

Writing JSON-LD by hand is not hard, and many developers do it. The risk is not difficulty but small errors: a missing comma, an unclosed brace, a property name spelled wrong, or a date in the wrong format. Any of those breaks the whole block, and the error is invisible until you test the page — a search engine simply ignores broken schema and shows the plain result.

A generator removes those errors. It builds the JSON from your fields, so the commas and braces are always right. It writes the author as a Person object and the date in the right format, so you never have to remember the nesting. It leaves empty fields out, so a half-finished form still produces a valid block instead of one full of blank strings.

Hand-writing still has a place: a developer who manages a site with a template writes the schema once in the template and fills it from a database, which is faster than pasting per page. But for a single page, a small site, or a quick check of what the block should look like, the generator is faster and safer. The same JSON can be checked in a SERP preview tool to see how the result might look in search.

Common mistakes with schema

The most common mistake is copying schema from another page and changing only the title. The old author, the old date, and the old address stay in the block, and the search engine reads them as facts about the new page. Every page deserves its own block, built from its own facts. A generator makes that cheap — fill in the form, press the button, paste the new block.

The second mistake is marking up content visitors cannot see. Schema must describe what is actually on the page. A rating of 4.8 stars in the schema with no reviews on the page is false data, and search engines treat false data harshly — they can drop the rich result, or drop the page's extras entirely. Only mark up what a reader can find on the page itself.

The third mistake is using the wrong type, usually Article for everything. A product page with article schema cannot show a price, and an event page with article schema cannot show a date. Pick the type that matches the page. And the fourth mistake is forgetting to test: paste the block, save the page, and run it through the search engine's rich results test before you move on. A block that is never tested is a block that might be broken.

How to use this schema generator

First, pick the schema type from the dropdown — Article is the default, and it fits a written guide or news piece. Then type the name or title, a one or two sentence description, and the full page address starting with https://. Add the author if there is one, the publish date, and an image address if the page has a main image.

Press Generate Schema. The block appears in the box below, and the results box shows the type, how many properties were included, and how long the code is. Check that the count looks right: if you filled in seven fields, you should see more properties than if you filled in three. Copy the whole block from the box.

Finally, paste the block into the head section of your page, near the top, before the closing head tag. Save the page and test it with the search engine's rich results test, which reads the block and reports any errors. If it reports none, the schema is live, and the rich result should appear the next time the search engine shows the page. If you also need the title and description tags, a meta tag generator writes those in the same style.

Frequently Asked Questions

Schema markup is a block of code, usually JSON-LD, that describes a page in a form a search engine can read. It uses the vocabulary from schema.org, with types like Article, Product, Event, and FAQPage. The block sits in the head of the page and states facts — title, author, date, price — that the search engine would otherwise have to guess from the visible text.

No, not directly. Schema does not change where a page ranks. It changes how the page looks in search results, by letting the search engine show extra detail like ratings, dates, or questions and answers. A richer-looking result earns more clicks from the same ranking, and more clicks are worth having. Rankings still come from content, links, and the page itself.

Paste it into the head section of your page's HTML, near the top and before the closing head tag. Schema placed in the body is often ignored. If your site uses a template or a content system, paste it into the head part of the template for that page, or into the SEO or custom code field the system provides for that page.

Nothing bad. This generator leaves blank fields out of the block entirely, so an empty author or image is simply not written. That is the correct behaviour: an empty string in schema is false data, while a missing property is just a fact you did not state. Fill in what you know and leave the rest blank.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.