Skip to content
Write.info

Schema markup generator that writes JSON-LD for you

By the Write.info team ยท Updated

You have a page and you need structured data for it, but writing JSON-LD by hand means chasing missing commas. This schema markup generator turns a plain description of your page into a valid JSON-LD block for the type you pick. Paste the block into your HTML, then run it through Google's Rich Results Test before you publish.

Not every type still earns a rich result, though. FAQ and HowTo changed in 2023, and the guide below sorts out which types are worth the effort.

Schema markup generator

0 words

Free: 1 run a day, no sign-up. Text you paste is only used to write your result.

How to use the schema markup generator

Four steps, and most of your time goes into the second one.

  1. Choose a type in the Schema type menu. The options are Article, FAQPage, Product, LocalBusiness, HowTo, Organization and Event.
  2. Type or paste the page details into the text box. Plain sentences work. Include names, dates, prices, addresses, URLs, and for an FAQ page the questions with their answers.
  3. Press the button. The JSON-LD appears under it.
  4. Copy the block into a script tag with the type application/ld+json, then test it before you publish.

The tool only knows what you tell it. Leave out the price and a good output leaves it out too, or marks it as a gap to fill. Read the result before you paste it, because markup that states something your page doesn't show can get ignored.

What structured data does for a page

Structured data is code that states facts about a page in a shared vocabulary, almost always schema.org. A reader sees a price next to a product photo. A crawler sees a number sitting in a block of text. Markup tells it the number is a price, in US dollars, and the item is in stock.

Google uses that to understand the page and, for some types, to show rich results such as prices, ratings or event dates under the blue link. Its introduction to structured data frames the goal as understanding and eligibility. It does not promise a higher ranking.

So a structured data generator does one small job inside a bigger one. The page still needs good copy, a clear title and a clean URL. Draft the copy with the AI SEO writer first, then mark it up. The rest of our AI writing tools cover the other pieces.

Which schema types still earn rich results

Google publishes a search gallery of the markup types it turns into rich results. This table shows how the seven types in our schema generator stand against it.

TypeWhat Google does with itCurrent status
ProductShows price, availability and review ratings in results and shopping listingsSupported
EventLists dates, venue and ticket info in event resultsSupported
LocalBusinessFeeds address, hours and phone data to business results and panelsSupported
OrganizationHelps Google match your name, logo and contact details to one entitySupported
ArticleHelps Google read the headline, author, dates and imagesSupported, with little visible change for most sites
FAQPageExpandable questions under the resultLimited since August 2023 to well-known government and health sites
HowToStep lists under the resultPhased out in 2023

My take. Product, Event and LocalBusiness are where a schema markup generator pays off fastest, because those results change what a searcher sees. Article and Organization are cheap to add and worth having, but don't expect a visible reward.

FAQPage and HowTo are still valid schema.org types. If your page really has questions and steps, marking them up does no harm. Just don't add them to chase dropdowns that Google no longer shows for most sites.

Why JSON-LD is the format to use

Schema.org vocabulary can be written three ways. Microdata and RDFa weave attributes through your visible HTML tags. JSON-LD sits in a single script block, apart from your layout. Google says it recommends JSON-LD, and anyone who has edited a template full of itemprop attributes will see why.

JSON-LD is ordinary JSON with a few extra keywords. The @context key says which vocabulary you mean, and @type says what kind of thing you are describing. That is the whole difference between JSON and JSON-LD. Plain JSON is just keys and values with no shared meaning, so a search engine can't tell what they refer to.

A json-ld generator saves you the fiddly parts. Nesting is where hand-written markup breaks, since an address sits inside a business, and opening hours sit inside that. One stray bracket and the whole block fails to parse.

Schema markup generator example for a local business

Here is a short input and the kind of output you should expect. The business is made up.

Input, type LocalBusiness. Dry Creek Bakery, 214 Main Street, Boise, Idaho 83702. Open Tuesday through Saturday, 7am to 3pm. Phone 208-555-0142. Site is https://example.com.

Output.

