Law Firm Schema Generator

Fill in a short form and get clean LegalService structured data for your firm, with offices, hours, practice areas, attorneys and an optional FAQ, checked against Google’s guidelines as you type.

Your firm

Offices

Attorneys (optional)

FAQ (optional, only if the Q&A is visible on the page)

Your schema

    Paste it into your page’s <head> (or ask your developer to), then test it: Google Rich Results Test · Schema.org validator

    How it works

    The method, and the sources behind it

    1. The right type for a law firm

      schema.org’s LegalService. The older “Attorney” type is deprecated; schema.org says LegalService is “more inclusive and less ambiguous”.

    2. Every office, every attorney

      Extra offices become departments with their own address, phone and hours. Attorneys become Person entries linked to the firm.

    3. Checked as you type

      Warnings follow Google’s LocalBusiness guidelines: name and address are required, phone, hours and profiles are recommended.

    4. Test, then publish

      Copy the code into your page head, then check it in Google’s Rich Results Test and the schema.org validator.

    Disclosures

    • About this tool. The code follows schema.org and Google’s structured data documentation as of November 5, 2026. Valid markup doesn’t guarantee rich results: Google decides what to show. Only mark up information that is true and visible on your site.
    • Your data. Everything runs in your browser. Nothing you type is sent to Lawzen or anyone else; anything saved stays on this device. See our privacy policy.
    • Not legal advice. Lawzen is a marketing agency, not a law firm. Nothing on this page is legal, ethics, tax or financial advice, and using this tool doesn’t create an attorney-client relationship.
    • Who made it. This free tool is made by Lawzen, which sells marketing services to law firms. Where it mentions our services or prices, it’s describing what we sell. Results are provided as-is, without warranty; see our terms.
    • Trademarks. Google, ChatGPT, Claude, Perplexity, Avvo, Justia and other names mentioned belong to their owners. Lawzen isn’t affiliated with or endorsed by them.

    Questions, answered

    About the Law Firm Schema Generator.

    What is schema markup for a law firm?

    Structured data (usually JSON-LD) that tells search engines and AI tools, without guessing, that your site belongs to a law firm: its name, address, phone, hours, practice areas, service area, attorneys and profiles.

    Should I use LegalService or Attorney?

    LegalService. schema.org marks Attorney as deprecated because LegalService is more inclusive and less ambiguous. LegalService is a type of LocalBusiness, so Google’s local business guidelines apply.

    Can I add my review stars?

    Google says review and rating markup is only recommended for sites that capture reviews about other businesses. Marking up reviews of your own firm on your own site won’t earn stars, so this generator leaves them out.

    Where do I put the code?

    In the <head> of your homepage (and contact page), or through your site builder’s custom code setting. Many WordPress SEO plugins also accept custom JSON-LD.

    Ready to be the firm people find, trust and call?

    Book a free 15-minute strategy call. We'll look at your website, Google listing and social profiles with you, show you what's holding them back, and map out a clear plan to fix it.

    Book a free strategy call

    No sales pitch. No pressure. Just honest advice.

    • 15 minutes
    • Free, no obligation
    • Straight answers