Skip to content
FreeToolsKit.app

Marketing & SEO guide

How to Add LocalBusiness Schema Markup and Check It

8 min read · Updated 20 November 2026 · Uses Schema Markup & JSON-LD Generator

Quick answer

LocalBusiness markup is a block of JSON-LD (structured data written as JSON) that repeats facts your page already shows: the business name, address, phone number, website, opening hours and price range. Google requires only two properties, name and address. It lists the others as recommended (Google Search Central: Local business structured data). Add a recommended property only when the page shows that fact, and don't add star ratings or reviews about your own business.

To build and check the block in FreeToolsKit's Schema Markup & JSON-LD Generator:

  1. Choose LocalBusiness, pick the most specific Business type, and fill in the name, website, phone and address exactly as your page shows them.
  2. Choose Copy JSON-LD. The generator doesn't write opening hours or a price range, so add those by hand if your page shows them.
  3. Paste the finished JSON into Validate existing JSON-LD to check the syntax.

Then compare every value with the page yourself before you test it in Google's tools. A clean result in any checker means the code is well formed. It doesn't mean the markup is true, and Google "does not guarantee that your structured data will show up in search results" (Google Search Central: General structured data guidelines).

The example bakery

The test used a fictional bakery. Its contact page shows these facts, and the markup may only repeat them:

  • Name: Fernhaven Bakehouse, a bakery.
  • Address: 14 Quayside Row, Fernhaven, FH1 2AB, United Kingdom.
  • Phone: +44 20 7946 0321.
  • Website: https://www.example.com/.
  • Opening hours: closed on Monday; Tuesday to Thursday 07:30 to 16:00; Friday and Saturday 07:30 to 00:30, past midnight; Sunday 08:00 to 14:00.
  • Prices: "Most items £3 to £12".
  • Reviews: none. The bakery doesn't collect reviews on its own site.
Schema Markup & JSON-LD GeneratorFree to use · No account required · Runs in your browserOpen Schema Markup & JSON-LD Generator

Generate the core markup

  1. On the Generate JSON-LD tab, under 1. Choose a schema type, select LocalBusiness.
  2. In Business type, choose the closest match. Google asks you to "use the most specific LocalBusiness sub-type possible" (Google Search Central: Local business structured data). Bakery is a schema.org type under LocalBusiness and FoodEstablishment (Schema.org: Bakery), so the test used Bakery.
  3. Fill in Business name, Website, Telephone and, optionally, Description. The same Google page asks for a phone number with "the country code and area code" and a website address that is "a working link".
  4. Under Address, fill in Street address, City / locality, Postal code and Country code. The country code is two letters, here GB. Leave Region / state empty if the address doesn't use one.
  5. Under 3. Review and copy, read the status line and the Guidance list, then choose Copy JSON-LD.

This template also requires Website and Telephone, which Google lists as recommended rather than required.

With the bakery's details, the status line read "Ready: Bakery JSON-LD passes this tool's local checks. Use the external validators below for Google and Schema.org results." The guidance included two lines worth acting on:

  • Google-specific: "Use LocalBusiness only for a real location customers can visit or a real service area. The details must match what the page shows."
  • Note: "Opening hours and map coordinates aren't generated — add them yourself only if they're accurate."

Copy JSON-LD confirmed "JSON-LD copied." Download JSON saved the same text as schema-markup.json, 412 bytes. Python's json module then read the file:

  • @context: https://schema.org.
  • @type: Bakery.
  • Properties, in order: name, description, url, telephone and address, each exactly as typed.
  • address: a nested object with @type PostalAddress, holding streetAddress, addressLocality, postalCode and addressCountry. The empty region was left out rather than written as a blank value.
  • Not added: no opening hours, price range, map coordinates, image, rating or review.

Add opening hours and price range by hand

Google's documented form for hours is openingHoursSpecification: one or more OpeningHoursSpecification objects, each with dayOfWeek, opens and closes. Google's examples write times as 24-hour hh:mm and day names such as Monday. Two of its patterns matter for the bakery (Google Search Central: Local business structured data):

  • A day the business is closed: Google says "To show a business is closed all day, set both opens and closes properties to "00:00"".
  • Hours past midnight: use "a single OpeningHoursSpecification" with a closing time earlier than the opening time. Schema.org defines what that means: "If the value for the closes property is less than the value for the opens property then the hour range is assumed to span over the next day" (Schema.org: OpeningHoursSpecification).

The test added four objects, one for each line of hours on the page:

  • Monday: "opens": "00:00" and "closes": "00:00", for closed all day.
  • Tuesday, Wednesday and Thursday: a dayOfWeek list of the three days, with 07:30 to 16:00.
  • Friday and Saturday: 07:30 to 00:30. Because 00:30 is earlier than 07:30, this reads as closing at half past midnight the next morning.
  • Sunday: 08:00 to 14:00.

