In search results, the snippet is the line or two of text under a page's title link. It previews what the page says about the search, so the searcher can decide whether to click. You don't write it directly: Google picks the text, mostly from the page itself and sometimes from its meta description, and you can limit or block it with robots rules (Google Search Central).
The other parts of a result work the same way. Google generates the title link from the page's <title> element, its main heading, og:title, other prominent text and links pointing to the page (Google Search Central). You supply the material; Google decides what to show.
How Google picks the snippet text
Google chooses the part of the page that best matches each search. As a result, the same page can show different snippets for different queries. Google uses the meta description instead when it describes the page more accurately than text taken from the page, and it can't change snippets by hand for individual sites.
What this means in practice:
- A query that matches one section of a long article often gets its snippet from that section.
- If your meta description is missing, generic or copied across many pages, Google has more reason to use page text.
- There's no length limit for a meta description. Google cuts the snippet as needed, usually to fit the device's screen, so put the most important words first.
Writing meta descriptions Google will use
Your description has the best chance of appearing when it's a better summary than anything Google could lift from the page. Google's advice:
- Write a unique description for each page. Identical or near-identical descriptions across a site don't help searchers tell pages apart.
- Include concrete details: author, publication date, price, availability or key product facts.
- Summarize the whole page, not one anecdote from it.
- Don't list keywords. A string of keywords doesn't tell people what the page is about and is less likely to be shown.
- On large sites, generated descriptions are fine if they stay readable and varied.
If you can't write descriptions for every page, start with the homepage and your most visited pages.
Controlling or blocking snippets
You can restrict snippets with robots rules, either in a robots <meta> tag or in an X-Robots-Tag HTTP header. The header also works for files that aren't HTML, such as PDFs (Google Search Central).
| Control | Example | Effect |
|---|---|---|
nosnippet |
<meta name="robots" content="nosnippet"> |
No text snippet or video preview for the page |
max-snippet:[n] |
<meta name="robots" content="max-snippet:50"> |
Snippet of at most n characters; 0 equals nosnippet, -1 lets Google choose |
data-nosnippet |
<div data-nosnippet>...</div> |
Keeps that block out of snippets |
A few details matter when you use them:
data-nosnippetworks only onspan,divandsectionelements.- If a page has both
nosnippetandmax-snippet,nosnippetapplies. nosnippetalso keeps the content from being used as a direct input for AI Overviews and AI Mode.- Robots snippet rules generally don't limit information you supply through structured data for rich results.
- Google can only read these rules if it's allowed to crawl the page.
Blocking snippets has a cost. A result with no description gives searchers little reason to click. Use these rules for specific passages, such as legal boilerplate or paywalled text, rather than whole pages.
Rich snippets and featured snippets
Two related terms build on the basic snippet:
- Rich snippets add extra details such as review stars, prices or recipe times. Google calls these rich results. They come from structured data on the page and give a result a richer appearance (Google Search Central).
- Featured snippets are special boxes where the usual order is reversed: the descriptive text comes first, then the link. You can't mark a page as a featured snippet; Google's systems decide. To opt out, use
nosnippet. A lowmax-snippetvalue makes featured snippets less likely but doesn't guarantee it (Google Search Central).
Does the snippet affect rankings?
Google doesn't say it does. The snippet's job is to earn the click: a clear, specific snippet can raise your click-through rate, which brings more visitors from the same position.