LocalBusiness schema needs only two things to be valid for Google: a name and an address. The difference between a good generator and a bad one is everything after that: the right business sub-type, hours written the way Google reads them, phone numbers with a country code, and coordinates precise enough to mean something. I ran the same small plumbing business through five free generators to see which ones get that right.
Quick picks
- Cleanest all-rounder: Common Ninja's local business schema generator.
- Most options (departments, many schema types): TechnicalSEO.com's schema markup generator.
- Fastest for unusual hours (lunch breaks, 24h): Elfsight's generator.
- Basics only, no fuss: xmlschemata.org's schema markup generator.
- Holiday closures plus a checker for markup you already have: our local business schema generator (disclosure: we built it).
What Google actually asks for
Google's LocalBusiness documentation lists two required properties, name and address. It recommends geo coordinates with at least 5 decimal places, opening hours, a phone number that includes the country and area code, a working URL for the location, a price range under 100 characters, and a menu and cuisine for food places. It also says to use the most specific sub-type you can, like Plumber or Dentist, rather than plain LocalBusiness.
What to look for in a generator
- ✓Real sub-types, not just LocalBusiness.
- ✓Opening hours written as openingHoursSpecification, with a way to handle closed days, 24-hour days and holidays.
- ✓No empty properties left in the output.
- ✓Warnings when something is missing or wrong, not just a green tick when the required fields are filled.
- ✓Runs in the browser without an account.
How I tested
On November 23 and 24, 2026, I entered a made-up business (Example Plumbing Co. in Huntsville, Alabama) into each tool with two deliberate mistakes: a phone number without the +1 country code, and a latitude with only two decimal places (34.73). No accounts, at most two attempts per tool. I looked at the sub-types on offer, how hours are entered, what the output looked like, and whether either mistake was flagged. Search Engine Land's schema generator was on my list too, but it sat behind a bot-verification page both times, so I couldn't test it.
1. Common Ninja local business schema generator
Common Ninja is the one I'd send most people to first. It offers 37 business categories (Plumber among them), builds clean openingHoursSpecification from schedules, and has sections for map coordinates, service area and social profiles, plus undo and redo. The output had no empty properties. Each field has a helpful hint, including one that says to include the country code, but I didn't see it flag my phone number when I left the code off.
2. TechnicalSEO.com schema markup generator
TechnicalSEO.com (now under dentsu) is the veteran. It covers several schema types, lets you pick a more specific LocalBusiness sub-type, and has fields for menu, cuisine, social profiles, opening hours and even departments. The shortfall is the output while you work: it fills every property with an empty string until you type something, and with an hours row half-filled it showed "dayOfWeek": , which isn't valid JSON. Finish every field you start, then copy. It didn't warn about the phone or the short latitude.
3. Elfsight local business schema generator
Elfsight's hours box is the fastest way to type awkward schedules: one line per schedule, like Mo-Fr 09:00-13:00, 14:00-18:00 for a lunch break, Sa 24h, or Su closed. It also has areas served, social profiles, a link that saves your settings, and install guides for WordPress, Wix, Shopify and others. It offers 13 business types, so a plumber has to use the broader Home services type, and the copied code ends with an HTML comment crediting Elfsight. You can delete that.
4. xmlschemata.org schema markup generator
xmlschemata.org builds five schema types in your browser, LocalBusiness among them, with a live preview and a button that hands the markup to its validator. For LocalBusiness it's basic: no sub-types, so everything comes out as plain LocalBusiness; hours are a single free-text line (Mo-Fr 08:00-17:30) rather than openingHoursSpecification; and coordinates are written as text. It reported "Required fields complete" without flagging the phone or the two-decimal latitude.
5. Our local business schema generator (we built this one)
Our local business schema generator has about 60 sub-types grouped by trade, a weekly hours grid with Closed and Open 24 hours options, and dated holiday closures or special hours written with validFrom and validThrough, as in Google's examples. It leaves out empty fields and checks the result as you type. In this test it flagged both deliberate mistakes: the missing country code and the short latitude. You can also paste markup you already have, from a script tag or a @graph, and check it.
Where it falls short: it does LocalBusiness only, not the other schema types TechnicalSEO.com and xmlschemata.org cover. It has no departments, no CMS install guides like Elfsight's, and no link that saves your settings. Its checker covers Google's documented fields; it isn't a replacement for the Rich Results Test, which it links to.
Which one should you use?
- ✓One location, want it done right in five minutes: Common Ninja or ours.
- ✓You need holiday closures, or you want to check markup already on your site: ours.
- ✓A store with departments (pharmacy, garden centre) or you need other schema types too: TechnicalSEO.com.
- ✓Your hours have lunch breaks and you want a settings link and install steps for your website builder: Elfsight.
- ✓You only want the minimum and plan to validate it separately: xmlschemata.org.
Which fields are required for LocalBusiness schema?
Google lists name and address as required. Geo coordinates, opening hours, phone, URL and price range are recommended, plus menu and cuisine for food places.
How do I write holiday hours in schema?
Add an extra openingHoursSpecification with validFrom and validThrough dates. For a full-day closure, Google's example sets opens and closes to 00:00.
Should I use LocalBusiness or a sub-type?
Use the most specific sub-type that fits, such as Plumber, Dentist or Restaurant. Google's documentation asks for it, and it tells search engines exactly what you do.
Sources
- Local business (LocalBusiness) structured data — Google Search Central
- Free Local Business Schema Generator (JSON-LD) — Common Ninja
- Schema Markup Generator (JSON-LD) — TechnicalSEO.com
- Local Business Schema Generator — Elfsight
- Schema Markup Generator: Free JSON-LD Builder — xmlschemata.org