Home › Developer Tools › Local Business Schema Generator

Local Business Schema Generator

Fill in your business type, address, map coordinates, opening hours and social profiles to get ready-to-paste LocalBusiness JSON-LD. Days with the same hours are grouped automatically, split shifts, past-midnight and holiday hours are supported, and live checks flag anything Google needs.

Last updated:

Business

Pick the most specific type. It becomes the @type.

Address

Map location

Tip: right-click your pin in a map app, copy the coordinates and paste both numbers (for example 37.77493, -122.41942) into the latitude box.

Opening hours

Unticked days are treated as closed and left out. A closing time earlier than the opening time means the business is open past midnight. For 24 hours use 00:00 to 23:59.

Holiday / special hours

Profiles & extras

LocalBusiness JSON-LD

      
Advertisement
Advertisement

How to use the Local Business Schema Generator

  1. Choose the business type that best matches what you do, such as Dentist instead of the generic LocalBusiness.
  2. Enter the name, contact details and full address exactly as they appear on your website and Google Business Profile.
  3. Add map coordinates by pasting the latitude and longitude of your location pin.
  4. Set your opening hours with the day checkboxes or a preset, add split shifts and any holiday or special hours.
  5. Add profiles like Facebook, Instagram or Yelp, then copy the JSON-LD and paste it into the HTML of your location page.
  6. Test the published page with Google's Rich Results Test or the Schema Markup Validator.

What the generated LocalBusiness markup contains

The tool writes one JSON-LD object using the schema.org LocalBusiness vocabulary. Empty fields are left out, so the code only contains what you actually fill in.

PropertyGoogle statusWhat to enter
nameRequiredThe real business name, without keywords or slogans added.
address (PostalAddress)RequiredStreet, city, region, postal code and 2-letter country code.
geo (GeoCoordinates)RecommendedLatitude and longitude with at least 5 decimal places (about 1 m precision).
openingHoursSpecificationRecommendedDays, opening and closing times in 24-hour hh:mm format.
telephoneRecommendedMain phone with country code, e.g. +1-415-555-0142.
url, imageRecommendedThe location page URL and photos of the business.
priceRangeRecommended"$" to "$$$$" or a range like "$10-30", under 100 characters.
servesCuisine, menu, acceptsReservationsRecommended for restaurantsShown automatically when you pick a food and drink type.
sameAsOptionalOfficial profiles: Facebook, Instagram, Yelp, LinkedIn, YouTube and so on.
@idOptionalBuilt from your URL plus #localbusiness, a stable identifier other markup can refer to.

How opening hours are encoded

Each OpeningHoursSpecification holds one time slot and the days it applies to. Days that share exactly the same slot are merged, so a Monday to Friday 9 to 5 schedule becomes a single entry with five days instead of five separate entries. A day with a lunch break produces two slots.

SituationHow it is written
Regular hours"dayOfWeek": ["Monday", "Tuesday"], "opens": "09:00", "closes": "17:00"
Split shift (lunch break)Two entries for that day, e.g. 11:30 to 14:30 and 17:00 to 22:00
Open past midnight"opens": "18:00", "closes": "02:00" on the day the shift starts
Open 24 hours"opens": "00:00", "closes": "23:59"
Closed on a weekdayLeave the day out
Holiday closure"opens": "00:00", "closes": "00:00", "validFrom": "2026-12-25", "validThrough": "2026-12-25"
Seasonal or special hoursOpening and closing times plus a validFrom / validThrough date range

Tips for local business structured data

  • Use the most specific type. Plumber, Dentist or CafeOrCoffeeShop describe a business better than the generic LocalBusiness, and every subtype inherits all LocalBusiness properties.
  • One location per page. For multiple branches, give each branch its own page and its own markup with its own address, phone, coordinates and hours.
  • Keep it identical everywhere. The name, address and phone (often called NAP) should match your page text, your Google Business Profile and directory listings.
  • Mark up only what visitors can see. Hours, phone and address in the JSON-LD should also appear on the page itself.
  • Update holiday hours ahead of time and remove old special-hours entries after the date has passed.
  • Validate after publishing with the Rich Results Test or the Schema Markup Validator. Structured data helps search engines understand the page, but it does not guarantee any particular search feature.

Frequently asked questions

What is LocalBusiness schema?

LocalBusiness is a schema.org type for a physical business or branch that customers visit or that serves a local area. Adding it as JSON-LD tells search engines your name, address, phone, coordinates, opening hours and profiles in a machine-readable form, which helps them match your site with your business listing.

Which properties does Google require for local business markup?

