Meta description and title: what a search result actually shows

A search result is two lines from your page: the title tag, in blue, and the meta description under it. Write both and the result says what the page promises. Leave them out and the engine assembles something from whatever text it finds first.

The meta description and the title tag are the two lines a search result is made of: the title in blue, the description in grey underneath. Both live in the head, both are written by you, and both decide whether someone clicks.

The markup. The highlighted line is the part this term is about.
The markup. The highlighted line is the part this term is about.

Without a description the engine assembles one from the first text it finds, which is often the navigation.

This guide covers what each does, the lengths that survive, how to write a title that carries the search phrase and a description that makes a promise, and how they relate to the Open Graph tags that chat apps read.

<title>HTML Viewer — Open and Preview an HTML File Online</title>
<meta name="description" content="Paste HTML or drop a file to see the finished page instantly. Scripts and charts run, nothing is uploaded, and no account is needed to look.">

Those two lines are what a person reads in a list of ten results before choosing one.

What the title and meta description each do

Title Description
Shown as The clickable blue line The grey text beneath
Affects ranking Yes, somewhat No
Affects clicks Strongly Strongly
Also used by Browser tabs, bookmarks, shares Sometimes nothing
Length that survives ~60 characters ~155 characters
The meta description is the line under the title in a search result. Write it and the result says what the page promises; leave it out and the engine assembles one from whatever text it finds first.
The meta description is the line under the title in a search result. Write it and the result says what the page promises; leave it out and the engine assembles one from whatever text it finds first.

The description does not influence ranking. It influences whether your result is the one chosen, which is the outcome you were after anyway.

Sending the file itself ✗ Often filtered by mail security rules ✗ May open as plain text on a phone ✗ Every fix means a new attachment ✗ No way to know who opened it ✗ Recipient needs the right app Sending a link ✓ Passes through mail and chat ✓ Renders in the phone browser ✓ Fix once, link stays the same ✓ The address is the single source ✓ Any browser is enough
A page with a title and description shows as a promise in search and a card in chat. One without shows as an address.

Writing a title

Put the term people search for first. HTML Viewer — Open and Preview an HTML File rather than Preview Your Documents With Our Free Online Tool. Titles are truncated from the right, and the reader's eye stops early.

Say what the page is, not how good it is. "Free", "best", "ultimate" occupy characters and persuade nobody.

Make it different from every other page. A site where fifteen titles begin with the same eight words is a site where the reader cannot tell the results apart.

One brand mention, at the end, if at all. … | NOS costs six characters and helps a reader recognise a source they know. It is not worth putting first.

Writing a description

The job is to answer "will this page solve my problem" in one sentence, then add the reason to prefer it.

<!-- weak -->
<meta name="description" content="Learn about HTML viewers and how they can help you with your documents and files.">

<!-- better -->
<meta name="description" content="Paste HTML or drop a file to see the finished page instantly. Scripts and charts run, nothing is uploaded, and no account is needed to look.">

The second one states what happens, what works, and what is not required. The first states that the page exists.

Three habits:

  • Lead with the action. "Paste HTML and see it render" beats "This tool allows you to…".
  • Name the objection. "No signup", "nothing uploaded", "works offline" — whatever the reader is worried about.
  • Write a sentence, not keywords. Repeated terms read as spam and are ignored.

When search engines ignore what you wrote

They regularly substitute a passage from the page body when they judge it a closer answer to the specific query. That is not a failure — it means the page is being matched to more queries than one description could serve.

What it does mean is that the body text has to be good, because the body is what gets shown. A page whose relevant passage reads well has nothing to lose here.

Do not duplicate them

Every page needs its own title and description. Identical ones across a set of pages are a signal that the pages are thin or duplicated, and the pages compete with each other rather than accumulating.

If writing fifteen distinct descriptions feels like a chore, that is often a sign the pages should be fewer and longer.

Open Graph tags are the sharing card, which is a separate mechanism. The same sentence usually works for both, and og:description does not substitute for <meta name="description">.

Canonical decides which address gets the result at all.

JSON-LD can add extra elements to the result, such as expandable questions.

Of the four, the title is the one that matters most and takes the least time.

Three mistakes in the two lines

The same title on every page. A site whose every page is titled with the company name gives the engine and the reader nothing to choose between. The page's subject first, the site name last, if at all.

Keyword lists. A description that reads "html report, share html, report link, html sharing" is not a promise and gets rewritten by the engine. Write a sentence.

Writing them last. The two lines are the first thing a searcher sees and the last thing most authors write. Write them when the page's point is clear, before the body if possible, and let them keep the body honest.

When the engine rewrites your description

Search engines replace the description when it does not match the query or the page. A page about sharing an HTML report searched for "report version control" may show a sentence from the body instead. That is fine; it means the body contains the phrase.

What you write is the default, shown when the query matches it, and it should be the best two lines about the page for the phrase you expect.

Writing the two lines: 4 steps

  1. Write the title with the search phrase near the front. Under 60 characters, so it is not cut off, and different from every other page's title on the site.
  2. Write the description as the promise the page keeps. Under about 155 characters. Say what the reader gets, with the phrase in it, in words a person would use.
  3. Match them to the page. The title should be the h1 or close to it. A description that promises what the page does not deliver costs the next click and the one after.
  4. Check the result. Search for the page's own title and look at the two lines. Fix what got cut off. The same title feeds the Open Graph card when the link is pasted into a chat.

Questions people ask

Does the meta description affect ranking?

Not directly. It affects whether people click your result, which is the thing you actually wanted.

How long should they be?

Titles about 60 characters, descriptions about 155. Beyond that they are truncated, so put the important words first.

Why does the search result show something I did not write?

Search engines substitute a passage from the page when they judge it a better answer to the query. Common and usually reasonable.

Can two pages share a description?

They can and should not. Identical descriptions across pages are a signal of thin or duplicated content.

Keep reading