Yes, Google can index content inside an iframe and may associate it with the page that embeds it. But iframe indexing isn't guaranteed, and the embedded page can also be indexed under its own URL.

That distinction matters when the content is important to your SEO. We recommend keeping essential copy in your page's own HTML so you don't have to rely on an iframe for visibility.

How iframe indexing works in Google

An iframe displays one webpage inside another. You might use one to add a YouTube video, a Google Maps location, or a third-party booking form to your website.

Think of it as a window into another page. Visitors see the content alongside yours, but the embedded content still comes from a separate URL.

In Google's December 2023 SEO Office Hours, Google explained that its systems generally try to associate an embedded page's content with the primary page. That doesn't guarantee the content will be indexed or help the primary page rank.

The page containing the iframe

The parent page is the page where you place the iframe. Google can crawl and index that page, including the text and other content in its own HTML.

Google may also associate content from the iframe with the parent. Still, we wouldn't put your main service description or product information exclusively inside an embed and assume Google will treat it as part of the page.

The iframe’s separate URL

The iframe loads content from a URL in its src attribute. That URL is a separate page, and Google may index it on its own if it can access it.

For example, a visitor who finds an indexed embedded page through Google could land on that URL rather than the page containing the iframe. Whether that works for your site depends on what the standalone page offers visitors.

Where to put content that matters for SEO

Iframes are useful, but their convenience shouldn't determine where your most important content lives. Start by deciding what each page needs to explain on its own.

Keep primary copy on the parent page

If you want a service page to rank for a particular topic, put the service details, headings, and relevant links in that page's HTML. The copy should answer the questions a visitor has after arriving from search.

A map or booking form can then support the page without carrying the entire message. This also gives you more control over your title, headings, and internal links.

Give standalone pages a purpose

If you control the iframe URL and want it indexed separately, make it useful as a standalone page. Give visitors enough context to understand where they are and what to do next.

Link to that page from relevant parts of your site when it belongs in your site's structure. Our SEO indexing guide covers other signals that help Google find and process important URLs.

How noindex and indexifembedded work

Sometimes you want Google to use an embedded page's content but don't want the iframe URL to appear as a standalone search result. If you control that page, Google offers a directive for this situation.

Add noindex and indexifembedded together to the embedded page. A robots meta tag can look like this:

<meta name="robots" content="noindex, indexifembedded">

According to Google's robots meta tag documentation, indexifembedded allows Google to index the content when it's embedded despite the noindex rule. It only works when paired with noindex, and it doesn't guarantee indexing.

Google needs to crawl the embedded URL to see these directives. Blocking that URL in robots.txt can prevent Google from reading them. If the iframe comes from a third party, you generally can't change its directives yourself.

How to check an iframe for indexing issues

Google Search Console can help you diagnose both the parent page and the embedded URL. Our guide to the URL Inspection Tool explains the reports in more detail.

Start with these steps:

  1. Inspect the parent URL in Search Console. Review its index status and any reported crawl or indexing problems.
  2. Run a live test and review the rendered HTML and screenshot. Look for the page's main content and whether the embed appears.
  3. Inspect the iframe's src URL separately if you control it. Review its indexing status, canonical selection, and any noindex directive.
  4. Review your robots rules and page response. Google needs access to the relevant URLs and resources to process them.
  5. Request indexing after fixing an issue, then monitor the URL in Search Console. A request doesn't guarantee indexing or a ranking.

A visible iframe in a screenshot doesn't prove Google indexed its contents with the parent page. Likewise, an indexed parent URL doesn't tell you exactly which embedded content Google associated with it.

Common iframe SEO mistakes to avoid

One common mistake is placing all useful copy inside an iframe while leaving the parent page with little context. Another is assuming the embedded URL can't appear in search on its own.

JavaScript can add another layer to the problem. If a script creates the iframe or loads important content, a rendering issue could affect what Google sees. Our guide to JavaScript rendering and SEO explains how to make script-dependent content easier to process.

Lastly, avoid using a canonical tag as a blanket fix for unrelated pages. Canonicals help indicate a preferred version of similar content; they aren't a substitute for deciding which pages should be indexable.

Give important content a clear home

Google can process iframe content, but you have more control when essential information lives directly on the page you want to rank. Use embeds to support the experience, and give each important URL a clear purpose.

Start with your highest-value pages. Review what's inside each iframe, then move any essential copy into the parent page's HTML where it can support visitors and search visibility.

We use cookies so you can have a great experience on our website. View more
Cookies settings
Accept
Decline
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Who we are

Our website address is: https://nkyseo.com.

Comments

When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection. An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year. If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser. When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed. If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website. These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue. For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where your data is sent

Visitor comments may be checked through an automated spam detection service.
Save settings
Cookies settings