Prices dated and sourced
CNCodeNexon

Hosting, WordPress and Software Guides

How to Write Title Tags and Meta Descriptions That Get Clicks

By

Founder and Tech Writer, CodeNexon

Updated • 10 min read

Key Takeaways

  • ▪Google sets no length limit but truncates titles and descriptions to fit the screen.
  • ▪Put the main topic first. Around 50 to 60 characters usually shows in full for titles.
  • ▪Google may rewrite titles that are vague, stuffed with keywords or unlike the page's H1.
  • ▪Meta descriptions do not affect rankings, but they affect clicks.
In this guide
  1. Title tag vs meta description vs H1
  2. How Google uses your title
  3. How Google uses your meta description
  4. How long should titles and descriptions be?
  5. A formula for titles
  6. A formula for meta descriptions
  7. Mistakes to avoid
  8. Setting titles and descriptions in WordPress
  9. How to measure whether a new title works
  10. Frequently asked questions
  11. Sources

A good title tag names exactly what the page offers, puts the main topic near the start, and is unique to that page. A good meta description summarizes the page in a sentence or two and gives the searcher a reason to click. Google sets no fixed character limit for either, but it truncates both to fit the screen, so keep the important words early. Google also rewrites titles it finds unhelpful and often writes its own snippet from your page content, so the best defense is a title that matches the page's main heading and a description that genuinely reflects what the page says.

This guide covers how Google uses each one, practical length guidance, formulas with real examples, the mistakes that cause rewrites, and how to test whether a new title actually earns more clicks.

Title tag vs meta description vs H1

ElementWhere people see itWhat it does
<title>Search result headline, browser tab, social shares when no other title is setThe strongest single signal of what the page is about. Becomes the clickable title link
Meta descriptionOften the gray text under the title in resultsDescribes the page and persuades people to click. Not used for ranking
<h1>The main heading on the page itselfTells visitors they arrived at the right place

In HTML:

<head>
  <title>How to Choose a Web Hosting Provider: A 9-Point Checklist</title>
  <meta name="description" content="Compare hosts on renewal price, uptime terms, backups and support. A 9-point checklist with real 2026 prices from Hostinger, Bluehost and SiteGround.">
</head>
<body>
  <h1>How to Choose a Web Hosting Provider: A 9-Point Checklist</h1>
</body>

The title and the H1 do not have to be identical, but they should clearly describe the same thing. When they disagree, Google is more likely to rewrite your title.

How Google uses your title

Google's documentation lists its best practices for the <title> element:

  • Give every page a title.
  • Keep titles descriptive and concise. Avoid vague labels such as "Home" or "Profile".
  • Do not stuff keywords or repeat the same words.
  • Give each page distinct title text, and avoid long boilerplate that differs by only one detail.
  • Put your site name at the start or end, separated by a delimiter such as a hyphen, colon or pipe.
  • Write the title in the same language as the page.

Why Google rewrites titles

Google generates the title link from several sources. Its documentation lists them: the <title> element, the main visual title on the page, headings such as <h1>, the og:title meta tag, other large or prominent text, other text on the page, anchor text on the page, text in links pointing to the page, and WebSite structured data.

Your title tag is the starting point, but if Google decides it does not describe the page well, it builds one from those other sources. The common triggers:

ProblemExampleFix
Title does not match the pageTitle promises "2024 prices" but the page says 2026Keep the title current
Keyword stuffing"Plumber Chicago, Chicago Plumber, Plumbing Chicago IL"One natural phrase
BoilerplateEvery page titled "Riverside Plumbing, Chicago"Unique titles per page
Missing or empty title<title></title>Add one
Very long title20 words listing every serviceShorten and prioritize
Title differs from the H1Title "Services" on a page headed "Emergency Leak Repair"Make them describe the same topic

Google notes that changes to your titles can take a few days to a few weeks to appear in results.

How Google uses your meta description

Google does not always show your meta description. Its documentation says it builds snippets mainly from the page content and will "sometimes use the meta description tag from a page to generate a snippet in search results" when the description offers a more accurate summary than the page content alone.

