Let’s talk

Business schema
generator (JSON-LD)

Fill in your business details and get structured data to paste into your website, checked as you type against Google’s guidelines for local businesses.

The business
Contact
Address
Map locationOn Google Maps, right-click your pin and click the coordinates to copy them, then paste here. A Google Maps link also works.
Opening hours
Closed
Closed
More (optional)
Your JSON-LD
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday"
      ],
      "opens": "09:00",
      "closes": "18:00"
    }
  ]
}
</script>

Paste this into the <head> of your homepage (or of the page about this location). Then test it.

Checks
  • Missing: Add the business name
  • Missing: Add the street address and city: Google needs an address for a local business
  • Worth fixing: Add a phone number: customers tap it straight from Google
  • Worth fixing: Add the map location so Google places you exactly
  • Tip: Add a logo (square, at least 112×112 px)
  • Tip: Add a photo of the business
  • Tip: Add your Instagram, Facebook, LinkedIn and directory profiles to connect them to your business
  • Tip: Name, address and phone must match your Google Business Profile and your website footer exactly, character for character.
  • Fine: Opening hours

The guide

What schema markup is

Schema markup, or structured data, is a small block of code that describes your business to search engines in a format they read without guessing: your name, address, phone, opening hours, location on the map, logo and social profiles. It uses the shared schema.org vocabulary, and JSON-LD is the format Google recommends.

It sits inside a <script type="application/ld+json"> tag in your page and is invisible to visitors. Nothing on the page changes; search engines simply understand it better.

What it does, and what it doesn’t

Structured data helps Google connect your website to your business: the same name, the same address, the same phone as your Google Business Profile. That consistency matters for local search. It can also make a page eligible for rich results.

It is not a ranking trick. Google says it uses structured data to understand pages, and it gives no guarantee that any rich result will appear. Mark up only what is true and visible on your site. And don’t add review stars about your own business: Google stopped showing self-serving reviews for local businesses and organizations in 2019.

Which type to choose

Use the most specific type that is true: Restaurant, Dentist, BeautySalon, RealEstateAgent and so on. Specific types tell Google more, and they all inherit everything a LocalBusiness has. If customers visit you, or you serve them in a set area, you are a local business. If you are an online company without a public address, use Organization.

Getting the details right in Lebanon and the Gulf

Addresses here are often informal, which is exactly why consistency matters.

  • Write the address the same way everywhere: building, floor and street, then the town. Copy it from your Google Business Profile.
  • Postal codes are rarely used in Lebanon; it is fine to leave the field empty.
  • Add exact map coordinates. On Google Maps, right-click your pin and the first line of the menu shows them; click it to copy.
  • Phone numbers go in international format: +961 for Lebanon, +971 for the UAE, +966 for Saudi Arabia.
  • If your business has an Arabic name, add it as the other name, so both versions point to the same business.

How to add it to your site

On a custom site, paste the code into the <head> of the homepage, or of each branch’s own page if you have several locations. On WordPress, use your theme’s header-code setting or a plugin that adds code to the head (remove any duplicate business schema your SEO plugin already prints). Then paste the code into Google’s Rich Results Test and the Schema.org validator to confirm it reads cleanly.

Questions

Will schema markup improve my ranking?

Not directly. It helps Google understand and trust your business details, which supports local visibility, and it can make your page eligible for rich results. The content of your site, your Google Business Profile and your reviews still matter far more.

LocalBusiness or Organization?

LocalBusiness (or a more specific type like Restaurant or Dentist) if customers visit you or you serve a local area. Organization if you are an online company with no public address.

Can I add review stars to my own schema?

You can, but Google won’t show them. Since 2019, star ratings that a business writes about itself aren’t shown for local businesses and organizations, and fake or copied reviews can get your markup ignored.

My business has two branches. What do I do?

Create one block per branch, each with its own address, phone and hours, ideally placed on a page about that branch. Keep the same business name in each.

Does the generator send my details anywhere?

No. The code is built in your browser as you type. Nothing is sent to us or saved.

More free
tools

Want this done
properly?

We set up schema, Google Business Profile consistency and fast, bilingual pages as part of every website we build.

Got an idea worth building?

Continue to scroll
Keep scrolling to learn moreFree website auditNext page →