Local Business Schema Generator: Free JSON-LD for Your Business
A free schema markup generator for small local businesses. Pick your industry, fill in your details and copy LocalBusiness JSON-LD for your site. The checks follow Google's required and recommended properties, and nothing you type leaves your browser.
Local business schema generator
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.
Required and recommended properties
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.
| Property | Google lists it as | What Google's doc says | In the generator |
|---|---|---|---|
name | Required | "The name of the business." | Error if empty |
address | Required | "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 |
telephone | Recommended | "Be sure to include the country code and area code in the phone number." | Suggestion if the number does not start with + |
url | Recommended | "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.longitude | Recommended | "The precision must be at least 5 decimal places." | Error outside -90 to 90 or -180 to 180; suggestion under 5 decimals |
openingHoursSpecification | Recommended | "Hours during which the business location is open." | Days with the same hours are grouped, as in Google's example |
priceRange | Recommended | "This field must be shorter than 100 characters." | Error at 100 characters or more |
servesCuisine | Recommended | "The type of cuisine the restaurant serves." | Shown for food presets |
menu | Recommended | "For food establishments, the fully-qualified URL of the menu." | Shown for food presets |
department | Recommended | "A nested item for a single department." | Not in the generator: one location, one entry |
aggregateRating, review | Recommended | "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.
| Industry | @type | Why | Demo site |
|---|---|---|---|
| Doctor | Physician | Exact type on schema.org. | Doctor example |
| Dentist | Dentist | Exact type on schema.org. | Dentist example |
| Dermatologist | Dermatology | Exact type on schema.org. | Dermatologist example |
| Chiropractor | MedicalBusiness | schema.org lists Chiropractic as a system of medicine, not a business type, so this uses MedicalBusiness. | Chiropractor example |
| Therapist | MedicalBusiness | schema.org has no business type for this practice, so this uses MedicalBusiness, the parent type for health businesses. | Therapist example |
| Psychologist | MedicalBusiness | schema.org has no business type for this practice, so this uses MedicalBusiness, the parent type for health businesses. | Psychologist example |
| Physical Therapist | Physiotherapy | Exact type on schema.org. | Physical Therapist example |
| Medical Clinic | MedicalClinic | Exact type on schema.org. | Medical Clinic example |
| Veterinarian | VeterinaryCare + LocalBusiness | VeterinaryCare is not a LocalBusiness subtype on schema.org, so both types are listed. | Veterinarian example |
| Architect | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Architect example |
| Law Firm | LegalService | Exact type on schema.org. | Law Firm example |
| Lawyer | LegalService | schema.org deprecated Attorney in favor of LegalService. | Lawyer example |
| Accountant | AccountingService | Exact type on schema.org. | Accountant example |
| Consultant | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Consultant example |
| Financial Advisor | FinancialService | Exact type on schema.org. | Financial Advisor example |
| Insurance Agency | InsuranceAgency | Exact type on schema.org. | Insurance Agency example |
| Engineering Firm | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Engineering Firm example |
| Plumber | Plumber | Exact type on schema.org. | Plumber example |
| Electrician | Electrician | Exact type on schema.org. | Electrician example |
| HVAC | HVACBusiness | Exact type on schema.org. | HVAC example |
| Roofing | RoofingContractor | Exact type on schema.org. | Roofing example |
| Landscaping | HomeAndConstructionBusiness | schema.org has no type for this trade, so this uses HomeAndConstructionBusiness, the parent type for home services. | Landscaping example |
| Cleaning Company | HomeAndConstructionBusiness | schema.org has no type for this trade, so this uses HomeAndConstructionBusiness, the parent type for home services. | Cleaning Company example |
| Painting Company | HousePainter | Exact type on schema.org. | Painting Company example |
| Construction Company | GeneralContractor | Exact type on schema.org. | Construction Company example |
| Restaurant | Restaurant | Exact type on schema.org. | Restaurant example |
| Cafe | CafeOrCoffeeShop | Exact type on schema.org. | Cafe example |
| Bakery | Bakery | Exact type on schema.org. | Bakery example |
| Hotel | Hotel | Exact type on schema.org. | Hotel example |
| Catering Company | FoodEstablishment | schema.org has no catering type, so this uses FoodEstablishment, the parent of Restaurant and Bakery. | Catering Company example |
| Photographer | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Photographer example |
| Graphic Designer | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Graphic Designer example |
| Web Designer | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Web Designer example |
| Interior Designer | HomeAndConstructionBusiness | schema.org has no type for this trade, so this uses HomeAndConstructionBusiness, the parent type for home services. | Interior Designer example |
| Marketing Agency | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Marketing Agency example |
| Creative Agency | LocalBusiness | schema.org has no type for this trade, and ProfessionalService is deprecated, so this uses LocalBusiness. | Creative Agency example |
| Real Estate Agent | RealEstateAgent | Exact type on schema.org. | Real Estate Agent example |
| Realtor | RealEstateAgent | Exact type on schema.org. | Realtor example |
| Property Management | LocalBusiness | schema.org has no property management type, so this uses LocalBusiness. | Property Management example |
| Real Estate Agency | RealEstateAgent | Exact type on schema.org. | Real Estate Agency example |
| Other local business | LocalBusiness | Check 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
- 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.
- 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.
- 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?
Is schema markup still relevant?
How can I generate a schema from JSON?
Does schema markup help local SEO?
Should I use JSON-LD or Microdata?
Can I add review stars to my own business schema?
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.