Skip to content

Iframe SEO: Does Google Index What You Embed?

Google can index the content of an iframe, and it usually tries to fold that content into the page that embeds it, but it doesn't promise to. Good iframe SEO follows from that: embed videos, maps, forms and chat widgets freely, and keep the text, reviews and prices you need to rank in the page's own HTML.

By , founder of Slibur

13 min read

Iframe SEO: Does Google Index What You Embed?
In this article

AI assistants add a newer reason to keep that text out of frames. Most AI crawlers read a page's HTML without running scripts, and that HTML holds the frame's address, not its text.

What Google has said about iframes, and when

Search Central has no current page dedicated to iframes, and Google's old help article on frames is no longer online. Today's guidance is spread across an office-hours answer, the robots meta tag specification, the video documentation and comments from John Mueller.

The most direct statement is in the December 2023 SEO office hours (opens in a new tab), a page last updated December 18, 2023. Asked how to make an iframe's content count for the page using it, Google said its systems "would try to associate the sub-page's content as a part of the primary page", and added that this isn't guaranteed, because both pages are normal HTML pages on their own.

WhenWhereWhat it says
July 2017Google Webmaster Hangout, reported by Search Engine RoundtableYou can't make sure the iframe URL gets the credit instead of the page that embeds it, and Google may index the embedding page too
January 21, 2022Search Central blogNew indexifembedded rule: a page marked noindex can still be indexed when another page embeds it
July 22, 2022John Mueller on TwitterA noindex inside an embedded iframe doesn't remove the parent page from the index
April 2023Mueller on Reddit, reported by Search Engine JournalGoogle tries to include iframed content in the indexed page if it's allowed, but he would put the content in the page directly
December 2023SEO office hoursGoogle tries to treat the embedded page's content as part of the main page, with no guarantee
December 2025Video documentation, last updateGoogle can find videos referenced by a video, embed, iframe or object element
March 24, 2026Robots meta tag specification, last updateindexifembedded only has an effect when it comes with noindex

Search Engine Journal's report on the Reddit thread (opens in a new tab) quotes Mueller saying Google "does try to crawl iframed content and include it in the indexed page, if it's allowed." Comments from 2017 to 2023 point the same way. Google can see inside frames, it decides which URL gets the credit, and it would rather you didn't keep important content inside one.

How Google decides who gets the credit

An iframe is two pages. MDN's iframe reference (opens in a new tab) describes the element as a nested browsing context that embeds another document into the current one, and each embedded context has its own document. The parent page holds an iframe element with a src address. The content lives at that address, which Google can crawl and index like any other URL.

When Google renders the parent page, it can pull the framed content into it. Bastian Grimm of Peak Ace tested this and published the results in Search Engine Land on September 30, 2022: in some instances, a parent URL could rank for text that existed only in the iframed URL. Whether the framed page sat on the same domain, a subdomain or another site made no difference.

Three things stopped it in those tests. A robots noindex meta tag on the iframed URL, an X-Robots-Tag noindex header, or a robots.txt rule blocking the framed URL each kept the parent from ranking for that content. Third-party widgets follow the same rules. If a vendor marks its widget URLs noindex or blocks them in robots.txt, your page gains nothing in Google from what you embedded. Robots.txt also decides which AI crawlers may fetch your own pages, and the free AI crawler checker lists the ones your file lets in.

Then comes the part Google won't promise. The framed page is a normal URL, so it can also be indexed on its own and shown for the same text. Asked in 2017 how to make sure the iframe URL got the credit instead of the page embedding it, Mueller's short answer was that you can't.

Two practical readings follow:

  • Content you embed from someone else may help your page in Google, but the source URL competes for it, and its owner decides whether it's indexable at all.
  • Content you want credited to your page belongs in your page's HTML.

noindex plus indexifembedded

If you publish content meant to be embedded, such as a podcast player, a calculator or a video page, and you want it indexed only inside the pages that embed it, Google has a specific rule. Its robots meta tag specification (opens in a new tab), last updated March 24, 2026, says indexifembedded lets Google index a page's content when it's embedded through iframes or similar tags, in spite of a noindex rule. Put both values in the robots meta tag of the embeddable page, or send them as a header:

X-Robots-Tag: googlebot:noindex,indexifembedded

When Google announced the rule on January 21, 2022, it said only Google supported it. Don't count on other search engines or AI crawlers reading it.

A noindex on its own works differently. It keeps the framed content out of Google, parent page included, as Grimm's tests showed. The parent page itself stays indexed: Mueller confirmed in July 2022 that embedding a noindex iframe doesn't remove the page that embeds it.

