Local business schema generator

Business type
@type: Plumber · See the plumber demo site
Business details
The page for this location.
With country code, e.g. +1 555 010 0199.
One or two sentences, the same as on your page.
Address (required)
Right-click your pin in Google Maps to copy the coordinates. Google asks for at least 5 decimal places.
Towns, counties or ZIP codes you travel to, one per line.
Opening hours
More details
Currency signs like "$$" or a range like "$100-300".
Your Facebook, Instagram, Yelp or LinkedIn page URLs, one per line.

Your JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber"
}
</script>

2 errors, 5 suggestions

  • Error name is required: enter the business name.
  • Error address is required: enter the street address and city.
  • Suggestion telephone is recommended: add the main customer phone number.
  • Suggestion url is recommended: add the full address of this location's page.
  • Suggestion geo is recommended: add latitude and longitude from your map pin.
  • Suggestion openingHoursSpecification is recommended: turn on opening hours.
  • Suggestion priceRange is recommended: for example "$$" or "$100-300".

Paste the copied code into either tool to check it (in the Rich Results Test, pick Code instead of URL):

Valid markup does not guarantee a rich result. Review stars are not shown for a business that marks up reviews about itself. Keep every value the same as what visitors see on the page. Nothing you type leaves your browser.

This local business schema generator writes the LocalBusiness JSON-LD for one business location. Each industry preset picks the closest schema.org type that exists today, and the checks next to the code follow Google's local business structured data documentation, which we read on 2026-12-04 (Google last updated it on 2026-09-08). Empty fields are left out of the code instead of filled with placeholders, so what you copy only says what you typed.

What local business schema does

Local business schema is a block of JSON-LD that describes your business in a format search engines read without guessing: its type, name, address, phone, hours and location. Google describes the use like this: "With Local Business structured data, you can tell Google about business hours, different departments within a business, reviews (if your site captures reviews about other businesses), and more." Its list of search features adds where that shows up: "Business details displayed in the Google knowledge panel, including open hours, ratings, directions, and actions to book appointments or order items."

Two limits apply. Google's structured data guidelines say "Google does not guarantee that your structured data will show up in search results, even if your page is marked up correctly", and they tell you not to "mark up content that is not visible to readers of the page." Put the same address, phone and hours on the page itself, usually on your contact page (the contact page examples show how real businesses lay them out), and paste the code on that page.

Google lists two required properties for a local business and a set of recommended ones. This table follows the LocalBusiness table in Google's doc, checked on 2026-12-04.

PropertyGoogle lists it asWhat Google's doc saysIn the generator
nameRequired"The name of the business."Error if empty
addressRequired"The physical location of the business. Include as many properties as possible."Error if every address field is empty; a suggestion for each missing part
telephoneRecommended"Be sure to include the country code and area code in the phone number."Suggestion if the number does not start with +
urlRecommended"The fully-qualified URL of the specific business location. The URL must be a working link."Error if it is not a full https:// address
geo.latitude, geo.longitudeRecommended"The precision must be at least 5 decimal places."Error outside -90 to 90 or -180 to 180; suggestion under 5 decimals
openingHoursSpecificationRecommended"Hours during which the business location is open."Days with the same hours are grouped, as in Google's example
priceRangeRecommended"This field must be shorter than 100 characters."Error at 100 characters or more
servesCuisineRecommended"The type of cuisine the restaurant serves."Shown for food presets
menuRecommended"For food establishments, the fully-qualified URL of the menu."Shown for food presets
departmentRecommended"A nested item for a single department."Not in the generator: one location, one entry
aggregateRating, reviewRecommended"This property is only recommended for sites that capture reviews about other local businesses"Left out on purpose

Two details from the same doc shape the hours output. Open 24 hours is written as 00:00 to 23:59 and a day closed all day as 00:00 to 00:00, and hours past midnight go in a single entry, such as opening at 18:00 and closing at 03:00. The times use the HH:MM form that Google's own examples use. Seasonal closures (validFrom and validThrough) are not in the form; add them by hand if you close for part of the year.

Google also recommends the Organization properties for a local business, because LocalBusiness is a subtype of Organization. That is why the form has logo, email and sameAs for your profile pages.

Which schema type to use for your industry

Google's doc says to "Use the most specific LocalBusiness sub-type possible". Every type in this table was checked on schema.org on 2026-12-04. Where schema.org has no type for a trade, the preset uses the closest parent, and the "Why" column says so. Each industry links to its demo site, such as the plumber and restaurant examples, so you can see the page the code would sit on.

