Local business schema generator for businesses that go to their customers

Short answer

Fill in your business details, choose whether customers come to you or you go to them, list the towns you serve, and this free generator writes LocalBusiness JSON-LD ready to paste. For a service-area business it leaves the street address out and lists your areas served, and it never adds review stars Google would ignore.

Most schema generators assume a shop with a front door. A plumber, a cleaner or a mobile mechanic has no address to publish and a list of towns instead, and the markup should say so. This one is built for that case first.

The business
Where you work
Services and hours

What does the generator write?

  • The most specific type you choose, such as Plumber, Electrician or RoofingContractor. These are schema.org subtypes of LocalBusiness, and the specific one says more than the general one.
  • An @id built from your web address, so other markup on your site, such as a Service on each town page, can point back to this one business rather than describing it again.
  • An address: in full if customers visit you, or only the town, postcode and country if you hide your address on Google. Match what your Business Profile shows.
  • areaServed: each town you list, as a Place.
  • Opening hours, services and profiles elsewhere (sameAs), if you fill them in. Services go into an OfferCatalog, one Service per line.

It deliberately leaves out aggregateRating and review. Google’s review snippet guidelines say a business can’t earn star results by marking up reviews about itself on its own site; why your review stars don’t show explains the rule.

Where do you put the schema?

Once, on your homepage or contact page, in a Custom HTML block or your theme’s header settings. Then check it with the Schema Markup Validator. If you use Yoast SEO, Rank Math, All in One SEO or SEOPress, check first whether it already outputs LocalBusiness markup from its own settings: two descriptions of the same business, with different details, help nobody. In that case, use the generator’s output as a checklist of what to fill in there.

For a site with a page for each town, the business itself is described once, and each town page describes the service it offers there, with areaServed naming that town and a provider pointing back to the business by its @id. LocalBusiness schema for service-area businesses sets out that pattern, and common schema mistakes lists what goes wrong.

Does schema help a local business rank?

Google says structured data helps it understand a page, and it is required for some search features; it does not describe it as a ranking boost. Accurate markup removes doubt about who you are and where you work, which is worth the ten minutes. Wrong or inflated markup, such as areas you don’t serve, is worse than none.

Where Townsmith fits

Local Pages Engine writes this markup on every page it builds: the business once, and a Service with areaServed for each town page. When an SEO plugin is active, it leaves the business markup to that plugin and adds only the Service, linked to the business the SEO plugin describes, so the two never disagree. Schema and WP-CLI in the docs has the details.

Common questions

Should a service-area business include its address in schema?

Only what you show publicly. If your Business Profile hides your street address, leave the street out of your markup too, and keep the town, postcode and country. The generator does this when you choose “We go to customers”.

Is areaServed a list of towns or a radius?

Schema.org allows either, and also plain text. A list of named places is the clearer of the two for a reader and a search engine, and it matches the towns you list on your Business Profile and your website.

Is anything I type sent anywhere?

No. The markup is written in your browser and nothing is sent to townsmithwp.com or anyone else.

Built and checked on 5 November 2026. Written by Stephen Evans, who makes Local Pages Engine.