Google Maps Embed Code Generator
Create a responsive Google Maps iframe for a place, a route or exact coordinates, and copy clean HTML.
Tip: paste a Google Maps link into the place box and the tool reads the coordinates for you.
How to use the Google Maps embed generator
Type a place, an address or two points for directions. The map preview and the iframe code update as you type.
- Choose a place, directions or exact coordinates.
- Set the zoom, map style and language.
- Pick a responsive map that fills its container, or a fixed size.
- Add a title for screen readers.
- Copy the embed code and paste it into your page.
Got a Google Maps link? Paste it into the place box. The tool reads the coordinates from it and switches to coordinates mode.
Do you need an API key?
No, not for a simple map. The default code uses Google’s standard embed address, which needs no key and no account.
Add a key if you want the official Maps Embed API. It lets you set the travel mode for directions and gives you the documented, supported format. Google offers the Embed API at no charge, but you need a Google Cloud project to create the key.
A key in an embed code is visible to anyone who views the page source. Restrict it to your own website in the Google Cloud console.
Responsive maps
A fixed-size iframe can spill off small screens. The responsive option sets the width to 100% and keeps the shape with the CSS aspect-ratio property.
Pick 16:9 for wide layouts, 4:3 for content columns, or square for sidebars. The map then fits any screen without extra CSS.
Make the map fast and accessible
- Lazy loading: the map loads only when a visitor scrolls near it. This keeps the rest of the page fast.
- Title: screen readers announce the iframe title, so describe what the map shows.
- Text address: always write your address on the page as well. Search engines and screen readers read text more reliably than a map.
Adding the map to your site
| Platform | Where to paste |
|---|---|
| WordPress | A Custom HTML block |
| Wix | Embed Code, then Embed HTML |
| Squarespace | A Code block |
| Shopify | A Custom Liquid section, or the HTML view of a page |
| Plain HTML | Anywhere in the body |
Need more than one pin?
A standard embed shows one place or one route. For several locations, build a map in Google My Maps, then use its Share and Embed option.
For a store locator with search, you need the Maps JavaScript API or a locator service. That is a bigger job than an embed.
Why this map generator is different
Many Google map generator for website tools add hidden credit links, force a fixed size or skip accessibility. This one writes clean code you fully own.
- Places, directions and exact coordinates.
- Code with or without an API key.
- Responsive sizing with aspect-ratio.
- Lazy loading, a screen reader title and a live preview.
It works as a Google Maps iframe generator and a Google map embed code generator. It is also a Google map HTML code generator.
Want the Google Maps generator iframe code to fit any screen? This Google Maps iframe generator responsive option handles it by default.
Some search for an iframe map generator, a Google iframe map generator or an iframe Google Maps generator. Others want a map embed code generator, an embed map generator or an embedded map generator. The code it writes covers them all.
Add a key and it becomes a Google Maps embed API generator. Copy map link makes it a Google Maps embed link generator too.
Think of it as a Google map generator for HTML, or a Google map generator HTML snippet tool. It is a Google embed map generator and a Google map iframe code generator.
In short, it is a Google Maps embed iframe generator that writes clean code in seconds.
To add your address as structured data too, use the Local Business Schema Generator.
Private by design
The Google Maps embed generator runs in your browser. Nothing you type or paste is sent to a server, and there is no sign-up.
Your last settings are saved on this device only. The tool is ready when you come back.
Frequently asked questions
How do I embed a Google Map on my website?
Type your address above, choose the size and copy the iframe code. Paste it into your page where the map should appear.
Do I need a Google Maps API key?
No, not for a basic map. Add a free Embed API key if you want the official format or a set travel mode.
How do I make the map responsive?
Choose Responsive. The code sets the width to 100% and keeps the shape with aspect-ratio.
Can I show several locations on one map?
Not with a standard embed. Create a map in Google My Maps and use its embed option.
Will the map slow my page down?
Lazy loading is on by default, so the map loads only when a visitor scrolls near it.
How do I embed a map in WordPress?
Add a Custom HTML block and paste the code.
Can I embed directions?
Yes. Choose Directions and enter a start and an end point.
Is this map generator free?
Yes. There is no sign-up, and the code has no hidden links.
Last reviewed 2026-11-30 · How we build and check our tools