🗺️ Get the Correct Google Maps Embed Code

Camilo Aponte

Camilo Aponte

Last updated on Sep 30, 2026

🔍 Overview

If you need to embed a Google Map for your business location, you must use the official iframe code generated directly from Google Maps. A common mistake is using a shortened URL or the address link from your browser — these will not work as embed code. This article walks you through getting the correct format step by step.

📋 What the Correct Embed Code Looks Like

The correct Google Maps embed code is an iframe element. It will always follow this structure:

<iframe src="https://www.google.com/maps/embed?pb=..." width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade">``</iframe>

  • It starts with <iframe — not a plain URL or a short link.
  • The src attribute begins with https://www.google.com/maps/embed?pb=
  • It ends with a closing ></iframe> tag.

If your code does not match this pattern, it is likely incorrect and will not render on the page.

🗂️ How to Get the Embed Code from Google Maps

  1. Open Google Maps at maps.google.com in your browser.
  2. Search for your business name or address in the search bar.
  3. Click on your business listing to open its information panel.
  4. Look for the option to share or embed the map — Google Maps provides a way to generate an iframe embed code from within the sharing options.
  5. Select the embed option (not the plain link option) to generate the full iframe code.
  6. Copy the complete iframe code that is displayed.

You now have the correct iframe code ready to paste wherever it is needed.

✅ How to Verify the Code Is Correct

Before using the code, do a quick check:

  • Confirm the code starts with <iframe.
  • Confirm the src value contains maps/embed?pb=.
  • Confirm the code ends with </iframe>.
  • Do not use a plain share link — that is a share URL, not an embed code.
  • Do not copy the URL from your browser address bar while viewing the map.

📍 Alternative: Get the Embed Code via Google Business Profile

If you manage your listing through Google Business Profile (GBP), you can also obtain the correct iframe embed code for your business location. The recommended approach is to search for your business directly on maps.google.com (as described above) and use the embed flow to generate the iframe code. This ensures you get the properly formatted code regardless of which Google product you use to manage your listing.

If you are unsure whether your code is formatted correctly, compare it against the iframe structure shown in the section above before pasting it into Search Atlas.

If you need further assistance, open the chat widget in the bottom-right corner of the platform and type human teammate to be connected with a member of our team.