Stopping other sites from framing your pages

If you don't want your pages indexed as part of someone else's, block the embedding. The office-hours answer points to x-frame-options. MDN describes the frame-ancestors directive of a Content-Security-Policy header as the more complete option, and notes that X-Frame-Options set in a meta tag has no effect. Both belong in the server's response:

Content-Security-Policy: frame-ancestors 'self'
X-Frame-Options: SAMEORIGIN

Which embeds belong in an iframe, and which don't

A simple test covers most cases. An iframe is fine when what you embed is a tool or a player. It's a problem when it carries the words, numbers or opinions the page is supposed to rank for.

EmbedIn an iframe?What to keep in the page HTML
YouTube or Vimeo videoYesTitle, summary and transcript
Google MapYesAddress, hours, phone and service area as text
Booking, contact or payment formYesA line on what the form does, plus a phone number or link as a fallback
Chat or support widgetYesAnswers to the common questions, as normal text
Podcast or audio playerYesEpisode title, summary and transcript
AdsYesNothing: ads aren't your content
PDF viewerYes, with a linkA plain link to the PDF next to the frame
Main article text or product descriptionNoAll of it
Customer reviews widgetNot as the only copyExcerpts of genuine reviews and the rating
Pricing tableNoPlan names, prices and billing terms

Video is the clearest yes. Google's video documentation says it can find videos referenced by an iframe, and the YouTube SEO guide covers the markup for an embedded YouTube video and Google's watch-page rule. A map shows where you are, but the address written as text is what every crawler reads; local SEO covers the rest of that work. For PDFs, MDN notes that an iframe showing one has no fallback if the PDF can't display, and recommends a link outside the frame.

Reviews and prices: the costly mistakes

Review widgets are a common case of content that should help a page but sits in a frame. Google's review snippet guidelines, last updated September 8, 2026, are blunt: "Don't aggregate reviews or ratings from other websites." A widget pulling ratings from a review platform won't earn stars, framed or not. Genuine reviews of your own products, shown as text on the product page, can qualify. What qualifies is covered in user-generated content and SEO.

Prices follow the same logic with higher stakes. When someone asks an AI assistant to compare plans, a price inside a frame or loaded by a script isn't in the HTML most AI crawlers read. Write plan names, prices and billing terms into the page. Keep the iframe for the calculator, the configurator or the checkout.

The attributes that matter: title, loading and size

Most iframe attributes, like sandbox and allow, deal with security and permissions. Three affect how the page is read and how fast it loads.

The title attribute is for screen readers

MDN says people using assistive technology such as a screen reader can use the title attribute to label an iframe's content. Without it, they have to move into the frame to find out what it is, which gets confusing on pages with several embeds. WCAG lists the same practice as technique H64. Google doesn't document the iframe title as a ranking factor, so write it as a short description of the content, like title="Map of our Denver office", and skip the keywords.

Some guides recommend adding a description attribute next to it. MDN's reference for the element lists no such attribute, so keep the description in the title or in the text around the frame. The wider overlap between accessibility work and search is covered in accessibility and SEO.

loading="lazy" speeds pages up without hiding content

With loading="lazy", the browser waits until the user scrolls near an iframe before loading it. The web.dev guide by Addy Osmani and Barry Pollard, last updated September 23, 2024, reports that lazy-loading YouTube embeds saves around 500KB on the initial page load and that Chrome.com cut its Time to Interactive by 10 seconds that way. For Spotify embeds, the guide puts the saving at 514 KB. Chrome's research on doing it automatically found 2 to 3% median data savings.

For Google, the built-in attribute is safe. Its guide to lazy-loaded content, last updated December 10, 2025, lists browser built-in lazy-loading for images and iframes among the methods that load content when it becomes visible, without depending on a scroll or a click. It also warns against lazy-loading anything likely to be visible as soon as the page opens. Use loading="lazy" on frames below the fold and leave it off a hero video at the top.

Click-to-load players and size

Some sites replace the video player with a thumbnail that loads the real iframe only on click. Google's lazy-loading guide says Google Search doesn't interact with your page. Its URL Inspection help lists "Cannot determine video position and size" as a video indexing problem when the player isn't present at load and an image of it must be clicked to start playback. The fix it gives is to load the player at its actual size when the page loads. On pages where you want the video indexed, prefer loading="lazy" to a click-to-load facade.

Give every frame width and height attributes, or a CSS aspect ratio, so the layout doesn't jump while the embed loads.

How to check an iframe in Search Console

