Free Online Tool

Free Google Maps
Embed Code Generator

Embed Google Maps on any website. Search locations, customize your map, and generate responsive HTML iframe code instantly.

✓ Free to use✓ No signup required✓ No API key needed

Type any address, city, landmark, or business name.

WorldStreetBuilding
px
Advanced Options

Fits the iframe to a responsive aspect-ratio container.

Preview
Open in Maps
600px × 450pxSimulated: full width
Embed Code

Your Google Map code

Copy and paste this code into the HTML of the page where you want to display the map.

<div class="mapouter">
  <div class="gmap_canvas">
    <iframe
      class="gmap_iframe"
      frameborder="0"
      scrolling="no"
      marginheight="0"
      marginwidth="0"
      src="https://maps.google.com/maps?q=New+York+City%2C+NY%2C+USA&z=7&output=embed"
      title="Google Maps"
      referrerpolicy="strict-origin-when-cross-origin"
      allowfullscreen=""
      loading="lazy"
    ></iframe>
    <a href="https://map-embed-code.com/">map-embed-code.com</a>
  </div>
  <style>
    .mapouter{position:relative;text-align:right;width:100%;aspect-ratio:600/450;}
    .gmap_canvas{overflow:hidden;background:none!important;width:100%;height:100%;}
    .gmap_iframe{display:block;width:100%!important;height:100%!important;}
  </style>
</div>
How It Works

Generate a map embed in seconds

01

Enter Your Location

Search any address, city, landmark, or business, or enter exact latitude and longitude.

02

Customize Your Map

Choose roadmap or satellite view, adjust zoom and dimensions, and keep responsive mode enabled for mobile.

03

Copy Your Embed Code

Generate the HTML iframe, copy it, and paste it into your website, CMS, or page builder.

Features

Everything you need to embed Google Maps

Instant Live Preview

See your Google Map update in real time as you type an address or change settings. No preview button required.

Responsive Embeds

Generate iframe code that adapts to every screen size, with a mobile-friendly responsive wrapper enabled by default.

Precise Coordinates

Enter exact latitude and longitude for remote, unnamed, or precisely positioned locations.

Custom Dimensions

Choose a preset or enter any custom width and height in pixels or percent.

Roadmap & Satellite

Switch between roadmap and satellite imagery without an API key or Google Cloud account.

No API Key Required

Create and embed Google Maps for free, with no billing setup or API key management.

Google Maps embedding guide

Google Map Embed Code: A Complete Guide for Websites

Use this Google Map embed generator to turn an address, GPS coordinates, directions, or a public Google My Map into responsive iframe code. The generated map can be added to an HTML website, WordPress, Shopify, Wix, Webflow, Squarespace, and most other platforms that accept custom HTML.

What is Google Map embed code?

Google Map embed code is an HTML <iframe> that displays an interactive map inside a web page. Visitors can pan, zoom, open place details, and explore the surrounding area without leaving your website. A map iframe is commonly used on contact pages, store locators, property listings, event pages, travel guides, and local service websites.

An embeddable Google Map is different from a static image. The iframe loads a live map, while the surrounding page remains under your control. This makes it a practical Google Map widget for a website that needs clear location information without custom JavaScript.

How to use the Google Map embed code generator

The generator above creates the iframe and its responsive wrapper for you. It works as a Google Maps iframe generator and live preview, so you can check the location before copying any code.

  1. Choose a location mode. Search by address or place name, enter exact latitude and longitude, or select My Maps for a custom map.
  2. Adjust the map. Choose roadmap or satellite view, set the zoom distance, and select the required dimensions.
  3. Preview the result. Confirm that the correct address, marker, route, or custom map appears.
  4. Generate the code. Select Generate Code, copy the HTML, and paste it into the page where the map should appear.
Google Map embed generator showing Columbia University with a live preview and Generate Code button
Enter the location, adjust the map, confirm the preview, and select “Generate Code.”
Generated Google Map iframe code popup with the Copy Code button
Review the generated iframe HTML and select “Copy Code.”

This workflow can add a Google address map to a website in a few minutes. For a single business or venue, enter its complete address to add a Google Map to the website with a marker. Exact coordinates are useful when an address is incomplete, newly created, or located in a large site such as a park or university campus.

<div class="mapouter">
  <div class="gmap_canvas">
    <iframe
      class="gmap_iframe"
      src="https://maps.google.com/maps?q=New+York&z=7&output=embed"
      loading="lazy"
      allowfullscreen
    ></iframe>
  </div>
</div>

The generated HTML also includes the required CSS class rules. You can therefore use it as a Google Map generator for a website without writing the iframe or sizing styles manually.

Responsive and full-width Google Map embeds

A fixed-width iframe can overflow on a phone. A responsive Google Map embed uses a wrapper that follows the available width while preserving the selected map ratio. Responsive mode is enabled by default, making the iframe suitable for narrow mobile layouts and wider desktop content areas.

For a full-width Google Map embed, choose a percentage width or let the responsive wrapper use width:100%. The map then fills its parent section rather than the entire browser window. If it still looks narrow, check whether your theme places the embed inside a limited-width column.

Recommended setup: use 100% width, select a height that suits the page, keep lazy loading enabled, and preview the result at phone width before publishing.
Desktop preview of a responsive Google Map embed with responsive mode enabled
Desktop preview: check the selected width, height, and visible map area.
Mobile preview of a responsive Google Map embed fitting a narrow screen
Mobile preview: responsive mode keeps the iframe inside the available screen width.

