Iframe SEO
An iframe is an HTML element that embeds another web page or document inside the current page. For SEO, its content is often not treated as part of the parent page, limiting its indexing and ranking value.
- Also called
- inline frame
- Applies to
- technical SEO, HTML embedding
- Commonly confused with
- embed, object, web component
Key points
- Iframe content is not guaranteed to be indexed by search engines.
- Use iframes only for supplemental content like videos, maps, or social embeds.
- Include a descriptive title attribute and surrounding text for context.
- Lazy-load iframes to improve page performance.
- Avoid placing primary keyword-targeted content inside an iframe.
Why it matters
Iframes let you embed third-party content such as videos, maps, ads, or widgets without rewriting the source. However, search engines may not index the embedded content as part of your page, and even when they do, ranking signals rarely pass cleanly to the parent page. This makes iframes a poor choice for primary content you want to rank. Google's ability to crawl and index iframe content is not guaranteed, and the embedded page may be treated as a separate document, similar to how javascript seo handles dynamic content. If the iframe contains duplicate text from another source, it could create issues similar to duplicate content google. Performance also matters: multiple or heavy iframes can slow load times, especially on mobile.
Where it changes your decision
- When embedding a video or map: iframe is fine for supplemental content, but consider hosting critical media directly if you need it indexed.
- When placing primary content like product descriptions or articles: avoid iframes entirely, as the content may not be attributed to your page.
- When loading multiple iframes on one page: lazy-load below-the-fold embeds and test mobile performance to prevent slow page speeds.
Questions people ask
Embed vs iframe?
The embed element is used for non-HTML content like PDFs or Flash, while iframe embeds another HTML document. For SEO, iframe content is more likely to be crawled than embed content, but neither guarantees indexing. Use iframe for web pages and embed for media files.
Iframe vs web component?
A web component is a custom HTML element that encapsulates its own markup and logic, while an iframe loads an entirely separate document. Web components are part of the parent page's DOM and can be indexed normally, whereas iframes create a separate browsing context that may not pass SEO value. For content you want indexed, prefer web components.
Embed vs iframe for PDF?
For PDFs, the embed element is more common and widely supported, but iframe can also display a PDF if the browser supports it. Neither passes SEO value from the PDF content to the parent page. If you need the PDF text indexed, consider converting it to HTML or providing a text summary on the page.
Sources
- Google Search Central Primary source for Google’s guidance on crawlability, indexing, rendering, and page content practices relevant to iframe SEO.
- Google Search Central Help Useful for Google-specific webmaster guidance and SEO best practices.
- Search Engine Journal Well-known SEO publication with practical coverage of iframe SEO and accessibility considerations.
- SEOClarity Provides a clear practitioner-oriented explanation that iframes should be supplemental rather than primary content.
- Google PageSpeed Insights / Core Web Vitals documentation Relevant because iframes can affect load performance and user experience.