Local Business Schema Generator

Create LocalBusiness schema markup in JSON-LD for your business. Fill in the form, copy the code and paste it into your website.

How to use it

Generate your local business schema in 3 steps

1

Enter your business details

Name, URL, address, phone number, opening hours and social profiles

2

Copy the generated code

Paste the JSON-LD into the <head> of your website

3

Test it with Google

Check your markup with Google's Rich Results Test

πŸ“

Business details

πŸ“

Address

πŸ“±

Social profiles (optional)

Only add the social profiles you actually use.

πŸ•

Opening hours

Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday

Double-check your hours in the generated code.

βš™οΈ

Advanced options

πŸ’»

Generated JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "US"
  }
}
</script>

6 required fields left

What is local business schema?

Local business schema is a type of schema markup, built on the Schema.org LocalBusiness type, that describes a business with a physical location: its name, address, phone number, opening hours, website and social profiles. You add it to your site as a small block of JSON-LD code. Visitors don't see it, but search engines read it.

A local business schema generator writes that code for you. Fill in the form above and the tool builds valid JSON-LD in real time. Want to see a complete local business schema example? Click "Fill in an example": the code on the right is a full LocalBusiness markup for a fictional bakery in Austin, Texas.

Why local business schema matters for local SEO

Schema markup doesn't replace your Google Business Profile or good content, but it gives search engines your key business details in a format they don't have to guess. Here is what it does for you:

🎯
Clear, consistent business information

Your name, address and phone number are stated explicitly, which helps Google match your website with your Google Business Profile and your local listings.

✨
Eligible for richer results

Structured data makes it easier for Google to show details such as your hours, address or price range when your business appears in search results.

πŸ€–
Easier for AI assistants to understand

Voice assistants and AI-powered search can read structured data to answer local questions like "is it open now?" or "where is it located?".

πŸ“Š
Stronger business entity

Linking your website, social profiles and location in one place helps search engines connect the information about your business, including the knowledge panel.

How LocalBusiness JSON-LD schema markup works

JSON-LD (JavaScript Object Notation for Linked Data) is the format Google recommends for structured data. Unlike Microdata or RDFa, it goes in a <script> tag in the <head> of your page, without changing your visible HTML.

1
Enter your business details

Business name, URL, full street address, phone number and opening hours.

2
The JSON-LD is generated in real time

The tool builds Schema.org-compliant markup with the LocalBusiness type (or the more specific type you pick).

3
Add the code to your site

Copy the code and paste it into the <head> of your page. Works with WordPress, Shopify, Wix, Squarespace and any CMS.

4
Test it with Google

Run the Rich Results Test to check that Google detects your markup correctly.

Which LocalBusiness type should you use?

Schema.org offers many subtypes of LocalBusiness, each one suited to a specific industry. Using the most specific type that fits helps Google categorize your business:

Food & Drink

  • Restaurant
  • Bakery
  • CafeOrCoffeeShop
  • BarOrPub
  • FastFoodRestaurant

Retail

  • Store
  • ClothingStore
  • ElectronicsStore
  • GroceryStore
  • JewelryStore

Health & Beauty

  • Dentist
  • MedicalClinic
  • HairSalon
  • BeautySalon
  • Pharmacy

Services

  • AutoRepair
  • Electrician
  • Plumber
  • RealEstateAgent
  • AccountingService

The generator offers more than 50 types. Pick the one that best matches your business in the advanced options of the form.

Key properties in local business schema markup

For Google to make the most of your structured data, some properties matter more than others. Here are the priorities:

Required

name

The exact name of your business, as it appears on your Google Business Profile.

Required

address

Full postal address: street, city, state, ZIP code and country.

Required

telephone

Phone number in international format (+1 for the US and Canada).

Local business schema FAQ

Is local business schema required for local SEO?

No, it isn't required, but Google recommends structured data to help it understand your pages. It's a quick win that many local businesses still skip.

Where do I put the JSON-LD code on my site?

Place the JSON-LD in the <head> of your homepage or your contact page. On WordPress, you can use an SEO plugin like Yoast or Rank Math, or paste the code into your theme's header. On Shopify, Wix or Squarespace, use the custom code area in your site settings.

Can I have more than one JSON-LD block on a page?

Yes, a page can have several <script type="application/ld+json"> tags. That's the usual approach when you describe several kinds of entities (for example a LocalBusiness and an FAQ). Google reads them separately.

How do I test my schema markup?

Use Google's Rich Results Test (search.google.com/test/rich-results) to validate your markup. You can also check the "Enhancements" reports in Google Search Console to track how your structured data is detected over time.

Is this schema markup generator free?

Yes, this local business schema generator is 100% free with no usage limit. Generate as much JSON-LD as you need for all your locations. For multi-location brands, Localranker offers a platform to manage local SEO at scale.

Ready to grow your local visibility?

Franchises, multi-location brands and agencies: Localranker helps you manage local SEO at scale.

Book a demo