Meta Robots Tag Generator – Control Indexing and Search Previews
Use the Meta Robots Tag Generator above to create a correct robots meta tag without memorizing every directive. Choose whether a page should be indexed, decide how links and previews should be handled, set snippet limits if needed, then copy the generated HTML into your page.
A robots meta tag gives crawlers page-level instructions about indexing and search presentation, including noindex, nofollow, snippet restrictions, image previews, video previews and expiring pages. A wrong directive can remove an important page from search, so configure it deliberately.
What Is a Meta Robots Tag?
A meta robots tag is an HTML meta element that communicates indexing and serving directives to compatible search crawlers.
Example:
<meta name="robots" content="noindex, nofollow">
The tag is normally placed in the HTML <head>.
The name="robots" value applies the instructions to crawlers that support the robots meta tag.
You can also target supported crawler tokens in specific situations, such as googlebot.
Meta robots rules are different from robots.txt rules. Robots.txt mainly controls crawling. Meta robots directives can control indexing and how a crawled page is presented in search.
How to Use This Meta Robots Tag Generator
Start with the scenario that matches the page.
Choose normal indexing for an ordinary public page that should appear in search.
Choose a noindex scenario for a page that search engines can crawl but should not include in results.
Then configure optional snippet and preview controls.
The tool can generate directives such as:
- noindex
- nofollow
- nosnippet
- max-snippet
- max-image-preview
- max-video-preview
- noimageindex
- notranslate
- unavailable_after
Review the explanation before copying the result.
If the target is a PDF, image, document or another non-HTML resource, use the X-Robots-Tag Generator instead of an HTML meta tag.
Index vs Noindex
index means the page may be indexed.
noindex tells supporting search engines not to show the page in search results.
Example:
<meta name="robots" content="noindex">
You might use noindex for:
- Internal search-result pages
- Account or utility pages
- Certain thin system pages
- Duplicate pages that cannot be consolidated another way
- Temporary campaign pages after they are no longer useful in search
- Staging-like public pages that cannot be access-restricted
Do not use noindex on valuable pages you expect to rank.
Also do not place noindex on a page and then block that page in robots.txt before the crawler can read the tag. If the crawler cannot fetch the page, it may never see the noindex directive.
Follow vs Nofollow
nofollow tells supporting crawlers not to follow links on the page.
It does not mean the page itself is noindexed.
Example:
<meta name="robots" content="nofollow">
Most normal pages do not need page-wide nofollow. If only specific links need qualification, handle those links individually.
A common combination is:
noindex, nofollow
But do not apply that combination automatically. A noindexed page can still contain links that you may want crawlers to discover.
Choose each instruction based on the actual purpose of the page.
What Does nosnippet Do?
nosnippet tells Google not to show a text snippet or video preview for the page in search results.
A static image thumbnail may still be possible in some contexts.
This is a strong restriction.
Google also applies nosnippet to direct use of that page’s content as input for AI Overviews and AI Mode.
That makes nosnippet more significant than simply shortening a traditional blue-link description.
Use it only when you genuinely do not want content from the page presented as a search snippet.
What Is max-snippet?
max-snippet lets you set the maximum number of characters Google may use for a textual snippet.
Example:
max-snippet:160
Special values include:
0– equivalent to nosnippet-1– no explicit character limit; Google can choose an appropriate snippet length
Do not confuse max-snippet with your meta description length.
A meta description is a potential source for the search snippet. Google can also generate snippets from visible page content.
Max-snippet is an instruction about the amount of text that may be shown or directly used in supported search features.
What Is max-image-preview?
max-image-preview controls the maximum image preview size that may be shown for a page.
Supported values include:
- none
- standard
- large
Allowing large previews can be useful for content where strong imagery improves discovery, such as articles, recipes, travel pages or visual guides.
Choose a more restrictive value only when you have a reason to limit image previews.
This directive is about search presentation. It is not an image copyright or download-control system.
What Is max-video-preview?
max-video-preview limits the number of seconds that may be shown as a video preview.
A value of 0 can limit the result to a static image where permitted.
A value of -1 means there is no specified maximum.
This control is useful for pages where video content is important but you want to influence how much preview material can appear directly in search.
It does not prevent the video file itself from being accessed if it is otherwise public.
What Does noimageindex Do?
noimageindex tells Google not to index images on the page.
Use it carefully.
If your images are important for Google Images or visual discovery, applying this directive can work against that goal.
Also distinguish between preventing a specific page’s images from being indexed and controlling indexing for a standalone image resource.
For response-level control of non-HTML files, X-Robots-Tag may be the better tool.
What Is unavailable_after?
unavailable_after tells Google not to show a page in search results after a specified date and time.
It can be useful for content with a clear expiration point, such as:
- Job openings
- Limited-time offers
- Temporary event pages
- Registration pages
- Short-lived announcements
The date must be valid and correctly formatted.
Do not use unavailable_after simply because an article is old. Evergreen content can continue to rank and serve users for years.
This directive is for content that should stop appearing after a genuine deadline.
Meta Robots vs Robots.txt
These are not interchangeable.
Robots.txt answers a crawling question:
“May this crawler request this URL?”
Meta robots answers indexing and presentation questions after a crawler accesses the page:
“May this page appear in search, and how may its content be shown?”
If a page is blocked by robots.txt, a crawler may not be able to read the meta robots tag.
That is why blocking a page in robots.txt while also adding noindex can be counterproductive when your goal is deindexing.
Use the AI Crawler Robots.txt Generator for crawler-access rules and this tool for page-level indexing directives.
Meta Robots vs Canonical Tag
Canonical and noindex solve different problems. Use canonical for duplicate or very similar accessible URLs when you want to signal a preferred version. Use noindex when a page should not appear in search results.
Do not routinely noindex every duplicate page when canonicalization would better preserve the content relationship and consolidate signals.
The Canonical Tag Generator can help create the correct canonical element. For language and region variants, see the Hreflang Tag Generator.
Meta Robots vs X-Robots-Tag
Meta robots is embedded in HTML.
X-Robots-Tag is sent in an HTTP response header.
The header is especially useful for non-HTML resources such as:
- PDF files
- Images
- Video files
- Documents
- Generated downloads
Choose the mechanism that matches the resource you control.
Conflicting Robots Directives
When multiple supported robots rules conflict, Google generally applies the more restrictive outcome.
For example, if one instruction allows a snippet but another says nosnippet, the restrictive rule wins.
Conflicts can come from:
- Duplicate meta tags
- CMS settings
- SEO plugins
- Framework metadata
- HTTP X-Robots-Tag headers
- Template code
If a page behaves unexpectedly, inspect both the rendered HTML and HTTP headers.
Common Meta Robots Mistakes
The most damaging mistake is accidentally placing noindex on an important page.
Other common problems include blocking a noindexed page in robots.txt, using nofollow site-wide, setting conflicting directives, forgetting an old unavailable_after date and applying noimageindex to image-driven content.
Another mistake is using noindex instead of fixing canonicalization, faceted navigation or poor site architecture.
The tag should support a clear indexing strategy, not hide technical problems.