Losing clicks to competitors? Find out exactly why, and what to fix first.

Show me why
Skip to content

On Page SEO

How to Optimize Meta Tags for SEO: Step-by-Step Guide

Add saadrazaseo.com as a preferred source on Google

Free and no obligation. A real reply from me, not a bot.

Short answer: To optimise meta tags for SEO, focus on the few Google actually uses: a unique, descriptive title tag with the main topic near the start; a unique meta description that summarises the page and gives a reason to click; a robots tag only where you need to block indexing; a viewport tag for mobile; and a canonical link on duplicate URLs. Skip the keywords meta tag, which Google ignores.

27.6%average click-through rate of the number one organic result, across about 4 million results studiedBacklinko, 2019
40 to 60characters: the title length range that had the highest CTR in the same studyBacklinko, 2019
0 effectThe keywords meta tag is not used by Google and has no effect on indexing or rankingGoogle Search Central, 2025
No limitGoogle sets no length limit on titles or descriptions; it truncates them to fit the deviceGoogle Search Central, 2025

This guide is for site owners, writers and junior SEOs who want to set meta tags correctly without guessing. You will learn which tags matter and which are myths, how to write a title and description step by step, how to check what Google is actually showing, and how to fix meta tag problems across a whole site rather than one page at a time.

What are meta tags?

Meta tags are pieces of HTML in a page’s <head> section that describe the page to browsers, search engines and social platforms. Visitors do not see them on the page, but they shape how the page appears in search results and when it is shared. Strictly speaking, the title tag and canonical link are not <meta> elements, but everyone groups them together because they do the same job.

Which meta tags matter for SEO?

Google publishes a list of the meta tags it supports and says it ignores any it does not support. That makes prioritising easy.

TagWhat it doesSEO impactPriority
Title tagMain source for the clickable headline in results and the browser tabHelps relevance and strongly affects clicksEvery page
Meta descriptionPossible source for the snippet under the titleNot a ranking factor; affects clicks when Google uses itEvery important page
Meta robotsControls indexing and snippets (noindex, nofollow, max-snippet)A wrong noindex removes a page from GoogleOnly where needed
Canonical linkNames the preferred URL among duplicatesConsolidates signals on one URLDuplicate or parameter URLs
ViewportTells mobile browsers to fit the page to the screenNeeded for a usable mobile pageSite-wide, once
CharsetDeclares character encoding (UTF-8)Prevents broken characters, including Urdu textSite-wide, once
Open Graph and X card tagsTitle, description and image for social sharesNo ranking effect; improves sharesPages you expect to be shared
hreflangLinks language or country versionsHelps the right version show in each marketMultilingual sites only
Keywords meta tagA list of keywordsNone in GoogleSkip it

Rather have an expert do this for you?

Hand it over and get back to running your business.

Hand it over to me

How to optimise meta tags, step by step

Step 1: Write a unique, descriptive title tag

The title tag is the most important tag on the page. Google’s title link guidelines ask for titles that are descriptive and concise, unique to each page, and free of keyword stuffing or boilerplate. They also note there is no character limit; titles are simply cut to fit the device width. In practice I aim for roughly 50 to 60 characters so the important words are visible on mobile.

  • Lead with what the page is about, in the words people search.
  • Add one differentiator: a year for things that change, a format (“checklist”, “calculator”), or a location for local pages.
  • Put the brand at the end, separated by a pipe or dash, unless it is the homepage.
  • Make it match the H1 closely. Google may rewrite titles that do not reflect the page, using the H1, og:title or anchor text instead.

My full guide to optimising title tags goes deeper, with examples by page type.

Step 2: Write a meta description that earns the click

The meta description does not affect rankings, but Google’s snippet documentation says it will use it when it describes the page more accurately than text taken from the page itself. A good one therefore needs to be accurate first and persuasive second.

  • Summarise what the reader gets, in one or two plain sentences.
  • Include the main phrase naturally; Google bolds words that match the query.
  • Add a concrete detail: a price range, a number of steps, a tool, a location, a delivery time.
  • Keep it around 140 to 155 characters so it is not cut mid-sentence on most devices. This is a display guideline, not a Google rule.
  • Make every description unique. For large catalogues, Google says programmatic descriptions built from page data are fine if they read naturally.