For prices, the test added "priceRange": "£3-£12", which matches the page's "Most items £3 to £12". Google accepts a numeric range or currency signs such as $$$. It also says the value "must be shorter than 100 characters" or it won't be shown.

Add both as new properties of the main object, after address. Put a comma between properties, and none after the last item in a list. The test checked the result with Python: the generated properties were unchanged, and the hours classified as one closed day, two same-day ranges and one range past midnight.

Check the syntax in the tool

Switch to the Validate existing JSON-LD tab and paste the JSON under Paste JSON-LD to check. Paste only the JSON, not the surrounding script tags. When the test pasted the full script tag, the tool said "Paste only the JSON inside the <script type="application/ld+json"> element, not the HTML tags. Nothing was changed."

The completed bakery markup gave four result lines: Valid JSON syntax, Recognized Schema.org structure and Passes this tool's supported local checks all read "yes". Requires external Google/Schema.org verification read "yes — use the links below". Types found read "Bakery", and no issues were listed.

What the checker caught, and what it let through

To see where a syntax check stops, the test pasted four deliberately broken copies of the same markup:

  • Address removed: an error, "Missing required property "address".", and Passes this tool's supported local checks changed to "no".
  • A trailing comma after the last hours object: "Not valid JSON-LD input", with "Line 48, column 3: Trailing commas aren't allowed. Remove the comma before this bracket." It's an easy slip when adding hours by hand.
  • A rating the bakery wrote about itself (aggregateRating of 4.9 from 127 reviews, none of them on the page): only a note, "Ratings and reviews must come from genuine, visible customer reviews; this tool can't verify them." The markup still passed the local checks.
  • Tuesday to Thursday hours typed the wrong way round (16:00 to 07:30): no message at all. Under the schema.org rule above, that's valid code for an overnight opening, from 4 pm until 7:30 the next morning.

The last two matter most. Neither is a syntax error, so no automated check can tell they're false. Only a comparison with the page and the real business can.

Why the rating is a policy problem, not a formatting one. Google recommends aggregateRating and review on LocalBusiness markup only "for sites that capture reviews about other local businesses". When a business controls the reviews about itself, Google says its pages with LocalBusiness markup "are ineligible for star review feature". That includes reviews shown through an embedded widget, such as Google Business reviews (Google Search Central: Review snippet structured data). Search Console's list of manual actions also includes "Review written by the site or person providing the service" (Search Console Help: Manual actions report).

Check it against the page, then with Google's tools

Google's rules are plain: structured data "must be a true representation of the page content", and you shouldn't "mark up content that is not visible to readers of the page" (Google Search Central: General structured data guidelines). Before you publish, check each value against the live page:

  1. Name, address and phone: the same spelling, digits and postcode as the page shows.
  2. Hours: one object for each line of hours on the page. Wherever closes is earlier than opens, check that the business really is open past midnight.
  3. Price range: present only if the page shows prices.
  4. Nothing extra: no ratings, reviews or other claims the page doesn't make. Add map coordinates only if you've measured them; Google asks for at least 5 decimal places (Google Search Central: Local business structured data).
  5. Kept up to date: when the hours or phone number change on the page, change the markup too.

Then run the two external checks yourself. FreeToolsKit doesn't send your markup anywhere, and this test didn't submit the bakery's markup to either service:

  • Google's Rich Results Test shows which Google rich result types it finds, with any errors or suggestions. It accepts a URL or pasted code and tests as a smartphone by default. It can't test a page that a robots.txt rule or a noindex directive blocks. It also ignores comments inside JSON-LD, but comments aren't valid there, so remove them before publishing (Search Console Help: Rich Results Test).
  • The Schema Markup Validator checks schema.org markup in general, "without Google-specific validation" (Google Search Central: Schema Markup Testing Tool). Schema.org's announcement says it doesn't "check your content against the information needs of specific services" (Schema.org Blog: Announcing Schema Markup Validator).

Neither tool can judge truthfulness. Google warns that a problem with spammy markup "may not be a syntax issue, and so the Rich Results Test won't be able to identify these issues". After publishing, Google suggests checking the page with the URL Inspection tool and asking for a recrawl. Finding the page "may take several days" (Google Search Central: Local business structured data).

If Google finds markup that breaks its guidelines, it can apply a manual action. That "means that a page loses eligibility for appearance as a rich result; it doesn't affect how the page ranks in Google web search" (Google Search Central: General structured data guidelines).

What not to add

  • Ratings or reviews of your own business, for the reasons above.
  • FAQPage markup to win a rich result. Google's FAQ rich result "will no longer appear in Google Search starting May 7, 2026" (Google Search Central: Documentation updates).
  • Facts from somewhere else. Your Google Business Profile is a separate listing that you manage in Google's own product (Google Business Profile Help: Get started). Keep the name, address and phone consistent between the profile and your page, but mark up only what the page itself shows.