Tools / Infantry / Schema generator and validator

01 · Infantry · Open

Schema generator and validator

Check a page's JSON-LD or paste your own. See which types it declares and what its type of business still needs, then copy a complete one. No sign-up.

Type of business

No sign-up. The type of business decides what is expected; if you leave it alone, the check covers what any site should have.

What the page declares

2 JSON-LD blocks0 invalidSample data · Sample: Local business

DentistLocal business · block 1
Incomplete
  • nameCorrect
  • addressCorrect
  • telephoneMissing
  • openingHoursSpecificationCorrect
  • geoRecommended · missing
  • urlCorrect
WebSiteWebsite · block 2
Correct
  • urlCorrect
  • nameCorrect
  • publisherRecommended · missing
BreadcrumbListRecommended for a local business · not there
Missing

Ready-to-use JSON-LD

Dentist + WebSite + BreadcrumbList2 fields to fill in

To paste in the page's <head>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Dentist",
      "@id": "https://www.tusitio.example/#business",
      "name": "Clínica Dental Sonrisa",
      "url": "https://www.tusitio.example/",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "Av. Juárez 123",
        "addressLocality": "Guadalajara",
        "addressRegion": "Jalisco",
        "postalCode": "44100",
        "addressCountry": "MX"
      },
      "openingHoursSpecification": [
        {
          "@type": "OpeningHoursSpecification",
          "dayOfWeek": [
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday"
          ],
          "opens": "09:00",
          "closes": "19:00"
        }
      ],
      "telephone": "+523312345678",
      "hasMap": "https://maps.app.goo.gl/tusitio",
      "geo": {
        "@type": "GeoCoordinates",
        "latitude": "TODO: latitude",
        "longitude": "TODO: longitude"
      }
    },
    {
      "@type": "WebSite",
      "@id": "https://www.tusitio.example/#website",
      "name": "Clínica Dental Sonrisa",
      "url": "https://www.tusitio.example/",
      "publisher": {
        "@id": "https://www.tusitio.example/#business"
      }
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://www.tusitio.example/"
        }
      ]
    }
  ]
}
</script>

Fill in everything marked TODO before publishing: made-up data is worse than missing data. Whatever your page already had is kept.

Local business1 warning
  • Name“Clínica Dental Sonrisa” matches in the schema and on the page.
  • AddressAv. Juárez 123, Guadalajara can also be seen on the page.
  • PhoneThe page shows +523312345678, but the schema does not declare it. The JSON-LD on the right already includes it.
  • MapThe page links to its Google Maps listing.

What gets checked

01

Syntax

Every block is valid JSON, with a schema.org context and types that exist.

02

Types by business

What is expected for the line of business: a dentist does not need what an online store does.

03

Properties

The ones Google and AI engines need to understand each type, split into required and recommended.

04

Local business

Name, address and phone match in the schema, on the page and in the Google Maps listing.

Questions about schema

Which type should my business use?

The most specific one there is: Dentist rather than LocalBusiness, Restaurant rather than FoodEstablishment. Pick your line of business and the generator uses it.

Where do I paste it?

In the page's <head>, or wherever your CMS lets you add code. On a site with several pages, the business goes on the home page and the contact page.

Will this get me rich results?

It makes them possible, it does not guarantee them: Google decides when to show them. Without schema, there is no way.

Can I check it before publishing?

Yes. Paste the JSON-LD and it is validated without touching your site.

Why does it matter for AI?

An AI that recommends businesses in a city needs the address, hours and phone in a format it can read without guessing.

Do I need to sign up?

No. Saving and comparing checks needs a free account.