Free business tool

Local Business Schema Generator

Build LocalBusiness JSON-LD: a small block of code that tells search engines your business name, address, hours and location. Free, no account, and honest about what schema can and cannot do.

Updated November 2026

Free, no account needed. Your business details stay in this browser. Only publish information you want public.

Regular opening hours (optional)

Check each day to include it, using local time. Unchecked days are omitted. Overnight closing times are supported. For 24-hour opening, use 00:00–23:59. Add split shifts or holiday exceptions separately after copying.

What is LocalBusiness schema?

Schema markup (also called structured data) is a set of labels that helps machines read a page. Schema.org defines LocalBusiness as "a particular physical business or branch of an organization". JSON-LD is the code format this generator writes. Instead of leaving a search engine to guess which line on your page is the phone number, the code says so directly.

Google says this data can tell it about your hours, departments and other details, and may help it show a knowledge panel when someone searches for your business. Google also says it does not guarantee that any feature will appear. This tool does not verify your Google Business Profile, change your Maps listing, or submit your site to Google. It writes a clean, accurate description of one location for you to publish.

Required and recommended properties

These come from Google's LocalBusiness structured data guide. The last column shows what this generator fills in for you.

PropertyGoogle statusWhat it holdsIn this tool
nameRequiredYour business nameYes
addressRequiredStreet, town, region, postal code, country. Google asks for as many parts as possible.Yes
urlRecommendedThe full, working URL of this location's pageYes
telephoneRecommendedMain phone, with country and area codeYes
geoRecommendedLatitude and longitude, at least 5 decimal placesYes
openingHoursSpecificationRecommendedOpening times per dayYes, one period per day
priceRangeRecommendedSuch as "$$" or "$10-15". Under 100 characters, or Google will not show it.Add by hand
menu, servesCuisineRecommended for food placesMenu link and type of foodAdd by hand
departmentRecommendedA part of the business with its own hours or phone, like an in-store pharmacyAdd by hand
sameAsNot listed by Google hereLinks to your official profiles elsewhere (a schema.org property)Yes
review, aggregateRatingOnly for sites that review other businessesReviews and star averagesLeft out on purpose

JSON-LD local business example

This is the kind of code the generator produces, filled with made-up details for a dental practice. Your copy will have one hours entry for each day you tick, and it comes out on a single line. That works the same. We spread it over lines here so it is easier to read. The @id line gives the business a fixed name tag, so other markup on your site can point to the same business.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Dentist",
  "@id": "https://www.example.com#localbusiness",
  "name": "Example Dental Care",
  "telephone": "+1 555 010 0199",
  "url": "https://www.example.com",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 40.74844,
    "longitude": -73.98566
  },
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "100 Example Street, Suite 2",
    "addressLocality": "New York",
    "addressRegion": "NY",
    "postalCode": "10001",
    "addressCountry": "US"
  },
  "sameAs": ["https://www.facebook.com/exampledentalcare"],
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "https://schema.org/Monday",
      "opens": "09:00",
      "closes": "17:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "https://schema.org/Saturday",
      "opens": "10:00",
      "closes": "14:00"
    }
  ]
}
</script>

The example uses Dentist, a more specific type than LocalBusiness. Every value is something a visitor could also read on the page: the name, the address in the footer, the phone number and the opening times. That matters, because Google warns against marking up information that is not visible to users.

Choose your business type and public address

Google says to use the most specific LocalBusiness type you can. Schema.org has dozens of sub-types under headings such as FoodEstablishment, HealthAndBeautyBusiness, HomeAndConstructionBusiness, LegalService, MedicalBusiness, ProfessionalService and Store. The form offers common ones such as Restaurant, Dentist, Hair Salon and Hotel. If none fits, Local Business is the safe general choice. Pick what the business really is, not a keyword you want to rank for.

Enter the public business name, the full website URL, street address, city and two-letter country code (such as US, GB or IN). Region and postal code are there for places that use them. Keep the street and the town in their own boxes so each part gets the right label. Write the phone with its country code, such as +1 for the US. Use the same name, address and phone that appear on your Google Business Profile and website. Do not invent missing details or publish a home address you normally keep private.

Opening hours: overnight, 24 hours, split shifts and holidays

Tick only the days you want to include and enter times in the location's local time. Unticked days are left out rather than guessed. If the closing time is earlier than the opening time, such as 18:00 to 03:00, that describes a late night that runs past midnight; Google says to write it as one entry like this. For open all day, use 00:00 to 23:59, which is also Google's guidance.

