LocalBusiness Schema Generator for Law Firms
Generate valid LegalService / LocalBusiness JSON-LD with your address, hours, geo, and service area so Google and AI engines understand your firm. Free and private.
Mo-Fr 09:00-17:00 or Sa 10:00-14:00. Separate multiple rules with a comma.What LocalBusiness schema does for a law firm
LocalBusiness schema is a block of structured data — written in JSON-LD — that describes your firm to search engines in a language they parse perfectly: your name, address, phone number, office hours, geographic coordinates, and the area you serve. For law firms, the correct type is LegalService, a specialized subtype of LocalBusiness that inherits every property while signaling to Google exactly what kind of business you are. When this data is present and accurate, Google can show your hours in search results, place you in the local map pack, populate a knowledge panel, and feed clean facts to AI answer engines like ChatGPT, Perplexity, and Google's AI Overviews.
Without schema, search engines have to guess at your firm's details by scraping visible text — an error-prone process. With it, you hand them a verified, unambiguous profile. That is why structured data has become one of the highest-leverage, lowest-effort SEO improvements a firm can make. This free tool builds valid markup in seconds with no code required.
Why local structured data matters for law firms
Legal services are overwhelmingly local-intent searches. Someone typing "personal injury lawyer near me" or "family law attorney" expects results tied to their area, and Google leans heavily on structured data and Google Business Profile signals to decide who appears in the coveted three-pack. A firm with clean, consistent LocalBusiness schema on its website — matching the NAP (name, address, phone) on its Google Business Profile — sends a strong, coherent entity signal. Inconsistent or missing data does the opposite, and it is a common reason firms with great reviews still rank poorly.
Structured data also increasingly determines whether AI tools cite you. Answer engines prefer sources with explicit, machine-readable facts they can quote with confidence. A firm that publishes its jurisdiction, hours, and service area in schema is far more citable than one that buries the same information in prose.
How to use the generated JSON-LD
Fill in your firm name, website, phone, and full address. Add optional fields — geographic coordinates, opening hours in schema.org format (for example Mo-Fr 09:00-17:00), price range, and area served — for a richer profile. Click generate, copy the script block, and paste it into the <head> of the page that best represents your office, usually your homepage or contact page. Add one block per physical location. Then run the page through Google's Rich Results Test to confirm it validates.
Common mistakes to avoid
- Mismatched NAP. Your name, address, and phone must match your Google Business Profile and directory listings exactly, character for character.
- Fake or aspirational data. Only mark up real office locations and genuine hours — Google penalizes misleading markup.
- Wrong page. Put location schema on a page that actually represents that office, not on every page of the site.
- Forgetting to validate. Always test before publishing; a single syntax error can invalidate the whole block.
Best practices for maximum visibility
Pair your LocalBusiness schema with other structured data for a complete entity graph: use our attorney schema generator to mark up individual lawyers, our review schema generator for genuine ratings, and breadcrumb markup for site structure. Keep the area-served field national in scope where it fits your practice — describing the regions you genuinely serve helps US and Canadian firms compete beyond a single city. For the full organic strategy, see our guide to AI SEO for law firms, which explains how structured data, content, and authority combine to win rankings and AI citations.
Multiple offices and keeping data fresh
Firms with more than one office should publish a separate LocalBusiness block on each location's dedicated page, every one with its own unique address, phone, and hours. Do not stack all locations into a single page's markup or point them all at the same phone number — that confuses the entity model and dilutes the local signal for each office. A dedicated page per location, each with matching schema and a matching Google Business Profile, is the pattern that scales cleanly as a firm grows.
Structured data is not a set-and-forget task, either. When your hours change for a holiday season, when you add a phone line, or when you relocate, update the schema at the same time you update the visible page. Search engines and AI tools treat stale, contradictory data as a trust problem, and out-of-date hours are a frequent source of frustrated prospective clients who call a closed office. A quarterly review of your LocalBusiness markup against your Google Business Profile keeps both in lockstep and protects the local rankings you have worked to earn.