About the Google Maps Embed Code Generator
A map on a contact or location page helps customers find a shop, clinic, office or event venue. This Google Maps embed generator writes responsive iframe code for any address, business name or landmark, with your choice of zoom level and map or satellite view, and an optional API key for the official embed format. Paste the code into your website or CMS, and check the pin on a phone, since most visitors will look at it there. Adding the full address as text beside the map helps people who cannot load it.
Maps are responsive by default: the iframe fills the width of its container and keeps a 16:9, 4:3 or square shape on every screen. You can also set a fixed width and height in pixels. Lazy loading is included so the map only loads when it scrolls into view, which keeps pages fast, and the map language can be set for international sites.
The standard code works without an API key. If you prefer Google's official Maps Embed API, which offers more control and is used by many developers, enter your API key and the tool switches to that format. Preview the map on request, and use the directions link for buttons and emails. Nothing is uploaded.
To link to a YouTube video in the same page, use the YouTube embed code generator. For business details in search results, add LocalBusiness markup with the schema generator, and for contact links, the WhatsApp link generator.
How to use the Google Maps Embed Code Generator
- Enter the locationType an address, business name, landmark or coordinates.
- Choose the viewSet the zoom level and choose map or satellite view.
- Pick the sizeChoose a responsive shape or a fixed size in pixels.
- Copy the codeLoad the preview to check it, then copy the iframe into your page.
Google Maps Embed Code Generator features
- Any address, place name or coordinates
- Zoom from world to street level
- Map or satellite view
- Responsive 16:9, 4:3 or square, or fixed size
- Lazy loading for fast pages
- Map language setting
- Optional Maps Embed API key format
- Directions and open-in-maps links
Common uses
- Contact pages for shops, clinics and offices
- Event and wedding venue pages
- Real estate and rental listings
- Travel guides and itineraries
- School, club and community location pages
Embedding maps in practice: a clinic's contact page, directions links, landmarks in written directions, Plus Codes, consistent business details and faster pages
A map on a contact page helps customers find a business, and a directions link starts navigation with one tap. In Pakistan, where many addresses rely on landmarks, a map combined with clear written directions works far better than an address alone. This guide sets up a clinic's contact page and covers directions links, landmarks, Plus Codes, consistent business details, performance and accessibility.
A worked example: a clinic in Islamabad
A clinic's contact page embeds a map centred on its business listing, so the pin shows the clinic's name rather than a bare address. Below it, a Get directions button uses a link in the form https://www.google.com/maps/dir/?api=1&destination= followed by the encoded clinic name and area, which opens navigation on phones. The written address, phone number and opening hours appear as text beside the map.
Landmarks in written directions
Many Pakistani addresses are easiest to find by landmark: near a well-known chowk, opposite a bank, behind a petrol station. Adding a line of landmark-based directions, such as second floor above the pharmacy opposite the main market, helps visitors and riders who find maps confusing, and it is readable by people who cannot load the map at all.
Plus Codes for places without addresses
Locations without formal street addresses, such as new developments and rural areas, can be identified precisely with Plus Codes, short codes that map apps understand. Sharing a business's Plus Code alongside its address lets delivery riders and visitors navigate directly to the right spot.
Consistent business details
For local search, the business name, address and phone number on the website should match the business listing and other directories exactly. Embedding the map from the business listing, rather than a nearby address, reinforces that connection and avoids confusing customers with a pin in the wrong place.
Faster pages
Map embeds load substantial resources. Adding loading="lazy" to the iframe delays loading until the map is near the screen, and on pages where maps are secondary, a static image linking to the map opens it only for those who need it. Both approaches keep contact pages quick on mobile data.
Accessibility
Give the map iframe a title, such as Map showing clinic location, and never rely on the map alone for the address. Screen reader users and people on slow connections need the full address, directions and contact details as text.
Several branches
Businesses with several branches do best with a page per branch, each with its own map, address, phone and hours. One map crowded with pins is hard to use on phones, while separate pages also help each branch appear in local searches.
Keep details current
When a business moves or changes its hours, update the website, the business listing and the embedded map together. Outdated maps send customers to empty premises, an experience that costs far more than the few minutes needed to update everything at once.
Common mistakes
- Embedding a map pin at an address rather than the business listing.
- Showing a map without the address in text.
- Loading heavy maps immediately on every page.
- Leaving out landmark directions where addresses are vague.
Related tools
To describe the business for search engines, use Schema Markup Generator. To let visitors message you directly, try WhatsApp Link Generator, and to embed a video tour of the premises, YouTube Embed Code Generator.
Maps on phones
Embedded maps can trap scrolling on phones, when a visitor trying to scroll the page moves the map instead. Keeping the map at a modest height, with space around it, and providing a button that opens the full map app, gives a smoother experience on small screens.
Reviews on the business listing
The map embed shows the business listing, including reviews. Encouraging satisfied customers to leave reviews, and replying politely to all reviews, including critical ones, builds trust with people checking the listing before visiting.
Service areas
Businesses that deliver or visit customers, such as caterers or repair services, should list the areas they serve in text beside the map. A single pin does not show coverage, and customers outside the area save time by knowing in advance.
Seasonal and holiday hours
When opening hours change during Ramadan, public holidays or Eid, update the business listing and the website together. Customers checking either source then see the same hours, avoiding wasted journeys and frustrated calls.
Check the pin yourself
Open the embedded map and confirm the pin sits exactly on the entrance customers should use, not on the back of the building or a neighbouring plot. For larger sites such as hospitals or markets, mention which gate or entrance to use in the written directions.
Parking and transport notes
A sentence about parking, nearby bus or metro stops and ride-hailing drop-off points answers questions maps cannot. Visitors arriving for the first time appreciate knowing where to park or which stop to use before they set out.
Privacy
Embed code is generated in your browser. Your address is not sent anywhere or stored.
Frequently asked questions
How do I embed a Google map on my website?
Type the address or place name here, choose the zoom and size, and copy the iframe code into your page's HTML or an embed block in your website builder. The map appears with a pin at that location.
Do I need a Google Maps API key?
No for the standard code, which works without a key. If you want to use Google's official Maps Embed API, enter your key and the tool switches to that format. The Embed API is free to use but requires a Google Cloud project.
How do I make the map responsive?
Keep a responsive shape selected. The iframe then fills the width of its container and keeps its proportions on phones, tablets and desktops, without fixed pixel sizes that overflow small screens.
Can I show a business instead of an address?
Yes. Type the business name and city, such as Blue Bottle Coffee, Tokyo. Google finds the matching place, as in a normal Maps search. For an exact spot, use the full address or coordinates.
How do I add a directions link?
Copy the directions link shown below the code. It opens Google Maps with directions to your location, which works well as a button on your contact page or in confirmation emails.
Does an embedded map slow my page down?
Maps are fairly heavy, so the code includes lazy loading, which waits until the map is about to scroll into view. Place maps lower on the page when possible.
Is my address sent anywhere?
Not by this tool. The code is created in this page on your device. Google receives the address only when the map preview loads here or when visitors view the map on your site.
Can I embed a map with several locations?
A simple embed shows one place. For several pins, create a list or custom map in Google Maps, share it, and use its embed option, or use the Maps JavaScript API on your site for full control over markers.