Skip to content
SeoWiki

The SEO encyclopedia

Technical SEO

Iframe SEO

An iframe is an HTML element that embeds another web page or document inside the current page, usually for third-party content like videos, maps, ads, or widgets.

Beginner3 min readUpdated 2026-07-26Reviewed by Lucía Marín

Key takeaways

  • Iframes are for supplemental content, not primary page content.
  • Google may index iframe content, but it’s not guaranteed and often not attributed to the parent page.
  • Always use a title attribute and add unique text around the iframe.
  • Lazy-load iframes below the fold to improve Core Web Vitals.
  • Avoid embedding untrusted or low-quality third-party content.

Iframes are a common way to embed third-party content, but they come with specific SEO considerations.

Example

A travel blog embeds a Google Map showing a hotel location using an iframe. The map is supplemental — the blog’s main content (hotel description, reviews, tips) is in the page HTML. The iframe has a title="Map of Hotel X" attribute and is lazy-loaded below the fold.

When should I use this?

  • To embed videos (e.g., YouTube, Vimeo)
  • To display maps (e.g., Google Maps)
  • To include social media posts (e.g., Twitter, Instagram)
  • To show ads or widgets from third parties
  • To add interactive tools (e.g., calculators, quizzes) that you don’t host yourself

What it is not

  • Not a method to hide primary content from search engines — iframes are not a cloaking technique.
  • Not a replacement for writing unique, indexable content in your page HTML.
  • Not guaranteed to pass SEO value (links, text) to the parent page.
  • Not suitable for critical page content like headings, product descriptions, or main calls-to-action.

Quick start

  1. Identify the embed URL from the third-party service (e.g., YouTube share > Embed).
  2. Add the iframe tag with src="URL".
  3. Include a descriptive title attribute (e.g., title="Product demo video").
  4. Add unique surrounding text on the parent page to give context.
  5. Set loading="lazy" for iframes below the fold to improve initial load.
  6. Test with Google Search Console’s URL Inspection tool to see if the iframe content is indexed.

Common mistakes

  • ❌ Putting primary or keyword-targeted content only inside the iframe instead of in the page HTML.
  • ❌ Embedding low-quality, irrelevant, or untrusted third-party content.
  • ❌ Skipping the title attribute, surrounding text, and accessibility context.
  • ❌ Ignoring page speed and mobile performance when loading multiple or heavy iframes.

Next step

FAQ

Does Google index iframe content?

Google can index iframe content, but it is not guaranteed. The embedded page must be crawlable and may not be attributed to the parent page.

Are iframes bad for SEO?

Iframes are not inherently bad, but they should not be used for primary content you want to rank. They are best for supplemental content like videos or maps.

What is the difference between embed and iframe?

The embed element is used for plugins like PDFs or Flash, while iframe embeds an entire HTML document. Iframe is more flexible and commonly used for web content.

Related topics

Sources

Reviewed by Lucía Marín, Founding editor.