In practice, Google often picks different text for different searches. A query about renewal prices might pull a sentence about renewal prices from your page, even if your description talks about something else. That is not a failure. It means Google matched the snippet to the searcher.

Google's guidance for descriptions:

  • Make them unique for each page.
  • Include relevant details such as author, date, price or key facts that might not otherwise appear in the snippet.
  • Write a summary, not a list of keywords.
  • Generate them programmatically on large sites if needed, as long as they are readable and varied.

The meta description is not a ranking factor. Its job is to earn the click once you already rank.

How long should titles and descriptions be?

Google states there is no limit on the length of a <title> element or a meta description. Both are truncated in search results to fit the device width, which means the useful question is not "how long is allowed" but "how much will people see".

Practical guidance, based on typical desktop display:

ElementPractical targetWhy
TitleAround 50 to 60 charactersLonger titles are usually cut off with an ellipsis
Meta descriptionAround 140 to 160 charactersLonger descriptions are usually cut off

Display width depends on the characters themselves, since wide letters like W take more space than narrow ones like i, and mobile results show differently from desktop. So treat these as targets, not rules. The more important habit is putting the essential words first, so a cut-off title still makes sense.

A title that gets truncated is not penalized. It just shows less.

A formula for titles

Most good titles follow one of a few patterns.

Page typePatternExample
How-to guideHow to [do task]: [benefit or format]How to Migrate a WordPress Site Without Downtime
Comparison[A] vs [B]: [what decides it]Hostinger vs Bluehost: Price, Limits and Features Compared
Best-of listBest [category] for [audience] ([year or proof])Best WordPress Hosting for Beginners (2026)
ExplainerWhat Is [term]? [plain promise]What Is TTFB? Time to First Byte Explained, With Fixes
Service page[Service] in [location]: [Brand]Emergency Plumbing in Chicago: Riverside Plumbing
Product page[Product name], [key attribute]: [Brand]Oak Desk Organizer, 3 Compartments: Example Woodworks
Home page[Brand]: [what you do]Riverside Plumbing: Licensed Chicago Plumbers

Before and after

BeforeProblemAfter
HomeSays nothingRiverside Plumbing: Licensed Chicago Plumbers
Blog post #47No topicWhy Is My Water Heater Making Noise? 5 Causes
Best Cheap Hosting Cheap Web Hosting Hosting DealsKeyword stuffingWeb Hosting Renewal Prices: What $2.99 a Month Really Costs
The Complete Ultimate Guide to Everything You Need to Know About Choosing a Domain Name in 2026Too long, main topic buriedHow to Choose a Domain Name: Rules, Prices and Mistakes

Should you include the year?

Adding a year such as "(2026)" can help for topics where freshness matters: prices, product comparisons, rules that change. It is a promise, though. If the page is not updated next year, an old year in the title looks neglected and can be rewritten by Google. Only add a year if you will maintain the page, and change it only when you have actually updated the content.

A formula for meta descriptions

A strong description usually does three things in one or two sentences:

  1. States what the page covers.
  2. Adds a specific detail that proves it is useful: a number, a price, a date, a method.
  3. Says who it is for or what they get, without hype.

Examples

PageWeak descriptionStrong description
Hosting checklistRead our guide about choosing web hosting.Compare hosts on renewal price, uptime terms, backups and support. A 9-point checklist with real 2026 prices from three major hosts.
Plumbing serviceWe are the best plumbers in Chicago. Call now!Licensed Chicago plumbers for leaks, water heaters and drains. Same-day appointments, upfront pricing, and 24-hour emergency service.
ProductBuy our desk organizer today at a great price.Solid oak desk organizer with three compartments, 12 inches wide. $49 with free US shipping over $75 and 30-day returns.
ExplainerLearn all about canonical tags.What canonical tags do, how Google chooses a canonical URL, and the five mistakes that make it ignore yours. Includes examples you can copy.

Notice what the strong versions avoid: "best", "ultimate", exclamation marks and calls to "click here". Specific facts persuade better than adjectives.