Google Map Embed API versus an iframe without an API key

Basic location maps generated on this page use an iframe URL and can be embedded in HTML without an API key. You do not need to create a Google Cloud project or add billing information for this generator's standard address, coordinate, and public My Maps embeds.

The official Google Maps Embed API is a separate Google Cloud product. Its documented URLs include an API key and support defined modes such as place, view, directions, street view, and search. The Maps JavaScript API is another option for advanced application features such as programmatic markers, custom controls, event handling, and data-driven interactions.

MethodBest forAPI key
Generated iframeAddresses, coordinates, responsive maps, and public My MapsNot required
Maps Embed APIDocumented Google Cloud embed modesRequired
Maps JavaScript APICustom interactive applications and advanced marker behaviorRequired

For a contact page or a straightforward location section, a Google Map embed without an API key is usually the simpler choice. Choose an API product when the project needs behavior that a normal iframe cannot provide.

Embed directions, a marker, or a map with multiple locations

To embed directions in Google Maps, enable Directions mode, enter the starting point and destination, and confirm the route in the preview. This is useful for hotels, offices, event venues, clinics, and any page that needs to show how to reach a destination.

A standard address search adds one Google Map marker. To add a Google Map to a website with multiple locations, first create a public map in Google My Maps. Add and style each place there, choose Embed on my site, and paste the iframe or embed URL into the generator's My Maps tab. The resulting Google Map embed can display multiple markers while remaining responsive.

Multiple markers and multi-stop directions serve different purposes. Markers show independent branches, properties, or venues. Directions connect locations in travel order. For a detailed marker workflow, read how to embed a Google Map with multiple locations.

Embed Google Maps in a website, WordPress, or a page builder

The generated code works anywhere custom iframe HTML is allowed. In a plain website, paste it inside the page's <body>. In visual site builders, use an HTML, embed, code, or custom-liquid element rather than a normal text block.

  • WordPress: use a Custom HTML block or widget. Follow the Google Map embed WordPress guide.
  • Shopify: paste the code into a Custom Liquid section or an HTML-capable page area. See the Shopify guide.
  • Wix and Squarespace: use the platform's HTML embed or code block.
  • Webflow: add an Embed component and paste the complete generated code.
  • Dreamweaver: switch to Code view and place the iframe where it should appear inside the document body.

If a platform removes the iframe after saving, confirm that the account role is allowed to publish custom HTML. Some hosted editors restrict iframe code for contributors while allowing it for administrators.

Google Map iframe performance and accessibility tips

  • Keep loading="lazy" enabled so the browser can delay an off-screen map.
  • Use a clear iframe title so screen-reader users know what location the map represents.
  • Place the street address, phone number, and opening hours in normal page text near the map.
  • Check the map on mobile and make sure it does not block scrolling or overflow its container.
  • Use exact coordinates when Google selects the wrong place for an ambiguous address.

These steps keep the Google Map widget useful even when a visitor cannot interact with the map itself, and they make the surrounding location information easier for search engines and assistive technology to understand.

FAQ

Google Maps embedding questions

How to embed a Google Map?

Enter an address, place name, or coordinates in the generator above. Adjust the map type, zoom, width, and height, then select Generate Code. Copy the complete HTML and paste it into an HTML or embed block on your website. Keep responsive mode enabled so the map fits mobile screens.

How to embed Google Map in WordPress?

Generate the map code, open the WordPress page or post, and add a Custom HTML block in the Block Editor. Paste the complete code into that block and preview the page before publishing. The same code can be placed in a Custom HTML widget where the theme supports widgets. Our WordPress guide includes the full process.

Read the WordPress guide →
How to embed Google Map in email?

Most email clients remove or block iframe elements, so a live interactive Google Map is not reliable inside an email. Use a map screenshot or a clearly labeled button and link it to the location or directions in Google Maps. Add the street address as normal text so recipients can still copy it.

How to create a Google Maps custom map embed link?

Create the map in Google My Maps, add and style the required locations, and allow visitors with the link to view it. Open the map menu, choose Embed on my site, and copy the iframe. You can paste either that iframe or its Google My Maps embed URL into the My Maps tab of this generator.

How to embed a Google Map with multiple locations?

Create a public Google My Map and add every location as a marker. Choose Embed on my site, copy the iframe, then paste it into the generator's My Maps tab to create responsive code. Multiple markers represent independent locations; they do not automatically create a route.

View the multiple-locations guide →
How to embed a Google Map with saved places?

Personal Saved lists in Google Maps are intended for use inside Google Maps and do not provide the same website iframe workflow as My Maps. Recreate or import the places into Google My Maps, set the map's viewing access, and use Embed on my site. Paste that iframe into the My Maps tab here.

How to embed a Google Map in Word?

Microsoft Word documents do not reliably render a live Google Maps iframe. Insert a screenshot of the map, select the image, and add a hyperlink to the Google Maps location or directions. If you meant WordPress, use a Custom HTML block and paste the generated iframe code there.

How to embed a Google Map in Dreamweaver?

Generate the iframe, open the target HTML page in Dreamweaver, and switch to Code or Split view. Paste the complete generated code inside the body element where the map should appear. Save the file and use Live View or a browser preview to check the responsive width.

How to embed Google Map in HTML without an API key?

Use the address or coordinate mode in this generator, preview the map, and copy the generated iframe HTML. Paste it inside the body of your HTML document. This basic iframe method does not require a Google Cloud project, billing account, or API key. Advanced Google Maps API products are separate and require their own setup.