The form handles one opening period per day. For anything else, edit the copied code by hand:

  • Split shift (for example, closed for lunch): add two entries for the same day.
  • Closed all day: Google accepts opens 00:00 and closes 00:00. Leaving the day out also works.
  • Seasonal or holiday hours: add validFrom and validThrough dates in YYYY-MM-DD format. Without them, Google treats the hours as valid all year.

Add photos, price range and service areas by hand

To keep the form short, some useful properties are not in it. You can paste extra lines inside the copied block, before the final closing brace, with a comma after the line above them. This snippet shows a photo, a logo, a price range, the towns you serve, a split shift, a closed day and holiday hours:

"image": "https://www.example.com/photos/front-of-shop.jpg",
"logo": "https://www.example.com/logo.png",
"priceRange": "$$",
"areaServed": [
  { "@type": "City", "name": "Brooklyn" },
  { "@type": "City", "name": "Queens" }
],
"openingHoursSpecification": [
  { "@type": "OpeningHoursSpecification", "dayOfWeek": "Tuesday", "opens": "08:00", "closes": "12:00" },
  { "@type": "OpeningHoursSpecification", "dayOfWeek": "Tuesday", "opens": "13:00", "closes": "18:00" },
  { "@type": "OpeningHoursSpecification", "dayOfWeek": "Sunday", "opens": "00:00", "closes": "00:00" },
  { "@type": "OpeningHoursSpecification", "dayOfWeek": "Saturday", "opens": "09:00", "closes": "13:00",
    "validFrom": "2026-12-01", "validThrough": "2026-12-31" }
]

If you add these hours, replace the generated openingHoursSpecification rather than adding a second one. image and logo must be public image links that show your real business. Google's Organization guide asks for a logo of at least 112 by 112 pixels. areaServed is a schema.org property for the places you work in. It is useful for plumbers, cleaners and other trades that travel to customers. After any hand edit, test the code again, because one missing comma breaks the whole block.

Coordinates and official profiles

