Schema Markup Generator
Generate valid JSON-LD or Microdata structured data for 16 schema types. Select a schema type, fill in the fields, and copy the markup to your site. Not sure where the code goes once you have it? Read how to add schema markup to your website for the exact steps on WordPress, Shopify, Wix, and custom sites.
LocalBusiness Fields
Opening Hours
Structured Data Output
Missing required fields:
- - Business name is required
- - Address is required
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "",
"address": {
"@type": "PostalAddress",
"streetAddress": "",
"addressLocality": "",
"addressRegion": "",
"postalCode": "",
"addressCountry": "GB"
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Monday",
"opens": "09:00",
"closes": "17:00"
}
]
}
</script>What is LocalBusiness schema?
LocalBusiness schema states your business name, type, address, phone number, opening hours, and geographic coordinates in a machine-readable format. Google lists a local business feature that can show hours, ratings, directions, and booking options, but for most businesses the local pack and Maps listing are driven primarily by your Google Business Profile, not by page markup.
What LocalBusiness schema does reliably is corroborate the details in your Google Business Profile with an independent, structured statement on your own site, using one of 29 specific business types from Plumber to Dentist rather than the generic LocalBusiness type alone. Fill in the fields below, including opening hours and price range, and generate either JSON-LD or Microdata output. Keep the name, address, and phone number here identical to your Google Business Profile listing.
Frequently asked questions
Will adding this schema get me into the Google local pack?
No single piece of markup does that. The local pack is driven mainly by your Google Business Profile, proximity, relevance, and reviews. LocalBusiness schema on your site supports and corroborates those signals rather than replacing them.
Which business type should I pick?
Choose the most specific type that fits, such as Dentist or Plumber, rather than the generic LocalBusiness type. A specific type gives search engines a clearer statement of what the business does.
Do I need latitude and longitude?
They are optional but useful if your address alone does not pinpoint your location precisely, for example in a large retail park. Leave them blank if you are not sure of the exact coordinates.
Does the address here need to match my Google Business Profile exactly?
Yes. Inconsistent name, address, and phone details between your site and your Google Business Profile are a known source of local ranking confusion, so keep them aligned.
Want structured data implemented, validated, and monitored for you? The technical SEO audit includes a full schema markup review. Not sure where to paste the code above? Read how to add schema markup to your website.
Other schema types
Get Started
Want Your Schema Implemented and Validated for You?
Tell me your site and CMS. I will review your existing structured data, implement what is missing, and validate everything in Google's Rich Results Test as part of the fixed-fee audit.
- Focus on your biggest search problem
- Review the evidence you already have
- Identify the most useful next step
- Answer your priority SEO question
Usually responds within a few hours
Currently accepting new clients
More free SEO tools
Robots.txt Generator
Build a valid robots.txt with a visual editor. Includes AI crawler blocking presets.
Hreflang Tag Generator
Generate correct hreflang tags for multilingual sites in HTML or XML sitemap format.
Redirect Chain Checker
Follow and visualise the full redirect chain for any URL. Detect loops and 302s.