URL Inspection shows what Google got from a page, and the iframe's own URL can be inspected too. Google's URL Inspection help (opens in a new tab) explains each panel. Run these checks on one page of each template that uses embeds:

  1. Inspect the parent page, click Test live URL, then View tested page and open the Screenshot tab. If the embed is missing from the screenshot, Google's renderer didn't get it. Screenshots exist only in a live test.
  2. In the same panel, open More info to see the page resources Google loaded and the JavaScript console. Look for the iframe's address and for errors from the widget's script.
  3. Inspect the iframe's own URL if it's on a property you own. The "Indexing allowed?" line reports noindex, and with indexifembedded next to it, Google says the page will be indexed only when it's embedded. If robots.txt blocks the URL, the tool shows indexing as allowed, because Google can't see the noindex.
  4. Search Google for an exact sentence from the framed content, in quotation marks, and note which URL appears: yours, the source's, both or neither.

Repeat the live test after a change, then request indexing.

Can AI crawlers read what's inside an iframe?

Mostly not. Looking at crawler requests across Vercel's network, Vercel and MERJ concluded on December 17, 2024 that "none of the major AI crawlers currently render JavaScript." Iframes are an even simpler case. A crawler that reads the HTML response gets the iframe element and its src address, not the framed text. It may fetch that address as a separate page if robots.txt allows it, and then the text counts for the source URL, not for yours.

When an embed holds something worth quoting, put a one-line summary and a plain link to the source next to it, so the page's own HTML says what the frame contains.

Script-injected embeds leave even less. The web.dev guide notes that Instagram embeds ship a block of markup plus a script that injects the iframe, so the raw HTML holds a placeholder and a script, with no frame at all. Other embeds can work the same way, so view the page source before assuming a crawler sees anything. How rendering differs between Google and AI crawlers is covered in JavaScript SEO.

Google's own AI features are a separate case. Google's documentation on AI features says a page must be indexed and eligible to show with a snippet to appear as a supporting link in AI Overviews or AI Mode, with no extra technical requirements. Whatever Google indexes as part of your page is what those features can work from. Other assistants depend on what their own crawlers can read.

The AI crawler checker mentioned earlier covers access: whether robots.txt lets GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in. It doesn't show what each bot extracts from a page. For that, the free AEO checker takes one page address and tells you whether answer engines can reach it, read it and quote a direct answer from it.

Slibur dataChatGPT, United States, 4 answers, November 21, 2026

What ChatGPT says about iframes and SEO

We asked ChatGPT four questions on November 21, 2026, from the United States: whether Google indexes content inside an iframe, whether iframes are bad for SEO, whether reviews and pricing tables should go in an iframe or in the page HTML, and whether ChatGPT and other AI crawlers can read iframe content.

One rule ran through all four answers. Each one said, in different words, that content you want ranked shouldn't live only in an iframe. The reviews answer put it as "don't hide the only copy inside an iframe."

Google's own pages supplied almost all the evidence. Three answers cited sources; the one about whether iframes are bad for SEO cited none. Of the seven citations, six were on Google domains: four Search Central documentation pages, an office-hours transcript and one community thread. The seventh was OpenAI's crawler documentation. No SEO blog, agency guide or tool vendor appeared.

Websites ChatGPT cited most in its answers about iframe SEO (November 21, 2026)

Websites ChatGPT cited as sources

  1. developers.google.com2 of 4 answers
  2. developers.openai.com1 of 4 answers
  3. support.google.com1 of 4 answers
Source: Slibur, ChatGPT answers from the United States, November 21, 2026.

The gaps were in the details. Two of the four answers mentioned noindex with indexifembedded. Only the answer on whether iframes are bad mentioned the title attribute and lazy-loading, and none mentioned URL Inspection. That same answer said links inside an iframe usually don't pass the same SEO value to the parent page, with no source, and none of the Google pages cited above make that claim.

On AI crawlers, ChatGPT said it can read iframe content sometimes, but not reliably, and explained that a basic crawler may see the iframe element and its src without the text, which matches the mechanics above. Its citation for indexifembedded was a Google community thread about where to get schema advice, not the robots meta tag specification where Google documents the rule.

The main rule was right in all four answers. What a reader wouldn't get from them is a way to check their own page, which is what the URL Inspection steps above are for.

Iframe SEO checklist

  • Keep the text, reviews and prices you want to rank in the page HTML, not only in a frame.
  • Use iframes for players, maps, forms, chat and checkout.
  • Next to an embed people need to understand, add a one-line summary and a plain link to its source.
  • Write a short title that describes each frame's content.
  • Add loading="lazy" to frames below the fold, and leave it off anything visible at load.
  • Load video players at their real size instead of behind a click.
  • Set width and height or an aspect ratio on every frame.
  • For content you syndicate by embed, pair noindex with indexifembedded.
  • To stop other sites framing your pages, send frame-ancestors or X-Frame-Options from the server.
  • Check the screenshot and page resources in URL Inspection, then inspect the frame's own URL.