Latitude and longitude are optional, but enter both if you use one. Google asks for at least five decimal places. Latitude must be between −90 and 90 and longitude between −180 and 180. To get them, open Google Maps on a computer and right-click your building. The numbers appear at the top of the pop-up, and clicking them copies them (see Google's steps). Do not swap them or use the coordinates of a different branch.

The sameAs box takes official profile links, one per line, up to ten. Use your own Google Maps listing, Facebook page, Instagram or LinkedIn. Do not add search result pages, unrelated directories or another business's site. These links help connect your website to the same business elsewhere on the web.

Several locations, departments and service-area businesses

Several locations: Google says to mark up each location as its own LocalBusiness. Give every branch its own page with its own block: its address, phone, hours, coordinates and that page's URL. Schema.org's parentOrganization property can link a branch to the main company if you want to show the connection.

Departments: if one location has parts with different hours or phone numbers, such as a store with a pharmacy, Google suggests nesting each one under department as its own small business block, with its own name, hours and phone. Google's suggested name format is the store name plus the department, such as "gMart Pharmacy".

No public address: LocalBusiness needs an address. If you hide your address on Google, do not publish it here either. Use Organization markup instead, which has no required properties, and list the towns you cover with areaServed.

Why this tool leaves out reviews and star ratings

Many generators add an aggregateRating box so you can type in your star average. We do not, because for your own business it does not do what people hope. Google's review snippet guidelines say that if a business controls the reviews about itself, its pages using LocalBusiness or Organization markup are ineligible for review stars. That includes reviews placed "through an embedded third-party widget", and Google names Google Business reviews as an example.

Google's LocalBusiness guide lists review and aggregateRating only for sites that collect reviews about other businesses, such as a directory. Google explained the change in its announcement about self-serving reviews. Showing real reviews on your site is still fine as normal page content for visitors. Just never add a made-up rating, copy someone else's review count, or mark up a score customers did not give. Read why your own reviews do not produce Google review stars for the full picture.

Where to paste the code on WordPress, Wix, Shopify and others

Copy the whole block, including the opening and closing script tags. Google accepts JSON-LD in either the head or the body of the page. Put it on the page it describes: usually your home page, or each branch's location page. Google says you can add it to any page, but a page about the business makes the most sense.

  • WordPress: use a header and footer code plugin, or a Custom HTML block on the page. SEO plugins such as Yoast or Rank Math may already output business markup. Use either the plugin's setting or this code, not both.
  • Wix, Squarespace and Shopify: look for the custom code or header code setting, and limit it to the right page where the builder allows.
  • Plain HTML or a custom site: paste the block before the closing </head> tag.

Before you paste, check whether your theme or a plugin already publishes business details. Two blocks with different addresses or hours confuse search engines and are easy to forget about. Do not put private data, staff records or customer review text in the block. Anyone can read it by viewing the page source.

Test and check your schema

Open Google's Rich Results Test, choose the code option, and paste your block. Fix any errors, then read the warnings: they often point to recommended details you could add. The Schema Markup Validator from schema.org checks the code against the full vocabulary, including properties Google does not use.

After publishing, run the URL version of the Rich Results Test against the live page. This checks what Google can actually fetch, including anything your website builder changed. Write down where you installed the code, so a new phone number, new hours or a move does not leave an old block behind.

Common mistakes to avoid

  • A name, address or phone that differs from your Google Business Profile or the page itself.
  • Hours in the code that no longer match the hours shown on your site.
  • The same block, with the head office address, pasted on every branch page.
  • Coordinates with too few decimal places, or latitude and longitude swapped.
  • A self-written star rating or review count added to your own business markup.
  • Two or more business blocks from different plugins on the same page.

Schema works best alongside other machine-readable signals about your business. Our page on Google reviews and AI search explains how clear business details and real reviews help AI tools describe you correctly.

Frequently asked questions

Is there a free local business schema generator?

Yes, this one. Fill in your public details, copy the JSON-LD, and paste it into your page. No account is needed, and the details you type stay in your browser.

What is LocalBusiness schema?

It is a set of labels from schema.org that describes a physical business or branch: its name, address, phone, hours, map location and official profiles. Search engines read it to understand those facts without guessing.

What are the required properties for LocalBusiness?

Google lists two: name and address. It recommends url, telephone, geo, openingHoursSpecification and, where they fit, priceRange, menu, servesCuisine and department. This generator covers name, address, url, telephone, geo, hours and sameAs.

Do I need schema if I have a Google Business Profile?

It is not required. Your Profile lives on Google. Schema on your own site describes the same business in a format any search engine or AI tool can read. Keep both identical.

Will this give my business review stars in Google results?

No. Google's self-serving review rule makes a business's own reviews ineligible for review stars on its own LocalBusiness or Organization pages, including reviews shown through a third-party widget. This generator deliberately leaves out review and aggregateRating properties.

Does local business schema help my rankings?

Google does not promise that structured data changes rankings or that any search feature will appear. It helps Google understand your details and can make a page eligible for features such as a knowledge panel. Accurate content and a complete Google Business Profile still matter more.

How do I add split shifts or holiday hours?

Add a second OpeningHoursSpecification for the same day for a split shift. For a seasonal change, add validFrom and validThrough dates in YYYY-MM-DD format. The example on this page shows both. The generator handles one period per day, so add these by hand.

How do I mark a business open 24 hours or closed on a day?

Google's guidance is opens 00:00 and closes 23:59 for open all day, and opens 00:00 and closes 00:00 for closed all day. In this generator, use 00:00 to 23:59 for 24 hours and simply leave closed days unchecked.

Can I use it for several business locations?

Yes. Generate a separate block for each real location and place it on that location's own page, with its own address, hours, phone, coordinates and page URL. Do not give every branch the head office address.

What if I work from home or do not publish my address?

Google requires an address for LocalBusiness markup, so do not enter a private address or invent a storefront. Google's Organization markup has no required properties, so it can describe your business without an address. You can list the towns you cover with areaServed.

JSON-LD, microdata or RDFa: which should I use?

Google supports all three and says they are equally fine when valid, but it recommends JSON-LD where your site allows it. JSON-LD sits in one separate block, so it is easy to add, update and remove.

How do I check my local business schema?

Paste the code or your live URL into Google's Rich Results Test. The Schema Markup Validator at validator.schema.org checks general schema.org errors too. Passing a test does not guarantee any particular search appearance.

Show real reviews alongside clear business details

Show your real Google reviews on your website with a free VerifiedWidget widget. Paid plans also add business markup for search engines.

Related tools and guides