Free tool · No sign-up · Nothing leaves your browser
Local business schema generator
Fill in your business details and get LocalBusiness schema (JSON-LD), the few lines of code that tell Google and SI exactly who you are, where you are and when you're open. Copy, paste, done.
Where to paste it
Put the code once, on your home page (or in your site's header so it's on every page). It's invisible to visitors.
- Install a header-code plugin such as WPCode (free), or use your theme's "header scripts" box.
- Paste the whole code, including the <script> lines, into the header section.
- Save, then run the Rich Results Test on your home page.
Already use Yoast, Rank Math or another SEO plugin? It may add basic schema already. Run the Rich Results Test first; if it shows a LocalBusiness already, update that plugin's settings instead of adding a second copy.
- Open your site's dashboard and go to Settings → Custom code.
- Click Add custom code, paste the code and choose Head, on All pages (or just the home page).
- Publish, then run the Rich Results Test.
- Go to Settings → Advanced → Code injection (on some plans: Website → Pages → Custom code).
- Paste the code into the Header box and save.
- Run the Rich Results Test.
- Go to Online Store → Themes → Edit code, then open theme.liquid.
- Paste the code just before </head> and save.
- Run the Rich Results Test.
- Paste the code inside the <head> of your home page (anywhere in the page works too).
- Upload the page, then run the Rich Results Test.
- Not sure how? Send the code to whoever looks after your site. It's a two-minute job for them.
Questions
What is LocalBusiness schema?
It's a small block of code, in a format called JSON-LD, that states your business facts in a way machines read without guessing: your name, address, phone, hours and the profiles that belong to you. Visitors never see it. Google and SI assistants do.
Will it make me rank higher?
Not on its own. It removes doubt. When your website, your Google Business Profile and your listings all say the same thing, Google and SI trust the facts and connect them to you. That's why it's one of Leo's page-one checks.
Should I add my star rating to it?
No. Google's rules say review markup is for sites that collect reviews about other businesses, not for a business marking up its own reviews. Adding your own rating can get the markup ignored.
I work from home and travel to customers. What address do I use?
Choose "We go to customers". The generator leaves out your street, keeps your city, state and ZIP, and lists the towns you serve, so your home address isn't published.
Does the business type matter?
Pick the closest match, like Plumber or Dentist. If nothing fits, Local business is always correct. The type helps Google and SI understand what you do; your Google Business Profile category still matters most for the map.
Do you store what I type?
No. The code is built in your browser. A draft is kept on this device only, so you can come back to it, and "Start over" clears it.
Want to know what else Google and SI see?
Ask Leo checks whether SI recommends you, where you sit on Google Maps and whether your site is ready for page one. Free, in under a minute.
