Meta Tag Generator

Generate a complete HTML head block — title, description, canonical, Open Graph, and Twitter Card tags — with a length checklist. Free.

Generate a complete, correctly-escaped HTML head block — title, description, canonical, Open Graph, and Twitter Card tags — from plain fields, with live length guidance against Google’s truncation limits so you see the problem before Google does.

How to use Meta Tag Generator

  1. Fill the fields — sensible defaults are pre-filled.
  2. Watch the length checklist turn warnings into fixes.
  3. Copy the head block into your page.

Who it is for

Site owners launching new pages without an SEO plugin, developers standing up landing pages quickly, and marketers producing social-ready meta for campaigns.

How it works

  • Every value is HTML-escaped on output, so quotes and ampersands in titles never break the tags.
  • Open Graph fields fall back to the title and description when left blank, matching how platforms actually read them.
  • The length checklist warns at Google’s real truncation points — around 60 characters for titles and 120–158 for descriptions — and checks that the OG image URL is absolute.

What it cannot do

  • It generates the tags; pasting them into your page is still your job.
  • It cannot verify that your OG image renders — check it with the Open Graph preview tool.

Sample input & output

You give

Title: "Merge PDF Online Free — Private Browser Tool" | Canonical: https://pdftura.com/merge-pdf | OG Image: https://pdftura.com/og.png

Meta Tag Generator returns

Complete HTML-escaped <head> snippet with <title>, <meta name="description">, <link rel="canonical">, og:*, and twitter:card tags — green on all length checks.

Frequently asked questions

What title length should I aim for?

Around 50–60 characters: Google truncates desktop snippets near 60, and shorter titles read better on mobile.

Do I need both Open Graph and Twitter tags?

Open Graph covers Facebook, LinkedIn, and most platforms; the twitter:card tag tells X which summary shape to use. Generate both — it costs nothing.

Why must the OG image URL be absolute?

Social scrapers fetch images outside your page context — a relative path is meaningless to them and renders as a broken card.

Does Google truncate page titles by character count or by rendered pixel width?

Google desktop and mobile SERPs actually clip <title> links by rendered pixel width (roughly 580–600 pixels in Google's sans-serif UI font) rather than a strict character integer. Because wide capitals like 'W' and 'M' consume more than twice the horizontal space of 'i' or 'l', keeping titles between 50 and 60 characters prevents mid-word ellipsis truncation in almost all cases.

Why did Google display a different title or description snippet from the tags in my HTML?

Google treats <meta name="description"> as a candidate summary rather than a fixed display command, rewriting snippets roughly 60–70% of the time when on-page body sentences match a searcher's specific long-tail query more closely. Google also rewrites <title> links when tags are stuffed with repeated keywords, boilerplate site names, or mismatch the visible <h1> heading.

How does <link rel="canonical"> protect pages accessed with tracking parameters?

Marketing links routinely append ?utm_source=newsletter, ?fbclid=..., or sort parameters to the same article URL. Without a self-referencing <link rel="canonical" href="https://example.com/guide"> in <head>, crawlers discover multiple distinct URLs serving identical content and split crawl budget or indexing signals; declaring the clean canonical URL consolidates ranking signals onto one authoritative address.

Why is <meta name="keywords"> omitted from modern SEO head generators?

Google officially stopped reading <meta name="keywords"> for web search ranking in 2009, and Bing later confirmed it primarily acts as a spam signal when overstuffed rather than a positive ranking factor. Emitting a keywords meta tag today merely exposes your target search list to competitors in View Source while adding dead bytes to every HTML response.