Home / Free Tools / Local Business Schema Generator

Free Local Business Schema Generator

Tell Google and AI exactly who you are.

Fill in your details and get ready-to-paste LocalBusiness schema (JSON-LD) for your website, with opening hours, service areas and social profiles. Free, no sign-up.

✓ 60+ business types✓ Live code preview✓ Error checks built in
Step 2

How to add the code to your website.

Add it once to your homepage (or every page). It does not change how your site looks.

WordPress

WordPress

  1. Install a free plugin such as "WPCode" or "Insert Headers and Footers".
  2. Open its header section.
  3. Paste the code (with the script tags) and save.
Wix

Wix

  1. Go to Settings, then Custom Code.
  2. Click Add Custom Code and paste the code.
  3. Choose "Head" and apply it to your homepage.
Shopify

Shopify

  1. Go to Online Store, then Themes.
  2. Edit code and open theme.liquid.
  3. Paste the code just before </head> and save.
Squarespace

Squarespace

  1. Go to Settings, then Advanced.
  2. Open Code Injection.
  3. Paste the code in the Header box and save.

After adding it, run your page through the Rich Results Test, or check your whole site with our free local SEO checker.

Guide

What is LocalBusiness schema and why does it matter?

Schema markup is a small piece of code that describes your business in a format search engines read perfectly. LocalBusiness schema tells Google your exact business name, type, address, phone number, opening hours, service areas and social profiles. It does not change how your website looks to visitors, but it removes guesswork for machines.

Google explains that structured data helps it understand the content of a page, and that local business markup can describe details such as opening hours and departments (Google Search Central: Local business structured data). The format Google recommends is JSON-LD, which is exactly what this generator creates.

Why it matters for AI search too

AI assistants such as ChatGPT, Gemini and Google's AI results pull facts from websites. When your details are written in clean, structured code that matches your Google Business Profile, it is easier for these tools to get your business right: the right phone number, the right hours and the right service area. Consistent information across your website, your profile and directories builds trust with both search engines and customers.

What to include

  • The most specific business type. "Plumber" is better than "Local business". Use the general type only if nothing fits.
  • Name, address and phone exactly as on your Google Business Profile. Same spelling, same format.
  • Opening hours, including weekends and 24-hour service if you offer it.
  • Areas served if you travel to customers, such as plumbers, cleaners or roofers.
  • Social profiles (sameAs) so search engines connect your website with your other official pages.
  • Logo and website URL, so your brand is recognized.

Common schema mistakes

  • Details that do not match the page. Google's guidelines say structured data should describe what is actually on the page and be accurate. Do not add fake reviews or ratings.
  • Different phone numbers or addresses across your schema, website footer and Google profile.
  • Adding schema for a business you do not represent, or for locations you do not have.
  • Forgetting to update it when your hours, phone number or address change.

What each field means

  • @type: the kind of business, from Schema.org's list of LocalBusiness types.
  • address (PostalAddress): your street, city, state, postal code and two-letter country code.
  • geo: the latitude and longitude of your location, which helps match your site to your map pin.
  • openingHoursSpecification: the days and times you are open. Days with the same hours are grouped automatically.
  • areaServed: the cities you cover, useful for businesses that travel to customers.
  • sameAs: links to your official profiles on other sites, such as Facebook or Yelp.
  • hasMap: a link to your location on Google Maps.

You do not need to fill every field. Name, type, address or service area, and phone are the core. Everything else adds detail and trust.

Does schema guarantee better rankings?

No. Schema helps search engines understand your business, but it is one part of local SEO. Rankings on Google Maps still depend mostly on your Google Business Profile, reviews, relevance and distance. Read our guide on how to rank in the Google Maps 3-Pack for the full picture, or let our local SEO team handle it for you.

FAQ

Questions about the schema generator.

Is this local business schema generator free?

Yes. It is completely free, with no sign-up. Your details are saved only in your own browser so you can come back and edit them.

What is JSON-LD?

JSON-LD is a way of writing structured data as a small script in your page. It is the format Google recommends for structured data, and it does not change how your page looks.

Where should I add the schema code?

Add it to the head section of your homepage, or to every page of your site. Most website builders have a "header code" or "custom code" setting for this.

I don't have a storefront. Can I still use LocalBusiness schema?

Yes. Tick "I serve customers at their location" to hide your street address, and list the cities you serve under "Areas served".

Which business type should I choose?

Choose the most specific type that describes your business, such as Plumber, Dentist or Hair salon. If none fits, use "Local business (general)" or "Professional service".

How do I check that my schema works?

Paste your page URL or code into Google's Rich Results Test or the Schema.org validator. Both are free and show any errors.

WhatsApp