Free tool · no signup

LocalBusiness and FAQ schema generator

Structured data is easy to get wrong by hand: one missing comma and the whole block is ignored. Fill in the form for a local business or a set of questions and answers, and copy JSON-LD that is ready to paste into your page.

Opening hours

Tick the days that share the same hours. Add another set for days that differ. Untick every day to leave hours out.

Your JSON-LD

Paste it into the HTML of the page it describes, in the head or the body.

Then test the page with Google's Rich Results Test at search.google.com/test/rich-results. It reads your live page or pasted code and reports errors and which rich results the markup is eligible for.

This is the lite version.

The schema generator inside SEO Sets also writes Article, HowTo, Breadcrumb and Organization markup. It comes with a free account, next to your Google Search Console data and your top 3 pages with the most search upside. No credit card.

Get the full schema generator: start free

Also free, no account: check your title and meta description

What this markup is for

JSON-LD is a block of structured data in a <script type="application/ld+json"> tag. It states facts about the page in a fixed vocabulary from schema.org, so a search engine or any other machine reader does not have to work them out from the layout: this is a dentist, here is the address, these are the opening hours, this is a question and this is its answer.

LocalBusiness

Use it on the page about one physical business location, usually the home page or the contact page. Google lists the name and the address as required properties, and recommends the phone number, website, opening hours and coordinates. Pick the most specific type that fits. The list in this tool is a short selection of schema.org types, and LocalBusiness is the safe choice when none matches. Write the details exactly as they appear on the page and on your Google Business Profile: markup that disagrees with what visitors see works against you.

FAQ

FAQPage markup describes a page with a list of questions, each with one answer written by the site. The questions and answers in the markup must be visible on the page, word for word. Be realistic about the result: since 2023 Google has shown FAQ rich results only for a limited set of well-known government and health sites, so most sites should not expect expandable questions under their listing. The markup is still a valid, machine-readable statement of what the page answers.

What structured data does not do

Valid markup makes a page eligible for a rich result. It does not guarantee one, and it is not a shortcut to a higher position. It also cannot fix a page that does not answer the question. Add it after the content is right, test it, and fix any error the test reports.

The generator runs in your browser. Nothing you type is sent to us, and the code is built only from the fields you fill in: empty fields are left out.

Frequently asked questions

Where do I put the JSON-LD code?

Paste the whole script tag into the HTML of the page it describes. It can go in the head or the body. Most site builders and WordPress SEO plugins have a field for custom code or structured data.

Will FAQ schema give me FAQ rich results in Google?

For most sites, no. Since 2023 Google has shown FAQ rich results only for a limited set of well-known government and health sites. The markup remains valid structured data that describes the questions your page answers.

Does schema markup improve rankings?

Not by itself. Valid markup makes a page eligible for rich results and helps machines read the facts on it. It does not guarantee a rich result or a higher position.

How do I check that the code is valid?

Use Google's Rich Results Test at search.google.com/test/rich-results. Paste the code or enter the page address after publishing, and fix any error it reports. This tool only builds the code and does not call the test for you.

More free tools

SEO Sets Support

Press Enter to send · Shift+Enter for new line