Free local business schema generator
Fill in your details and copy LocalBusiness JSON-LD for your home page. It runs in your browser, so nothing you type reaches us.
Only 28% of local business home pages have valid LocalBusiness markup
| Home page markup | Local business sites | LocusPilot sites |
|---|---|---|
| No JSON-LD at all | 28% | 3% |
| JSON-LD, but no LocalBusiness | 34% | 14% |
| LocalBusiness with errors | 10% | 4% |
| Valid LocalBusiness | 28% | 79% |
| Error found: No address | 3% | 3% |
| Error found: Missing or wrong @context | 3% | 0% |
Source: LocusPilot scan of the home pages of 500 local business sites listed in LocusPilot directories and 121 live sites built with LocusPilot, run through the same validator this generator uses. Only JSON-LD is read, not microdata or RDFa. Valid means a schema.org @context, a LocalBusiness type, a name, an address (with a city when the address is split into parts) and no broken phone, website, hours or social links: Google's two required properties plus a few checks of our own. Shares are of all sites checked. Last checked: November 2026.
How to use it
- Pick the closest business type, then fill in the name, website, phone, street and city. The country starts as US. If you're elsewhere, change it to your two-letter code, such as GB or CA.
- Set your opening hours (Monday to Friday, 08:00 to 17:00 is filled in to start), then add the towns you cover and your social profile links, one per line.
- Click Generate schema and copy the code into the head of your home page. Once it is live, run the page through Google's Rich Results Test.
Where to put it
WordPress
- Check first: run your home page through Google's Rich Results Test. If it already shows a LocalBusiness item, often from an SEO plugin, keep that one or switch it off, so the page does not carry two.
- Install the free WPCode plugin, add a new HTML snippet and paste the code in. Set the insert location to Site Wide Header.
- Under Smart Conditional Logic, turn on Enable Logic, choose Show, then Type of page and Homepage. Activate the snippet and test your home page.
Wix
- Wix adds its own Local Business markup to your home page from your Business Info. Switch it off first: in the editor, open Pages & Menu, click More Actions next to your home page, then SEO basics, the Advanced SEO tab and Structured data markup. Click More Actions next to Local business and choose Exclude from page.
- Custom code only works on a published site with a connected domain.
- In the dashboard, go to Settings, then Custom Code under Development & integrations, and click Add Custom Code.
- Paste the code. Under Add Code to Pages, pick Choose specific pages and select your home page, set Place Code in to Head, then click Apply and test the live page.
Squarespace
- Code injection needs the Core plan or above, or some legacy plans. Basic doesn't include it.
- In the Pages panel, hover over your home page, click the gear icon, open Advanced, paste the code into Page Header Code Injection and save.
- Test the live home page. Squarespace adds its own Local business markup, which you can't edit or remove, so the test may show two LocalBusiness items. Keep the name, address and phone the same in both.
Shopify
- In your Shopify admin, go to Online Store, then Themes, and duplicate your live theme as a backup.
- On the live theme, open the three-dot menu, choose Edit code and open theme.liquid in the layout folder.
- Paste the code just before the closing </head> tag, with {% if request.page_type == 'index' %} on the line above it and {% endif %} on the line below, so it loads on the home page only. Save.
Static sites
- Paste the code inside the <head> of your home page file, usually index.html.
- Deploy the change.
- Test the live URL in the Rich Results Test, or paste the code into its code tab before you deploy.
Common questions
More free tools
Free llms.txt checker and agent-ready site check
Type your website's address. We run 16 agent-ready checks, including llms.txt and AI crawler rules, and show the fix for each one that fails.
Local citation sites for US businesses
These are US sites where a local business can get listed, each marked free or paid from what the site's own pages say.
Free llms.txt generator
Type your site's address. We read your sitemap and pages, then write an llms.txt that links only to your own pages. Check it, then upload.