See my guide to writing meta descriptions for templates by page type.

Step 3: Preview both before publishing

Paste the title and description into my free SERP snippet preview to see where they are cut on desktop and mobile. If you are starting from scratch, the meta tag generator produces the full set of tags in the right format.

Step 4: Use the robots meta tag only where you mean it

By default, pages are indexable and links are followed, so most pages need no robots tag at all. Use noindex for pages that should never appear in search: thank-you pages, internal search results, login and cart pages, thin tag archives. Two points I see confused on audits:

  • nofollow does not remove a page from Google. It only affects the links on the page. To keep a page out of results you need noindex.
  • Do not block a noindexed page in robots.txt. If Google cannot crawl the page, it never sees the noindex instruction.

My guide to creating a robots meta tag covers every directive, including max-snippet and max-image-preview.

Step 5: Add canonical links to duplicate URLs

If the same content loads at several URLs (with tracking parameters, sort orders, print versions, or both www and non-www), a canonical link tells Google which one you prefer. Use absolute URLs, point each duplicate to the clean version, and make sure the canonical URL itself is indexable and returns a 200 status. A canonical is a strong hint rather than a command, so internal links and XML sitemaps should point to the same URL. Read more in my guide to the canonical tag.

Step 6: Set viewport and charset once

Every page needs <meta name="viewport" content="width=device-width, initial-scale=1"> and <meta charset="utf-8">. Modern themes include both. I still check them on custom builds, because a missing UTF-8 declaration is the usual reason Urdu or Arabic text on Pakistani and Gulf sites shows as broken symbols.

Step 7: Add social tags for pages that get shared

Open Graph (og:title, og:description, og:image, og:url) controls how a link looks on Facebook, LinkedIn and WhatsApp; X uses its own card tags but falls back to Open Graph. They do not affect rankings, but a broken preview on WhatsApp, where many Pakistani customers share links, costs real clicks. Check them with my social share preview tool.

Example: a clean head section for a service page
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AC Repair in Karachi: Same-Day Service | Example Co</title>
<meta name="description" content="Split and inverter AC repair across Karachi, with same-day visits in Gulshan, Johar and DHA. Fixed inspection fee, upfront quotes and a 30-day service warranty.">
<link rel="canonical" href="https://example.com/ac-repair-karachi/">
<meta property="og:title" content="AC Repair in Karachi: Same-Day Service">
<meta property="og:description" content="Same-day split and inverter AC repair across Karachi.">
<meta property="og:image" content="https://example.com/images/ac-repair-technician.jpg">
<meta property="og:url" content="https://example.com/ac-repair-karachi/">

This is an illustrative business, not a client. Notice there is no robots tag (the page should be indexed), no keywords tag, and the description makes specific claims the page itself must support.

Before and after: rewriting weak meta tags

These are the patterns I most often rewrite. The examples are illustrative.

ProblemBeforeAfter
Keyword-stuffed titleSEO Services, SEO Company, Best SEO Agency LahoreSEO Services in Lahore for Local Businesses | Brand
Boilerplate titleHome | Brand (on every page)A unique title describing each page’s content
Vague descriptionWe are the leading provider of quality solutions.Compare 3 shipping options from Karachi to the UK, with transit times, size limits and a cost estimate in under a minute.
Description that misleadsFree delivery on all orders! (it is not)Free delivery on orders over Rs 5,000 within Karachi; flat rate elsewhere.
Duplicate descriptionsSame text on 300 product pagesGenerated from each product’s name, key spec and price

How to find and fix meta tag problems across a site