Schema type for each industry presetTypes checked on schema.org on 2026-12-04.
Industry@typeWhyDemo site
DoctorPhysicianExact type on schema.org.Doctor example
DentistDentistExact type on schema.org.Dentist example
DermatologistDermatologyExact type on schema.org.Dermatologist example
ChiropractorMedicalBusinessschema.org lists Chiropractic as a system of medicine, not a business type, so this uses MedicalBusiness.Chiropractor example
TherapistMedicalBusinessschema.org has no business type for this practice, so this uses MedicalBusiness, the parent type for health businesses.Therapist example
PsychologistMedicalBusinessschema.org has no business type for this practice, so this uses MedicalBusiness, the parent type for health businesses.Psychologist example
Physical TherapistPhysiotherapyExact type on schema.org.Physical Therapist example
Medical ClinicMedicalClinicExact type on schema.org.Medical Clinic example
VeterinarianVeterinaryCare + LocalBusinessVeterinaryCare is not a LocalBusiness subtype on schema.org, so both types are listed.Veterinarian example
ArchitectLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Architect example
Law FirmLegalServiceExact type on schema.org.Law Firm example
LawyerLegalServiceschema.org deprecated Attorney in favor of LegalService.Lawyer example
AccountantAccountingServiceExact type on schema.org.Accountant example
ConsultantLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Consultant example
Financial AdvisorFinancialServiceExact type on schema.org.Financial Advisor example
Insurance AgencyInsuranceAgencyExact type on schema.org.Insurance Agency example
Engineering FirmLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Engineering Firm example
PlumberPlumberExact type on schema.org.Plumber example
ElectricianElectricianExact type on schema.org.Electrician example
HVACHVACBusinessExact type on schema.org.HVAC example
RoofingRoofingContractorExact type on schema.org.Roofing example
LandscapingHomeAndConstructionBusinessschema.org has no type for this trade, so this uses HomeAndConstructionBusiness, the parent type for home services.Landscaping example
Cleaning CompanyHomeAndConstructionBusinessschema.org has no type for this trade, so this uses HomeAndConstructionBusiness, the parent type for home services.Cleaning Company example
Painting CompanyHousePainterExact type on schema.org.Painting Company example
Construction CompanyGeneralContractorExact type on schema.org.Construction Company example
RestaurantRestaurantExact type on schema.org.Restaurant example
CafeCafeOrCoffeeShopExact type on schema.org.Cafe example
BakeryBakeryExact type on schema.org.Bakery example
HotelHotelExact type on schema.org.Hotel example
Catering CompanyFoodEstablishmentschema.org has no catering type, so this uses FoodEstablishment, the parent of Restaurant and Bakery.Catering Company example
PhotographerLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Photographer example
Graphic DesignerLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Graphic Designer example
Web DesignerLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Web Designer example
Interior DesignerHomeAndConstructionBusinessschema.org has no type for this trade, so this uses HomeAndConstructionBusiness, the parent type for home services.Interior Designer example
Marketing AgencyLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Marketing Agency example
Creative AgencyLocalBusinessschema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness.Creative Agency example
Real Estate AgentRealEstateAgentExact type on schema.org.Real Estate Agent example
RealtorRealEstateAgentExact type on schema.org.Realtor example
Property ManagementLocalBusinessschema.org has no property management type, so this uses LocalBusiness.Property Management example
Real Estate AgencyRealEstateAgentExact type on schema.org.Real Estate Agency example
Other local businessLocalBusinessCheck the LocalBusiness subtypes on schema.org for a closer match, such as Store or AutoRepair.None

Three choices differ from what older generators output. schema.org now marks ProfessionalService as deprecated "due to confusion with Service", so consultants, agencies, designers and photographers get LocalBusiness. Attorney is deprecated too, and schema.org says "LegalService is more inclusive and less ambiguous." VeterinaryCare is a medical organization on schema.org rather than a local business, so the vet preset lists two types in an array, which Google's doc allows: "If you have multiple types, specify them as an array".

How to add the code to your site

The steps below come from each platform's own help pages, read on 2026-12-04. Use Copy for the full <script> block, or Download .json for the code without the script tags.

Plain HTML

Paste the whole <script type="application/ld+json"> block into the page. Google's intro to structured data describes JSON-LD as "A JavaScript notation embedded in a <script> tag in the <head> and <body> elements of an HTML page", so either place works. As for which page, Google's local business doc says "it may make more sense to put it on a page that contains information about your business."

WordPress

On a self-hosted WordPress site, add a Custom HTML block to the page and paste the code. The WordPress.org Custom HTML block guide warns that for users without the unfiltered_html capability, WordPress strips "disallowed tags such as <script>", so add the block while logged in as an administrator. On WordPress.com, the support page on adding code says "You can use JavaScript on sites with a plugin-enabled plan and activated hosting features", inserted with a Custom HTML block. Without both, the script block will not work there.