Mistakes to avoid

  • Duplicate titles or descriptions across many pages. Common on category pages, tag pages and paginated archives. Search Console and site crawlers can list them.
  • Writing for keywords instead of people. A title that reads like a list of search terms is less likely to be clicked and more likely to be rewritten.
  • Promising what the page does not deliver. A clickbait title might earn a click, then the visitor leaves immediately.
  • Leaving defaults in place. Themes and plugins sometimes produce titles such as "Untitled" or "Blog Archive".
  • Forgetting social titles. Social platforms use og:title and og:description when present. If those are missing or stale, shares look wrong even when search results look fine.
  • Changing the title constantly. Each change takes time to be picked up. Change titles for a reason, then wait several weeks before judging.

Setting titles and descriptions in WordPress

WordPress builds a basic title from the post title and site name, but has no built-in field for meta descriptions. An SEO plugin adds both:

  • Rank Math and Yoast SEO add a box under each post where you can set the SEO title and description separately from the post's visible headline, with a preview and a length indicator.
  • Templates let you set a default pattern, such as %title% | %sitename%, for pages where you do not write a custom one.

Rank Math vs Yoast SEO compares the two plugins, including the AI title and description drafting in Yoast SEO Premium.

On a custom site or framework, set them in each page's metadata. CodeNexon, built with Next.js, sets a unique title and description for every post from the post's own data, with the site name added by a template.

How to measure whether a new title works

Change titles based on data, then check the result.

  1. Find candidates in Google Search Console's Performance report: pages with many impressions but a low click-through rate. They are seen but not chosen. How to Set Up Google Search Console shows where to find this.
  2. Record the baseline: clicks, impressions, CTR and average position over the last 28 days.
  3. Rewrite the title and description to answer the search more directly.
  4. Request indexing for the page with the URL Inspection tool.
  5. Wait at least four weeks, then compare the same 28-day metrics.

Compare CTR at a similar average position. If position changed a lot, the CTR change may be due to ranking, not the title. Change one page at a time, or a small group, so you can tell what worked.

A worked example

A guide averages position 6 with 4,000 impressions and 80 clicks a month, a CTR of 2%. You rewrite a vague title into a specific one that matches what searchers want. Four weeks later, still around position 6, it has 4,100 impressions and 164 clicks, a CTR of 4%. That is roughly double the visitors from the same ranking, without any change in where the page appears.

That kind of improvement is common when a title goes from generic to specific, and it is one of the cheapest wins in search.

Frequently asked questions

How long should a title tag be?

Google says there is no limit on title length, but it truncates titles in search results to fit the screen. Around 50 to 60 characters usually displays in full on desktop. Put the most important words first so a shortened title still makes sense.

How long should a meta description be?

Google sets no length limit, but it truncates snippets to fit the device width. Around 140 to 160 characters usually shows in full. Write a complete, specific summary and put the key information near the start.

Why does Google change my title in search results?

Google builds title links from several sources, including your title tag, the main heading, og:title and anchor text. It may rewrite a title that is missing, stuffed with keywords, too long, generic, or inconsistent with the page's main heading.

Do meta descriptions affect rankings?

No. The meta description is not a ranking factor. It can influence whether people click your result, which affects how many visitors you get from a ranking, so it is still worth writing well.

Does Google always use my meta description?

No. Google builds snippets mainly from page content and sometimes uses the meta description when it gives a more accurate summary. It often chooses different text for different searches, matching the snippet to what the person searched for.

Should every page have a unique title and description?

Yes. Google recommends distinct titles for each page and unique meta descriptions. Duplicate titles make it harder for search engines and people to tell pages apart, and are a common reason Google rewrites title links.

Should I put my brand name in the title?

Usually, yes, at the start or end, separated by a delimiter such as a hyphen, colon or pipe, as Google suggests. For most pages, put it at the end so the topic comes first. On the home page, the brand can lead.

Sources

Update history

  • First published.

About the author

Shubham Handore founded CodeNexon in 2024 and writes its guides on hosting, WordPress and the software small teams use to run a business online.

View author profile
Title tagsMeta descriptionsSEOClick-through rate