Optimising one page at a time does not scale. On audits I work from the data down:

  1. Crawl the site with Screaming Frog or a similar crawler and export titles, descriptions, canonicals and robots directives. Filter for missing, duplicate, very long and very short values.
  2. Find accidental noindex tags. These often arrive with a staging site or a plugin setting, and they quietly remove pages from Google.
  3. Open the Search Console Performance report and sort pages by impressions. Pages with many impressions and a low CTR for their position are where better titles and descriptions pay off first. My guide to CTR in SEO explains how to judge “low”.
  4. Compare what Google shows with what you wrote. Search for your key pages. If Google is rewriting the title, the title probably does not match the H1 or is stuffed.
  5. Fix templates, not just pages. In WordPress, Yoast and Rank Math let you set title and description templates per post type, so category, tag and product pages get sensible defaults.
  6. Change, wait, measure. After rewriting, give Google a few weeks to recrawl, then compare CTR for the same queries and positions.

Meta tag checklist for each page

  • Title is unique: no other page on the site uses it.
  • Title leads with the topic: in the words searchers use, around 50 to 60 characters.
  • Title matches the H1: close enough that Google has no reason to rewrite it.
  • No stuffing: the main phrase appears once in the title, not three times.
  • Description is unique and accurate: it describes this page, not the business in general.
  • Description has a specific detail: a number, price, location, format or outcome.
  • Snippet previewed: nothing important cut off on mobile.
  • Robots tag correct: no accidental noindex; noindex only on pages that should stay out.
  • Canonical correct: points to the clean, indexable version of this page.
  • Viewport and UTF-8 present: checked once for the template.
  • Open Graph image set: for pages likely to be shared on WhatsApp or social media.
  • No keywords meta tag: remove it if an old theme added one.

Ticks are saved in your browser, so you can work through a list of priority pages over several sessions.

Common meta tag mistakes I find on audits

  • The same title on every page of a template, usually “Home” or the brand name.
  • Keyword-stuffed titles copied from competitors, which Google often rewrites anyway.
  • Descriptions that promise something the page does not deliver, which brings clicks that bounce straight back.
  • A site-wide noindex left on after launch. I still find it a few times a year; my website launch checklist includes it for that reason.
  • Canonicals pointing to redirected, noindexed or 404 URLs.
  • Spending hours on the keywords meta tag, which does nothing in Google.

Meta tags are one part of on-page SEO. They help a good page get chosen and clicked; they cannot make a weak page rank.

Frequently asked questions

Do meta tags still matter for SEO in 2026?

Some do. The title tag helps relevance and clicks, the robots tag and canonical control indexing, and the meta description influences clicks when Google uses it. Others, like the keywords meta tag, have no effect in Google at all.

How long should a title tag and meta description be?

Google sets no character limit and truncates to fit the screen. As a practical guide, titles of about 50 to 60 characters and descriptions of about 140 to 155 characters usually display in full. Put the most important words first in both.

Why does Google change my title or meta description?

Google generates titles and snippets automatically and uses your tags when they describe the page well. It is more likely to replace them when they are stuffed, boilerplate, out of date, or do not match the query and the page content.

Is the meta description a ranking factor?

No. It does not affect where a page ranks, but it can affect how many people click, which is why it is still worth writing for important pages.

Should I still use the meta keywords tag?

Not for Google, which says the tag has no effect on indexing or ranking. Leaving it in also shows competitors exactly which terms you are targeting.

How do I add meta tags in WordPress?

Install an SEO plugin such as Yoast or Rank Math. Each post and page then gets fields for the SEO title, meta description, canonical URL and robots settings, plus site-wide templates for categories, tags and products.

Sources

  • Google Search Central, “Meta tags and attributes that Google supports” (last updated 2025).
  • Google Search Central, “Influencing your title links in search results” (last updated 2025).
  • Google Search Central, “Control your snippets in search results” (last updated 2026).
  • Backlinko, “We analyzed 4 million Google search results. Here’s what we learned about organic click-through rate” (2019, updated 2025).

Start with the pages that already have the most impressions in Search Console; that is where better titles and descriptions show results fastest. If you would rather have the whole site’s on-page setup reviewed, my on-page optimisation service covers meta tags, headings and content together, or you can send me a question.

Rather have an expert do this for you?

Tell me about your website and goals, and I will reply with a free first review.

Your details are only used to reply to your request. No spam.

Grow my trafficCall