Wix

Wix's help article Add Structured Data Markup to Your Site's Pages gives these steps: click +Add New Markup under Structured Data Markup, enter a name, add the code under Write your markup in JSON-LD format, and click Apply. Wix notes that it "only accepts structured data using JSON-LD markups", that markups "must be less than 7,000 characters", that you can add up to five per page, and that markup works on static pages only. The article does not say whether to include the <script> wrapper; if the field rejects it, paste the downloaded .json instead.

Squarespace

Squarespace's code injection guide says code in the Header field "is injected into the <head> tag on every page in your site." To add it to one page only, hover over the page in the Pages panel, click the gear icon, click Advanced, and use Page Header Code Injection. Squarespace says code injection "is available in the Core, Plus, Advanced, and some legacy billing plans."

How to test it

  1. Rich Results Test. Open Google's Rich Results Test, choose Code instead of URL, and paste what you copied. Google's help page for the tool says "You can test an arbitrary code snippet using this tool." It shows whether the code can produce a Google rich result and lists errors.
  2. Schema Markup Validator. Paste the same code into the Schema Markup Validator. It checks the code against schema.org itself, including types and properties Google does not use.
  3. URL Inspection in Search Console. After the page is live, run the URL Inspection tool on it. Google says it can "Run a live test of a URL in your property to check for indexing issues, structured data, and more", and structured data findings show in the Enhancements section.

Testing structured data fits into the last round of checks before and after launch; the website launch checklist lists the others.

Different types of schema markup

schema.org has many more types than Google Search uses; Google's intro says "There are more attributes and objects on schema.org that aren't required by Google Search". These are the features in Google's search gallery that a small business site is most likely to need:

  • Local business: name, address, hours and contact details for a business location. This generator covers it.
  • Organization: logo, legal name, contact details and identifiers for the company as a whole.
  • Breadcrumb: "Navigation that indicates the page's position in the site hierarchy."
  • Article: blog posts and news articles.
  • Event: concerts, festivals and other events people attend at a set time and place.
  • Product: "Information about a product, including price, availability, and review ratings."
  • Review snippet: ratings, with the rules for local businesses in the FAQ below.

FAQ markup is no longer on the list. Google's Search Central changelog says "The FAQ rich result feature is no longer shown in Google Search results" and that Google removed its FAQ documentation. A visible FAQ still helps the people reading your page; the FAQ page examples show how businesses write them.

FAQ

Local business schema generator FAQ

What are the different types of schema markup?
schema.org defines types for businesses, products, events, articles and much more, and Google uses a subset of them for search features. The ones most small business sites use are Local business, Organization, Breadcrumb, Article, Event, Product and Review snippet, all listed in Google's search gallery. Google stopped showing FAQ rich results in 2026, so FAQPage markup no longer produces a special result in Google Search.
Is schema markup still relevant?
Yes. Google's search gallery, last updated on 2026-10-16, still lists local business, organization, product, event and other features that structured data makes possible, and Google recommends JSON-LD as the format. Some features have been retired, though: Google stopped showing FAQ rich results in 2026, so check a feature's current documentation before you add markup for it.
How can I generate a schema from JSON?
If you already have your business details as JSON, you still need to map them to schema.org property names such as name, address, telephone and openingHoursSpecification, then wrap the result in a script tag with type application/ld+json. This generator does that for a local business: type or paste each value into the form and copy the finished JSON-LD.
Does schema markup help local SEO?
Google does not say that structured data is a ranking factor. What its documentation says is that Google uses structured data to understand the content of a page, and that local business markup lets you tell Google about details such as your hours. It also says it does not guarantee your structured data will show up in search results.
Should I use JSON-LD or Microdata?
Use JSON-LD unless your platform only supports something else. Google says all three supported formats are fine when the markup is valid, but that in general it recommends JSON-LD because it is the easiest for site owners to implement and maintain. JSON-LD sits in one script block, so you can paste it without touching the visible HTML.
Can I add review stars to my own business schema?
Not to get stars in Google. Google's review snippet guidelines say that when a business controls the reviews about itself, its pages using LocalBusiness or Organization structured data are ineligible for the star review feature, including reviews shown through a Google or Facebook widget. That is why this generator leaves out aggregateRating and review.

Where to go next

If you are still planning the site the code will go on, the website cost calculator estimates what it costs to build and run. For the pages around the markup, the restaurant website examples show how food businesses present hours, menus and addresses, and the construction website examples do the same for contractors who serve a wider area.