Skip to content
Pinpraise
Menu
  1. Blog
  2. Fixes and how-tos

How to Embed a Google Map on Your Website

To embed a Google Map on your website, find your business in Google Maps, choose Share, then the "Embed a map" tab, copy the short piece of HTML it gives you and paste it into your page where the map should appear. It is free, needs no account with Google's developer services and takes about five minutes. The details below cover the common website builders and the usual things that go wrong.

Get the embed code from Google Maps

Do this on a computer; Google's own steps for embedding are for Google Maps in a computer browser, not the phone app.

  1. Open Google Maps in a browser.
  2. Search for your business by name, and click your own listing so its panel opens. This matters: the map should be of your business listing, not only of the street address.
  3. Click Share. If you do not see it, open the main menu at the top left and choose "Share or embed map".
  4. Choose the tab for embedding a map. The wording may differ slightly.
  5. Pick a size from the list. Medium suits most pages.
  6. Copy the HTML. It is one line that begins with the word iframe inside angle brackets.

That line is the whole thing. You do not edit it, and you do not need a key or a billing account. Those are for developers who build custom maps with Google's Maps Platform, which is a different product with its own terms and charges.

Paste the code into your website

The code has to go in as HTML, not as ordinary text. If you paste it into a normal text box you will see the code itself on the page, not a map.

Your site is built withWhere to paste it
WordPressAdd a "Custom HTML" block where the map should go, and paste
Wix, Squarespace, Shopify and similar buildersAdd the builder's "embed" or "custom code" element, and paste. Many also have their own map element where you only type the address
A site a developer made for youSend them the line and say which page and where
Hand-written HTMLPaste it into the page inside the section where the map belongs

Save, publish, then look at the page on your phone as well as your computer.

Make the map fit phones

The copied code has a fixed width and height in pixels. On a narrow phone screen a wide map can spill off the side of the page.

Put your address, phone number and hours in ordinary text next to the map. A map alone cannot be copied, read aloud by a screen reader in a useful way, or understood by a visitor whose map fails to load.

Why the map is blank, wrong or missing

Work down this list. Most problems are one of the first three.

The code shows as text

It went into a text editor. Delete it and paste it again into an HTML or embed block.

The map shows the right street but not your business

You embedded the address, not the listing. Go back to Google Maps, search by business name, open your listing and take the embed code from there. A map made from the listing normally shows a small card with your name, and often your rating and a link to open the full listing.

The pin is in the wrong place

The embed shows whatever Google Maps has. If the pin is wrong there, it is wrong on your site. Correct it at the source; see how to fix a wrong map pin for your business on Google. The embedded map follows once Google has accepted the change, which can take a few days.

A grey box or nothing at all

Your business is not on Google Maps

A map can only show a listing that exists and is public. If yours is new, unverified or suspended, sort that out first; start with how to set up a Google Business Profile. Until then, embed the address, and swap the code for the listing later.

You have no shopfront

A business that visits customers and hides its address has no pin to embed. Use text on your site that names the areas you cover.

Does an embedded map help you rank?

Embed the map because it helps visitors find your door. That is reason enough.

You will read claims that an embedded map lifts your position in local results. Google has not said so, and nobody outside Google can show it. What Google does say is that local results depend on relevance, distance and prominence. A contact page with a correct name, address and phone number that match your Business Profile is a sensible part of that; the map itself is a convenience. What a local site does need is covered in what your website needs for local SEO, and why matching details matter is in name, address, phone: why consistent listings matter.

Where to put the map, and what goes beside it

One thing to weigh: an embedded map loads content from Google on your page, which adds a little loading time and, in some countries, has privacy and cookie-consent implications. If you use a consent banner, check how it treats the map, and check the rules where you are.

A map is not a reviews display

The small card on an embedded map may show your rating, but it does not show your reviews on your page. If that is what you want, you need a reviews widget, which is a separate thing; see how to show Google reviews on your website.

How Pinpraise helps

Pinpraise does not make maps. What it adds beside your map is a website widget, on the Free plan, that shows your latest Google reviews on your own site, kept up to date and with attribution, plus a WordPress plugin called "Pinpraise for Google Reviews". Together with the map, your contact page then shows where you are and what customers say. You can create a free account with no card.

Questions owners ask

Is embedding a Google Map free?

Yes. The embed code from the Share option in Google Maps is free to use on your site and needs no key. Charges apply only to Google's developer mapping products, which most small business sites do not need.

Can one map show all my branches?

The simple embed shows one place. For several pins you can make a custom map in Google's My Maps and embed that, or give each branch its own page and map, which is usually clearer for customers.

Will the embedded map update when I change my hours or address?

The map shows live data from Google, so changes to your listing appear in it once Google has published them. The address you typed as text on your page is yours to update by hand.