Skip to content
bogl.ai

Free tool · No sign-up

Free LocalBusiness schema generator (JSON-LD)

Fill in your business details and this free tool builds a ready-to-paste JSON-LD block that describes your local business. JSON-LD is a small piece of code that sits in your page's HTML and states the facts about your business in a format search engines can read.

Everything stays in your browser. Nothing you type is sent anywhere.

Address
Opening hours (optional)
LocalBusiness JSON-LD
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Your business name",
  "url": "https://yourbusiness.co.uk/",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "GB"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "09:00",
      "closes": "17:30"
    }
  ]
}
</script>

Fill in your details and the code updates as you type.

Where to paste it

  • Wix: add it as custom code in the head of the page it describes, or in the page's structured data (SEO) settings.
  • Squarespace: add it with code injection in the header of that page.
  • WordPress: use your SEO plugin's structured data settings, or a plugin that adds code to the page head.
  • Shopify: add it to your theme's code, in the head, or use an app that manages structured data.
  • Anything else: look for a setting to add custom code to the page head (sometimes called header code).

If your site builder or SEO plugin already adds business structured data, change that instead of adding a second block.

What structured data is

Google describes structured data as “a standardized format for providing information about a page and classifying the page content”. Put simply, it labels the facts on your page so a machine doesn’t have to guess which bit is your name, your address or your phone number.

The labels come from Schema.org, a shared vocabulary for structured data. It defines a LocalBusiness as “a particular physical business or branch of an organization”. Its examples include a restaurant, a bank branch and a medical practice.

Google says that with Local Business structured data you can tell it about your opening hours, the different departments in your business, and more.

The properties that matter

Required by Google: your business name and address. For the address, Google says to include as many details as you can: “The more properties you provide, the higher quality the result is to users.”

Recommended by Google: telephone, url, geo (your map position), openingHoursSpecification, priceRange, menu, department and servesCuisine.

A few rules from Google’s documentation are worth knowing:

  • Business type. Use the most specific type you can, such as Restaurant, DaySpa or HealthClub, rather than plain LocalBusiness. If more than one type fits, list them as an array (a list in square brackets). The additionalType property isn’t supported.
  • Phone number. Include the country code and the area code.
  • Website address (url). This must be the full address of that specific location, and it must be a working link.
  • Price range. Keep it under 100 characters. If it’s 100 characters or longer, Google won’t show a price range.
  • Map position (geo). The latitude must have at least 5 decimal places.
  • Reviews and ratings. Google only recommends the review and aggregateRating properties for sites that collect reviews about other local businesses.

What Google says

  • No promise of extras in search results. You must include the required properties for your page to be eligible for a rich result (an enhanced search listing). But Google states that it “does not guarantee that features that consume structured data will show up in search results.”
  • Follow the rules. If a site breaks Google’s structured data guidelines, Google may issue a manual action against it.
  • Test your code. Google suggests checking your code with its Rich Results Test and fixing any critical errors.
  • Let Google see the page. The page must not be blocked by robots.txt, a noindex tag or a login.
  • Where to put it. You can add LocalBusiness structured data to any page. It makes most sense on a page about your business.

Check the rest of your site

This tool covers your LocalBusiness code. Structured data is only one part of how Google and AI tools read your site.

Our free check gives your homepage a score out of 100 and its top three issues in about 10 seconds, with no sign-up. One of the things it looks at is whether your structured data states your business name, address and phone number. Others include robots.txt rules, HTTPS, noindex, and your page title, description and headings.

If you want the whole picture, the full report costs £39, one-off. It covers every check on up to 15 pages and lists every issue in order of importance. It also gives ready-made fixes for the other issues it finds, such as robots.txt lines, an llms.txt draft, and page titles and descriptions.

Run the free website check

Questions

What does Google require in LocalBusiness structured data?

Google's required properties are the business name and its address. For the address, Google says to include as many details as you can. Telephone, url, geo and opening hours are recommended.

Will adding this code get me a rich result in Google?

There's no promise. Including the required properties makes your page eligible for a rich result, but Google says it does not guarantee that features using structured data will show up in search results.

Which page should I paste the code on?

Google says you can add LocalBusiness structured data to any page. It makes most sense on a page about your business.

How do I check the code works?

Google suggests testing your code with its Rich Results Test and fixing any critical errors. Also make sure the page isn't blocked by robots.txt, a noindex tag or a login.

Should I add star ratings for my own business?

Google only recommends the review and aggregateRating properties for sites that collect reviews about other local businesses.

How should I write my phone number?

Google says to include the country code and the area code in the phone number.

Updated

Free check

Now check the whole picture

The free check looks at the main things that affect whether AI tools can find and read your website: crawlers, bot protection, readable text, business details, titles and more. You get a score out of 100 and your top 3 issues in about 10 seconds.

Want the fixes ready to paste? The £39 full report checks up to 15 pages and gives you every fix, filled in for your site. See a sample report.