What is LocalBusiness schema?
Schema (also called structured data) is a short block of code on your website that states your business details in a format search engines read easily: your name, type of business, address, phone, opening hours and the profiles that belong to you. The vocabulary comes from Schema.org, which Google, Bing and others use. The code looks like this:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "HairSalon",
"name": "Bella Hair Studio",
"telephone": "+1 555-123-4567",
"address": { "@type": "PostalAddress", "addressLocality": "Springfield" }
}
</script>
Visitors don't see it. It sits in your page's code and helps search engines connect your website to your business.
How to fill it in well
- Match your Google Business Profile. Use the same business name, address, phone and hours, written the same way. Mixed details make it harder for search engines to be sure they belong together.
- Match your website, too. Google's guidelines ask that structured data describe what visitors can see on the page, so show the same address, phone and hours on the page where you paste the code.
- Pick the most specific type that is true (Nail salon rather than Local business). If none fits, “Local business (any kind)” is fine.
- Phone with country code: like +1 555-123-4567.
- Keep it current. When your hours change, make the code again and replace the old one. Holiday hours aren't covered by this tool; update your Google Business Profile for those.
Where to paste the code
Put it on your home page (or the page that best describes your business, often Contact). Inside the page's <head> is the usual place; Google also reads it in the body. Use one block per business: if your site already has a LocalBusiness block, replace it rather than adding a second one.
Wix
- In your site's dashboard, open Settings and look for Custom Code (under Advanced).
- Click + Add Custom Code, paste the code, give it a name, choose the home page (or all pages) and place it in the Head. Click Apply.
- Wix also has a Structured data markup box in each page's SEO settings (Advanced SEO), which may already hold markup Wix added for you. Check there first so you don't end up with two different versions.
- Wix says custom code needs a connected domain, and its menus change from time to time; if a name above has moved, search the Wix Help Center for “custom code”.
WordPress
- Easiest: install a plugin that adds code to your site's header (for example WPCode), open its header and footer settings, paste the code into the Header box and save.
- Or use your theme's own setting: many themes have a “Header code” or “Custom scripts” box in their options.
- SEO plugins such as Yoast SEO and Rank Math can add their own business or organization schema. View your page's source and search for
ld+json: if one already describes your business, update that one instead of adding a second. - Plugin and theme menus change from time to time; if a name above has moved, check the plugin's or theme's own help pages.
Squarespace
Use Code Injection (search the settings for it) and paste the code into the Header box. Code Injection is available on some Squarespace plans only; its help pages list which.
Shopify
Go to Online Store → Themes, open the ⋯ menu next to your theme and choose Edit code. Open theme.liquid and paste the code just above </head>. Save. Many themes already add some schema, so check your page source first. Shopify's menus change from time to time; if a name above has moved, search the Shopify Help Center for “edit theme code”.
Plain HTML
Paste the code anywhere between <head> and </head> of the page, then upload the page.
Then test it
Open the Google Rich Results Test and enter your page address. It should find a LocalBusiness (or the type you chose) with no errors. Google reads the change the next time it visits your page, which can take days or weeks.
What schema can and can't do
- It helps search engines read your business details correctly and connect your website with your other profiles.
- It doesn't promise a special listing (a “rich result”), a higher ranking or a place in the Google Maps results. Google decides what to show.
- For Google Maps and the local results, your Google Business Profile is the main thing to keep complete and up to date. Schema on your website supports it; it doesn't replace it.
What this generator does, and its limits
- Runs in your browser. Nothing you type is sent anywhere, and it never sends your code to Google or Schema.org; the test links just open their pages.
- Makes one LocalBusiness block with
openingHoursSpecificationfor your weekly hours. Empty fields are left out. Days with the same hours are grouped together. - Checks for common mistakes (missing name, address or phone, unusual phone numbers, addresses that don't start with https://, closing times before opening times). It doesn't visit your links to check that they work.
- Doesn't make holiday hours, reviews, ratings, menus with prices, or several locations in one block. For several locations, make one block per location, ideally on each location's own page.
- Also free: the Broken Link Checker tests every link on your pages.
- Also free: the Sitemap Generator makes an XML sitemap of your pages and checks the one you have.
- Also free: the Google Maps Embed Generator makes the code to show your business on a Google map on your website.
- Also free: the WhatsApp Link Generator makes WhatsApp, click-to-call and text links, website buttons and a QR code.
- Also free: the Google Review Link Generator turns your Google review link into a QR code, a printable sign and ready-to-send messages.
- Also free: the Website Down Checker checks from our server whether a website answers right now, and why not.
- Also free: the Redirect Checker shows every redirect a web address goes through, step by step.
- Also free: the SSL Checker checks that your site opens securely on https and shows its certificate details.
- Also free: the Robots.txt Checker reads your robots.txt and shows whether it blocks Google, AI crawlers or your sitemap.
- Also free: the Robots.txt Generator makes a robots.txt file for your website and checks it as you type.
- Also free: the Website Accessibility Checker scans one page for common accessibility problems, like images without alt text and form fields without labels.
- Also free: the Meta Tag Checker shows the title, description and other tags Google reads on a page, with a search preview.
- Also free: the Open Graph Checker shows how a page will look when shared on Facebook, LinkedIn and X, and checks its og:image.
- Also free: the UTM Builder adds campaign tags to your links so Google Analytics shows which post, email or flyer brought each visitor, with a QR code.
- Also free: the Favicon Generator makes favicon.ico, phone icons and the HTML code from letters, an emoji or your logo.
- Also free: the Business Hours Sign Maker makes a printable business hours or holiday hours sign for your door, plus a square image for social posts.
Questions
Is the Local Business Schema Generator free?
Yes. There is no signup, no email and no card. It is made by FlatRateChat, a website chatbot company, and it doesn't change anything on your site.
Do I need schema if I have a Google Business Profile?
The profile matters most for Google Maps. Schema is a small extra that helps search engines match your website to that business. It takes a few minutes, so it is worth doing once.
Which business type should I choose?
The most specific one that is true. A barber can use Hair salon; a nail bar, Nail salon. If nothing fits, choose “Local business (any kind)”: it is always a safe choice.
How do I show that I'm closed on some days?
Tick Closed (or leave the day empty). Closed days are left out of the opening hours, so the code lists only the days and times you're open.
What if I'm open past midnight, or all day?
Enter the real closing time, like 18:00 to 02:00; the checks will note it so you can confirm it's right. For open all day, Google's guide suggests 00:00 to 23:59.
Will this get star ratings next to my business in Google?
No. This tool doesn't add review stars, and Google doesn't show review stars that a local business adds about itself. Your Google reviews show on your Google Business Profile.
I work at customers' homes and don't show my address. What do I enter?
Leave the street address empty and fill in your city, region and country, so the code matches what you show in public.