Back to Blog
SEO Tools

How to Write Perfect SEO Meta Tags (Complete 2025 Guide)

Hafiz Hanif May 4, 2025 9 min read

Meta tags are the first thing Google and social platforms see. Getting them right can double your click-through rate. Here's the exact formula.

How to Write Perfect SEO Meta Tags (Complete 2025 Guide)

Meta tags are tiny pieces of HTML that sit inside your page's <head> section — invisible to visitors, but critically important to search engines and social platforms. A well-written meta title and description can be the difference between a 2% click-through rate and a 10% click-through rate for the same Google ranking position.

In this guide, you'll learn exactly how to write each type of meta tag, what the character limits are, and how to generate them instantly using our free tool.


What Are Meta Tags?

Meta tags are HTML elements that provide metadata about a webpage. They don't appear on the page itself — they live in the code and communicate directly with search engines, social media platforms, and browsers.

The most important meta tags for SEO are:

  1. Title tag — The clickable headline in Google results
  2. Meta description — The summary text below the title in Google results
  3. Open Graph tags — How your page looks when shared on Facebook and LinkedIn
  4. Twitter Card tags — How your page looks when shared on X (Twitter)

The Title Tag

What it does

The title tag appears as the blue clickable link in Google search results. It's the most important on-page SEO element.

HTML syntax

<title>Your Page Title Goes Here</title>

Best practices

Keep it under 60 characters. Google truncates titles longer than approximately 60 characters in search results. Use our meta tag generator — it shows you the character count in real time and warns you when you exceed the limit.

Put your primary keyword near the beginning. "Word Counter — Free Online Tool" outperforms "Free Online Tool That Counts Words" because the keyword appears first.

Include your brand name at the end (optional). "How to Create a Strong Password | ToolsMadeEasy" is a common format.

Make it compelling, not just descriptive. Your title competes with 9 other results on the same page. "10 Password Mistakes That Are Putting You at Risk" will get more clicks than "Password Security Information."

Each page needs a unique title. Duplicate titles confuse search engines and get flagged in Google Search Console.

Examples

❌ Weak title ✅ Strong title
Home Page Free Online Tools for Writers & Developers — ToolsMadeEasy
Word Counter Free Word Counter — Count Words, Characters & Reading Time
About Us About ToolsMadeEasy — Who We Are & What We Do

The Meta Description

What it does

The meta description appears as the grey text below the title in Google results. It doesn't directly affect rankings, but it massively affects click-through rate.

HTML syntax

<meta name="description" content="Your description goes here." />

Best practices

Keep it between 120–160 characters. Under 120 characters and you're leaving space unused. Over 160 and Google will truncate it with "..."

Include your target keyword. Google bolds keywords in descriptions that match the user's search query. This makes your result stand out.

Write it as a call to action. End with an action: "Try it free — no signup required." or "See the full guide."

Make it specific. "Learn everything about passwords" is vague. "Learn the 5 factors that make a password unbreakable — and generate one instantly." is specific and compelling.

Don't duplicate descriptions across pages. Each page should have a unique description.

Examples

❌ Weak description ✅ Strong description
This page is about word counting. Count words, characters, sentences & reading time instantly. Free online word counter — no signup, no limits.
Learn about passwords here. Learn what makes a password truly secure, the 5 most common mistakes, and how to generate unbreakable passwords for free.

Open Graph Tags (Facebook, LinkedIn, WhatsApp)

Open Graph (OG) tags control how your content looks when shared on social media. Without them, platforms make guesses — often poorly.

Essential OG tags

<meta property="og:type" content="website" />
<meta property="og:url" content="https://yoursite.com/page" />
<meta property="og:title" content="Your Page Title" />
<meta property="og:description" content="Your page description." />
<meta property="og:image" content="https://yoursite.com/image.jpg" />

The OG image — most important

Without an OG image, your shared link shows up as plain text. With a good image, it shows up as a rich card that takes up much more visual space in feeds.

Recommended image size: 1200 × 630 pixels (1.91:1 ratio)

Tips:


Twitter Card Tags

Twitter Card tags control how your content appears on X (Twitter). The summary_large_image card type shows a large image preview.

<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://yoursite.com/page" />
<meta property="twitter:title" content="Your Page Title" />
<meta property="twitter:description" content="Your description." />
<meta property="twitter:image" content="https://yoursite.com/image.jpg" />
<meta name="twitter:creator" content="@yourusername" />

How to Add Meta Tags to Your Site

Static HTML

Paste the tags inside <head>...</head>:

<!DOCTYPE html>
<html>
<head>
  <title>Your Title</title>
  <meta name="description" content="Your description." />
  <!-- OG tags here -->
</head>
<body>...</body>
</html>

Next.js (App Router)

Export a metadata object from your page:

export const metadata = {
  title: "Your Title",
  description: "Your description.",
  openGraph: {
    title: "Your Title",
    description: "Your description.",
    images: ["https://yoursite.com/og-image.jpg"],
  },
}

WordPress

Use a plugin like Yoast SEO or RankMath. Both add a meta tag editor to every page and post.

Shopify

Edit your theme's theme.liquid file to include dynamic meta tags.

Webflow

Add custom meta tags under Page Settings → Custom Code → Inside <head> tag.


How to Generate Meta Tags Instantly

Use our free Meta Tag Generator:

  1. Enter your page title (the tool shows character count and warns if too long)
  2. Enter your meta description (120–160 character sweet spot shown)
  3. Add your page URL, OG image URL, and Twitter handle (optional)
  4. Copy the complete generated HTML with one click

The tool generates all primary, Open Graph, and Twitter Card tags in one go — ready to paste directly into your HTML.


Common Meta Tag Mistakes

1. No meta description at all Google will auto-generate one from your page content — usually a poor result. Always write your own.

2. Duplicate titles and descriptions A common issue on e-commerce sites with many similar products. Each page needs unique tags.

3. Title too long Gets truncated in search results. Keep it under 60 characters.

4. Keyword stuffing in the title "Buy Cheap Passwords Password Generator Password Tool Free" looks spammy and gets penalized.

5. No OG image Your social shares look like plain text links instead of rich cards.


Frequently Asked Questions

Do meta keywords still matter?

Google officially ignores the <meta name="keywords"> tag. Bing may still consider it slightly. Include them for completeness but don't spend much time on them.

Why does Google sometimes show a different description than the one I wrote?

Google rewrites meta descriptions when it thinks a different snippet would better match a user's specific search query. This is normal and happens frequently. Write a strong description anyway — it still influences click-through rate.

How long does it take for new meta tags to appear in Google?

Usually between a few days and a few weeks, depending on how often Google crawls your site. Submit your sitemap to Google Search Console to speed up the process.


Conclusion

Meta tags are one of the highest-leverage tasks in SEO. They take minutes to write and can significantly improve your click-through rate from search results and social shares.

Use our free Meta Tag Generator to create perfect tags for any page — instantly, free, with no signup required.

HH

Hafiz Hanif

Full-Stack & Agentic AI Developer · Dubai

10+ years shipping products across the UAE, USA, Saudi Arabia, and Pakistan. I build ToolsMadeEasy on the side because useful tools should be free. More about me →

Try Our Free Tools

Explore our complete collection of free online tools — no signup required.

Browse All Tools