Do AI answers name you once the text is out of the frame?

Moving reviews, prices and product text into the page HTML gives every crawler the words your visitors see. It doesn't tell you whether an assistant uses them. When a buyer asks ChatGPT to compare options in your category, the answer may draw on your pricing page, a review platform's page about you or a competitor's comparison.

Slibur shows you which. It asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask, and reports which brands each answer names, where yours appears and which websites it cites, so you can see whether your own pages are among them. Paid plans repeat the ChatGPT and AI Overviews checks daily and the other three weekly. You can try it free for 7 days without a credit card.

Frequently asked questions

Does Google index content inside an iframe?

Often, but without a guarantee. Google says its systems try to associate an embedded page's content with the page that embeds it, but both are normal pages, so the content can also be indexed under the iframe's own URL. A noindex on the framed URL keeps its content out of both, unless that URL also carries indexifembedded.

Are iframes bad for SEO?

Not by themselves. An iframe becomes a problem when it holds the content the page should rank for, when it loads heavy third-party code at the top of the page, or when it has no title for screen reader users. Videos, maps, booking forms and chat widgets in iframes are normal and fine.

Should my reviews widget be in an iframe?

Keep the widget if your visitors like it, but don't let it be the only copy. Show excerpts of genuine reviews and your rating as text in the page. Google's review snippet guidelines say not to aggregate reviews or ratings from other websites, so a third-party widget won't earn review stars either way.

Does the iframe title attribute help SEO?

Its job is accessibility: screen reader users rely on it to know what a frame contains before moving into it. Google doesn't document it as a ranking factor. Write a short description of the content, such as "Map of our Denver office", rather than a string of keywords.

Does loading="lazy" stop Google from seeing an iframe?

Not when you use the browser's built-in attribute. Google's guidance on lazy-loaded content lists built-in lazy-loading for images and iframes as a method that loads content when it becomes visible, without a click. Leave it off frames that are visible as soon as the page opens, and avoid players that only load when clicked.

How do I stop other sites from embedding my pages?

Send a Content-Security-Policy header with the frame-ancestors directive, or the older X-Frame-Options header, from your server. Both must be HTTP headers: X-Frame-Options set in a meta tag has no effect. Google's office hours named x-frame-options as the way to keep a page from being indexed as part of another page.

Can ChatGPT read content inside an iframe?

Not reliably. Like most AI crawlers, its crawlers read a page's HTML without running scripts, and an iframe's text isn't in that HTML, only the frame's address. They may fetch that address separately if robots.txt allows it, but the text then belongs to that URL. Put anything you want quoted in the page itself.

Are iframes considered cloaking?

Not by themselves. Google's spam policies define cloaking as presenting different content to users and search engines to manipulate rankings, and a frame shows the same embed to both. The same policies describe hacked sites where malicious code is injected into iframes, so a frame on your site that nobody on your team added should be checked right away.

About the author

Founder of Slibur

Raúl Díaz is the founder of Slibur, the tool that asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask and shows which brands they recommend. He writes about answer engine optimization from the data Slibur collects.

  • AI crawlers

    AMP SEO in 2026: What Google Changed and When to Remove AMP

    AMP SEO means getting AMP pages, the restricted HTML format Google launched in 2015 for fast mobile pages, indexed and ranked. AMP is no longer a ranking edge: Top Stories has accepted non-AMP pages since June 2021, and since July 1, 2026 Google links to your own AMP URLs, not its cache. Keep AMP only where it still pays.

    11 min read

  • AI crawlers

    Best Website Builder for SEO: What Google Reads on 6 Platforms

    There is no single best website builder for SEO, because every platform trades control for convenience in different places. Self-hosted WordPress and a headless CMS let you change everything Google reads, and Webflow comes close without plugins. Wix, Squarespace and Shopify serve crawlable HTML and automatic sitemaps, and give ground mostly on fixed files and URL patterns.

    12 min read

  • AI crawlers

    PWA SEO: What Google and AI Crawlers See in a Progressive Web App

    Yes. A progressive web app can rank like any other site, because Google treats it as a website that also ships a manifest and a service worker. PWA SEO is mostly about what works without those two files: every view needs its own URL that returns real HTML, and nothing you want indexed can depend on the service worker.

    12 min read