Google's local business structured data guidelines require name and address. Recommended properties include telephone, url, geo (latitude and longitude with at least 5 decimal places), openingHoursSpecification, priceRange, image, and for restaurants servesCuisine, menu and acceptsReservations.

How do I mark up hours that go past midnight or 24 hours?

For hours past midnight, use a closing time that is earlier than the opening time in the same entry, for example opens 18:00 and closes 02:00. For a business open 24 hours, use opens 00:00 and closes 23:59. This tool writes both formats for you.

How do I add holiday hours?

Add a special hours entry with the date. The tool creates an OpeningHoursSpecification with validFrom and validThrough set to that date or range. A day marked closed is written as opens 00:00 and closes 00:00, which is how schema.org and Google represent a closed day.

Where do I put the JSON-LD code?

Paste the script tag into the HTML of the page that represents the business, usually the homepage for a single location or each location page for a chain. It can go in the head or the body. Each location should have its own markup with its own address, phone and hours.

Does the schema have to match my Google Business Profile?

It should. Use the same name, address, phone number and hours as on your website and your Google Business Profile. Consistent details across your site and listings make it easier for search engines to trust and connect them. Structured data does not replace or update your Business Profile.

Can I add star ratings to my local business schema?

Google does not show review stars for LocalBusiness or Organization markup when the reviews are about the business itself and collected on its own site (self-serving reviews), so this generator leaves aggregateRating out. Reviews on your Google Business Profile are shown from Google's own data.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Schema Markup Generator (JSON-LD)Create JSON-LD structured data for FAQ, Product, Article and more.Meta Tag GeneratorCreate SEO, Open Graph and X meta tags with live previews.Google Maps Embed GeneratorTurn an address or coordinates into responsive Google Maps iframe embed code, no API key.Sitemap GeneratorTurn a list of URLs into a valid XML sitemap file.Privacy Policy GeneratorCreate a privacy policy for your website or app with CCPA, CalOPPA, COPPA and AdSense sections.UTM Campaign URL BuilderAdd UTM tracking parameters to links and make a QR code.Robots.txt GeneratorBuild a robots.txt file with rules, sitemap lines and AI-bot blocking presets.SERP Snippet PreviewPreview your title tag and meta description with pixel-accurate truncation on desktop and mobile.Hreflang Tag GeneratorCreate hreflang tags, sitemap entries and Link headers for every language and region, validated.Canonical Tag GeneratorNormalize URLs and create rel=canonical tags and HTTP headers, for one page or a whole list.Content Security Policy GeneratorBuild a CSP header or meta tag with nonces, hashes, presets and report-only mode.Meta Tag AnalyzerPaste page HTML to audit title, description, canonical, robots, Open Graph and hreflang tags.Robots.txt TesterTest whether a URL is allowed or blocked by robots.txt for Googlebot and other crawlers.Sitemap URL ExtractorExtract every URL from a sitemap.xml or sitemap index, validate it and export to CSV or TXT.Cookie Consent Banner GeneratorDesign a cookie banner with accept, reject and settings buttons and copy the HTML/CSS/JS.FAQ Schema GeneratorTurn questions and answers into FAQPage JSON-LD markup with validation and a preview.Google Review Link GeneratorTurn a Google Place ID into a direct review link, QR code and printable review card.Keyword Suggestion ToolTurn one seed keyword into hundreds of Google and YouTube autocomplete keyword ideas.Structured Data ValidatorCheck JSON-LD, microdata and RDFa against schema.org and Google rich result requirements.Terms and Conditions GeneratorCreate terms of service for a website, store, SaaS or app, with payments and governing law.Breadcrumb Schema GeneratorBuild BreadcrumbList JSON-LD plus the matching HTML breadcrumb from names and URLs.Cookie Policy GeneratorCreate a cookie policy with a ready cookie table for Google Analytics, AdSense, Meta Pixel and more.Disclaimer GeneratorWrite a website disclaimer for affiliate, health, finance or blog sites, with short post notices.Keyword CombinerCombine up to 4 keyword lists into every combination in broad, phrase and exact match.Long Tail Keyword GeneratorTurn a seed keyword into long-tail keywords with best, how to, near me, year and for X modifiers.On-Page SEO CheckerPaste page HTML and a keyword to audit title, meta, headings, alt text and keyword use.App Privacy Policy GeneratorCreate a privacy policy for your iOS or Android app from its SDKs, permissions and data.URL Tracking RemoverStrip utm, fbclid, gclid and other tracking parameters from one link or hundreds at once.YouTube Keyword ToolFind YouTube search suggestions for a video topic with A-Z expansion and copy them as tags.
See all 28 SEO & Marketing Tools →