Schema generator: structured data without code
Structured data (schema markup) tells search engines exactly what a business is, where it is and when it's open. The Schema generator writes it from a form, in the JSON-LD format Google recommends, so nobody has to write code. Everything runs in your browser; nothing is sent to ppclift.
Step by step
- Open Tools › Schema generator, or go to ppclift.com/tools/schema-generator.
- Under What do you want to describe?, choose A local business, A service it offers or An FAQ page. Make one for each page that needs it: the business on the homepage or contact page, a service on that service's page, an FAQ on the FAQ page.
- Fill in the form. Fields marked * are required.
- Press Generate JSON-LD. If something is missing or in the wrong shape, a list at the top says what to fix.
- Press Copy code, then test it and add it to the site (below). Clear the form starts again.
A local business
- Kind of business sets the most specific type that fits, such as Dentist or Plumber. If none fits, choose Something else (generic LocalBusiness).
- Required: Business name, Street address, Suburb, town or city and Country code (two letters: AU, NZ, GB, US).
- Optional: website, phone (in international form, such as +61 3 9000 0000), price range ($$ or $80-$200), the web address of a logo or shopfront photo already on the site, state or region, postcode, and latitude and longitude. To get the last two, right-click the business on Google Maps: the first line of the menu is the coordinates, and clicking it copies them.
- Opening hours: one line per set of days, such as Mo-Fr 08:00-17:30, then Sa 09:00-13:00 on the next line. Days are Mo Tu We Th Fr Sa Su, in 24-hour time.
- Social and directory profiles: one address per line (Facebook, Instagram, LinkedIn and so on). They tell search engines these listings are the same business.
- Use the name, address and phone exactly as they appear on the Google Business Profile, so every listing agrees.
A service it offers
- Required: Service name and Provided by (business name). Optional: a service category, a description, the business website, Areas served (separated by commas), a Starting price and its Currency (three letters: AUD, NZD, GBP, USD).
- Google has no rich result for a service, so the Rich Results Test will say it found nothing. That's expected: check it with the Schema Markup Validator instead. It still helps search engines connect the service to the business.
An FAQ page
- Type each question and its answer. Add another question adds a pair; Remove this question takes one out.
- Only mark up questions and answers that appear word for word on the page.
- Since 2023 Google shows FAQ drop-downs in search only for well-known government and health sites, so most businesses won't see them. The markup is still valid, and still read by search engines and AI answer engines.
Testing it
- Paste the code, or the live page's address, into Google's Rich Results Test (linked under the code) to see whether it qualifies for a rich result.
- Paste it into the Schema Markup Validator (also linked) to check every property, including types Google has no rich result for.
- Once it's on the site, run the page through the SEO Checker: the structured data check should pass.
Adding it to the website
- The code goes into the page's HTML, ideally in the part called the head, though anywhere on the page works. It doesn't need editing.
- Most website builders and content systems have a setting for adding code to one page or to the whole site, usually called something like custom code, code injection or header code. Some SEO plugins have a schema or structured data field instead.
- Business markup belongs on the page it describes, usually the homepage or contact page; a sitewide setting is fine for it too.
- If you don't manage the site, send the code to whoever does, and say which page it belongs on.