DebugSwift

Schema Generator

Tell search engines what your business actually is.

Answer a few plain questions about your business and get the code that tells Google your address, phone and opening hours, plus exactly where to paste it on WordPress, Wix, Squarespace or Shopify. No code knowledge needed.

Step 1: Your business

Do customers come to you, or find you online?

Shops, clinics, restaurants, and trades who visit customers in a set area.

When in doubt, leave it as the general one. A wrong specific type is worse than a right general one.

We add https:// for you.

Start with your country code.

A link to an image already on your site. Right-click your logo and copy the image address.

Step 2: Where and when

A rough band like ₹₹. Never an actual price.

Find your business on Google Maps, then copy the address from the browser bar. The long link carries the exact pin.

Opening hours

Where the “Open now” line in search results comes from. Start from a preset, then adjust any day.

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday

Step 3: Your profiles elsewhere

One full address per line: your Google Business Profile, Facebook, Instagram, LinkedIn, a directory listing. This is how a search engine confirms you're the same business it has seen elsewhere.

Step 4: Put it on your site

Worth adding

  • · The business name is required; nothing works without it.
  • · Add your website address so the markup is tied to a real site.
  • · A phone number is one of the fields most likely to be shown.
  • · A street and town make this eligible for map results. Leave them out if you have no public address.
  • · Add a logo or a photo address. Google lists an image as recommended for local businesses.
  • · Linking your profiles helps search engines confirm you're the same business they've seen elsewhere.

The code below still works without these. It just says less.

Your code
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "address": {
    "@type": "PostalAddress",
    "addressCountry": "IN"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "https://schema.org/Monday",
        "https://schema.org/Tuesday",
        "https://schema.org/Wednesday",
        "https://schema.org/Thursday",
        "https://schema.org/Friday",
        "https://schema.org/Saturday"
      ],
      "opens": "09:00",
      "closes": "17:00"
    }
  ]
}
</script>

Where to paste it

  • WordPress: Install a header-code plugin (WPCode is the common free one) and paste it into the site-wide header box. If you use Yoast or Rank Math, check its local-business settings first: it may already output some of this, and two blocks describing one business disagree.
  • Wix: Settings, then Custom code. Add it to the head of all pages, or just the home page.
  • Squarespace: The site's Code injection settings, in the Header box.
  • Shopify: Online Store, Themes, Edit code, open theme.liquid, and paste it just above </head>.
  • Hand-built site: Paste it anywhere inside the <head> of your home page, or give this whole block to your developer.

Then check it

Paste your page address there once the code is live. And keep it honest: the code has to describe what a visitor can see on the page. Hours in the code that disagree with the hours on the page is the mistake that gets structured data ignored.

What it's for

It doesn't boost you. It stops you being misread.

Search engines read your page the way a stranger skim-reads a leaflet. Structured data is the bit where you write the important facts down plainly instead of hoping they're inferred correctly.

The practical payoff is being shown properly: hours, location, phone number, the “Open now” line. For a local business that presentation is often worth more than a place or two in the ranking.

If the website audit told you there was no structured data on your page, this is the answer to that. If you want the rest of the local picture handled properly (the profile, the citations, the reviews you actually earn) that's SEO & local visibility work.

Common questions

Will this make me rank higher?

Not by itself, and anyone telling you otherwise is selling something. Structured data doesn't boost rankings. It makes a search engine certain about facts it would otherwise have to guess from your page text. That certainty is what lets it show your hours, your phone number and your location in the result. Being shown properly is worth a lot; it just isn't the same thing as ranking.

Why is there no star rating field?

Because it would be a rating you typed in about yourself. Review markup is meant to describe reviews a visitor can actually see on that page, and marking up ratings that aren't really there is one of the more reliable ways to get a manual penalty. If you have genuine reviews on the page, mark those up. If you don't, no field here will conjure the stars.

Where does it go?

In the <head> of the page it describes, usually your home page or your contact page. One block per business, not one per page. If you have several locations, each location page gets its own with its own address.

How do I know it worked?

Run the page through Google's Rich Results Test. It'll tell you what it parsed and what it ignored. Then keep the markup and the visible page in step: hours in the code that disagree with hours on the page is the mistake that gets the whole block discounted.

Beyond the markup

Being findable is more than a code block.

The markup helps a search engine describe you correctly. Being the result it wants to show is a longer conversation.

Book a free diagnosisTwenty minutes. No pitch, no obligation.

Fixed price agreed before work starts. No hourly billing, no surprises.