How to Add LocalBusiness Schema to Your Website
LocalBusiness schema is a structured description of your public business facts. Here is how to add it accurately and validate it.
Reviewed by Jacob Rhinehart for Strelva's co-founder; products and operations lead responsibilities.
LocalBusiness schema is structured data (a small block of JSON-LD code) that describes public business facts such as name, address, phone, hours, type, and location. Accurate markup can clarify the entity and support applicable search features, but it is not a ranking guarantee.
Why it matters
Without structured data, search systems infer details from page content. Valid markup can clarify those details and support applicable search features. It does not guarantee a rich result, ranking, citation, or recommendation, and the visible page must remain accurate and useful on its own.
How to add it
- Gather your details. Exact business name, address, phone, hours, website, geographic coordinates, and the most specific business type from schema.org (for example "Plumber" or "Dentist," not just "LocalBusiness").
- Generate the JSON-LD. Build a LocalBusiness schema block with all those fields. Make sure the data exactly matches your website and Google Business Profile.
- Add it to your pages. Place the JSON-LD in the head or body of your homepage and contact page. On most platforms you can paste it into a code or header section.
- Use a specific type. The more specific your @type, the more useful it is. Pick the closest match from the LocalBusiness subtypes.
- Validate. Run your pages through a schema validator and confirm there are no errors and all required fields are present.
Keep it accurate
The cardinal rule: the schema must match what is visible on the page and on your Google Business Profile. Mismatched hours or an old phone number in your schema can undercut trust rather than build it. When your details change, update the schema in the same pass.
Frequently asked
What business owners ask next.
What is LocalBusiness schema?
A block of structured JSON-LD code that describes your business name, address, phone, hours, type, and location in a machine-readable format. It can clarify the entity and support applicable search features without guaranteeing their appearance.
Should I use a specific schema type or just LocalBusiness?
Use the most specific subtype available for your business, such as Plumber, Restaurant, or Dentist. Specific types give search engines and AI more precise information than the generic LocalBusiness type.