{"@context":"https://schema.org","@type":"Bakery","name":"Dry Creek Bakery","url":"https://example.com","telephone":"+1-208-555-0142","address":{"@type":"PostalAddress","streetAddress":"214 Main Street","addressLocality":"Boise","addressRegion":"ID","postalCode":"83702","addressCountry":"US"},"openingHoursSpecification":[{"@type":"OpeningHoursSpecification","dayOfWeek":["Tuesday","Wednesday","Thursday","Friday","Saturday"],"opens":"07:00","closes":"15:00"}]}

Three things to notice. The type is Bakery, a more specific subtype of LocalBusiness, which beats the generic label when one fits. Times use the 24-hour format. And the phone number carries a country code. Those small fixes are exactly what a human forgets and a schema markup generator should handle.

FAQ schema generator: what to expect after 2023

An FAQ schema generator builds a FAQPage block from your questions and answers. Each pair becomes a Question with an acceptedAnswer. In the text box, list them as the question on one line and the answer under it.

The catch is the rich result. Since August 2023 Google shows FAQ dropdowns only for well-known government and health websites. If you run a blog or a shop, the markup will validate, and you will probably never see it rendered.

Is it worth adding anyway? Sometimes. Other search engines and AI tools may read the markup, and it costs a minute. The one hard rule is that every question and answer in the markup must also appear as visible text on the page.

Test your markup before and after publishing

Run every block through two checkers. They answer different questions.

A block can pass the second and fail the first. That usually means the markup is valid but lacks a property Google wants, like a price on a Product. Fix it, retest, then publish.

After the page is live, watch the enhancement reports in Search Console. They show errors across your whole site, which matters once you have a few hundred product pages. Any schema generator output is a starting point, so recheck it when prices, hours or dates change.

Mistakes that make markup useless

A few fields also depend on work done elsewhere. The url field should match your canonical address, and if that address is still messy, clean it first with the slug generator. The headline and description fields should agree with what the page already says, so reuse text from a snippet written with the meta description generator.

Article and Product markup both take an image property. Point it at a real, crawlable image, and write the alt text for that image with the alt text generator. Markup and alt text then describe the same picture in the same way.

One last tip for the schema generator itself. The more specific your description, the better the output. "A bakery in Boise" gives you thin markup. Street address, hours and phone number give you a block you can use.

Schema markup questions, answered

What does schema markup do?

Schema markup labels the facts on a page, such as a price, an author, an address or a set of questions, in a format search engines read directly. Google uses it to understand a page and to make it eligible for rich results like product prices and event listings. It does not guarantee a rich result, and Google does not describe it as a ranking factor.

What is the difference between JSON and JSON-LD?

JSON is a general data format built from keys and values. JSON-LD is JSON that follows linked-data rules, adding keywords such as @context and @type that tell a parser which vocabulary, usually schema.org, the keys come from. All JSON-LD is valid JSON, but plain JSON carries no shared meaning for search engines.

Is schema markup still relevant?

Yes, for the types Google still supports, such as Product, Event, LocalBusiness, Organization and Article. It helps search engines read your page and can earn rich results. FAQ and HowTo are the exceptions. Google limited FAQ rich results to government and health sites in August 2023 and phased out HowTo results the same year.

How do I generate schema markup?

Pick the schema type, describe the page with real details like names, dates, prices and addresses, and run the text through a schema generator to get JSON-LD. Paste the code into a script tag with the type application/ld+json. Then test the page with Google's Rich Results Test and the Schema Markup Validator before publishing.

How do I create a JSON Schema?

JSON Schema is a different thing from schema.org markup. It is a vocabulary for describing and validating the structure of JSON documents, documented at json-schema.org. You write a JSON file that lists types, required properties and allowed values. If your goal is search results, you want schema.org JSON-LD instead.

Does FAQ schema still work?

It still works as valid markup, but Google has shown FAQ rich results only for well-known government and health sites since August 2023. Other sites can keep or add FAQPage markup, and it does no harm. Just don't expect expandable dropdowns in Google results, and keep every question visible on the page.

Where do I put JSON-LD on a page?

Put it in a script tag with the type application/ld+json. Google reads that tag in either the head or the body of the page, so use whichever your template makes easier. Each page should carry its own block, with details that match the visible content on that exact URL.

Related tools and guides