How to use this generator
- Enter your firm name, URL, and contact details. These anchor the firm as an entity and should match your Google Business Profile.
- Add practice areas under knowsAbout. Start typing and pick from the list; each maps to a Wikipedia entity so search engines can disambiguate the topic.
- Optionally add an Offer Catalog to list your services, and an attorney via graph mode so founder and author references resolve.
- Copy the JSON-LD into the head of your firm page.
- Validate with the Rich Results Test and Schema.org Validator.
What is LegalService schema?
LegalService schema is structured data for a law firm or legal practice. It describes the firm as a service-providing entity: name, location, areas served, the topics it handles, and the people behind it. It uses the LegalService type, a subtype of LocalBusiness.
It is not a standalone rich-result type, so it will not produce star ratings or a snippet by itself. Its job is to make the firm legible to search engines and to connect practice areas, attorneys, and offices into one coherent entity.
Use knowsAbout and a Person node correctly
The knowsAbout field is where you list practice areas. This tool outputs each one as a Thing with a Wikipedia sameAs link, which is a richer, less ambiguous form than a plain string. That helps search engines understand that "truck accidents" means the traffic-collision topic, not something else.
If your page names a founding or lead attorney, add a Person node in graph mode. The tool wires the firm's founder reference to that Person's @id, so the reference resolves to a real node instead of dangling. A dangling reference to a Person that is not in the graph is one of the most common mistakes in law firm markup.
On reviews: self-serving aggregateRating on a LegalService generally will not show stars in Google (a 2019 policy change). The option exists in the tool, but use it only when genuine, visible reviews back it up.
Where to put the code
Paste the generated <script type="application/ld+json"> block into the <head> of the page it describes. On WordPress, a free plugin like WPCode adds header code without editing theme files, and SEO plugins such as Yoast and Rank Math accept custom JSON-LD. On a static site, paste it straight into the HTML.
Frequently asked questions
Is this Legal Service schema generator free?
Yes, free with no signup and no limits.
What does knowsAbout do?
It lists the topics your firm handles as entities, each linked to a Wikipedia article. This disambiguates practice areas so search engines interpret them correctly.
Will my star rating show up?
Not from self-serving review markup on your own LegalService node. Google stopped showing those in 2019. Ratings tied to your firm appear through your Google Business Profile.
How do I mark up multiple attorneys?
Add a Person node per attorney in graph mode. Each gets a unique @id and can reference the firm with worksFor, while the firm references a founder if applicable.
LegalService or LocalBusiness?
LegalService is a LocalBusiness subtype tailored to legal practices. Use it for a firm; it carries the same address and hours fields plus a legal context.