Local business schema generator
Fill in your business details and get schema.org structured data (JSON-LD) to paste into your website, so search engines and other programs read your name, address, hours and services without guessing. Free, and it runs in your browser: nothing you type is sent or stored.
Add your business name to start.
Paste it into the HTML of the page that shows your business details (the head or the body both work), then test it in Google's Rich Results Test and the Schema Markup Validator.
What is local business schema?
It's a short block of code in your page that lists the facts about your business (name, type, address, phone, opening hours, services, the areas you serve and your profiles elsewhere) in the shared vocabulary from schema.org. Visitors don't see it. Search engines and other programs read it so they don't have to guess those facts from your page layout. This tool writes it in JSON-LD, the format Google recommends where your site allows it.
Why it matters for search and AI assistants
- Google: its local business guide says you can use this markup to tell Google about your business hours and departments, and lists name and address as required properties. Google also says it doesn't guarantee that features using structured data will appear.
- AI assistants: they build answers from what they can read about you. A clear, machine-readable statement of your name, address, hours and services leaves less room for a wrong guess. No assistant has published how much weight it gives structured data, so we don't claim more than that.
- Consistency: use exactly the name, address and phone number your page shows and your other listings use. Google's structured data guidelines say the markup must be a true representation of the page content.
How to add it to your site
- Fill in the form. Leave anything you're unsure of empty; empty fields are left out of the code.
- Press Copy and paste the whole block, script tags included, into your home page or contact page. On WordPress, Squarespace, Wix or Shopify, look for "custom code", "header code" or "code injection" settings.
- Paste the code or your live page address into the Rich Results Test and the Schema Markup Validator, and fix anything they flag.
- Check that AI assistants and search engines can reach the page at all with our free AI crawler check.
Questions
Where do I paste the code?
Paste the whole block, including the script tags, into the HTML of the page that shows your business details, usually the home page or contact page. It can go in the head or the body. On a website builder, look for a setting called custom code, header code or code injection.
How do I check that it works?
Paste the code, or the address of the page once it's live, into Google's Rich Results Test to see what Google can read, and into the Schema Markup Validator to check it against schema.org. Fix anything either tool flags as an error.
Will this get my business a rich result or a knowledge panel?
No one can promise that. Google says it does not guarantee that features that use structured data will show up in search results. The code makes your details clear to machines; what Google shows is up to Google.
Does structured data help with ChatGPT and other AI assistants?
It states your name, address, hours and services in a form any program can read without guessing. AI assistants haven't published how much they rely on it, so treat it as a clear statement of your facts, not a ranking trick. Assistants also need to be allowed to read your site at all, which our free AI crawler check tests.
Which business type should I pick?
The most specific type that fits, such as Plumber rather than LocalBusiness. If none fits, LocalBusiness is correct. The list holds common schema.org types; schema.org lists many more on its LocalBusiness page.
How do I show a day when we're closed?
Choose Closed for that day. Following Google's guidance, the code then gives that day an opening and closing time of 00:00. Days left as Not set are left out of the code.
Is what I type stored anywhere?
No. The code is built in your browser by the script on this page. Nothing you type is sent to us or saved.
More free tools
- AI crawler check: can ChatGPT, Claude, Perplexity and other assistants read your site?
- llms.txt generator: write an llms.txt file for your site.
Who made this
OOO Works, which is building done-for-you services for small businesses worldwide, including OOO Visibility: it tracks whether AI assistants name a business for the questions its customers ask, and fixes what keeps it out. OOO Works is opening soon; nothing is on sale yet. About OOO Works.