Meta Tag Generator
Generate a complete set of SEO meta tags — title, description, robots, canonical, viewport — ready to paste into your <head>.
How to use Meta Tag Generator
- Fill in the page title and meta description — keep them within the recommended pixel lengths shown.
- Add the canonical URL and a 1200×630 social image so your Open Graph and Twitter cards render correctly.
- Optionally set the author, robots directives, and your Twitter @handle.
- Copy the generated block of meta, Open Graph, and Twitter tags.
- Paste it inside the <head> of your page, above the closing </head>, and deploy.
Meta tags: the head block every page needs
Meta tags are the instructions in your page's <head> that tell search engines what the page is about and tell social platforms how to render a shared link. This generator builds a complete, valid head block — title, description, canonical, robots, viewport, Open Graph, and Twitter Card tags — that you can paste straight into your HTML.
A complete head block
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Page Title — Brand</title>
<meta name="description" content="A clear, accurate 150-character summary." />
<link rel="canonical" href="https://example.com/page" />
<meta property="og:title" content="Page Title" />
<meta property="og:description" content="Summary for social cards." />
<meta property="og:image" content="https://example.com/og.png" />
<meta name="twitter:card" content="summary_large_image" />Title and description: what searchers see
The title tag is the single most important on-page SEO element and the clickable headline in search results. Make it unique, descriptive, and front-loaded with the primary topic. The meta description does not affect rankings directly but is the sales pitch under the title — write it for a human deciding whether to click. Keep the title near 60 characters and the description near 155, remembering Google measures pixels, not characters.
How the social tags fit in
This generator emits one og:image pointing at your social card and a single twitter:card line set to summary_large_image. That pairing is deliberate: the Open Graph block carries the title, description, and image for every platform, and the lone Twitter line just selects X's layout while X reuses the og: values underneath. You only need to add separate twitter:title or twitter:image lines when X should show something different from everywhere else — and the dedicated preview tools below let you check each surface in isolation.
Precedence: which tag wins
When tags overlap, engines and platforms follow a clear order. For the page name, the <title> element is authoritative for search, while social cards prefer og:title and fall back to <title> if it is absent. For the link target, og:url tells platforms which address to credit shares to, and it should match your <link rel="canonical"> exactly. The robots tag is the strictest signal of all: a page-level noindex overrides anything you allow in robots.txt, because the crawler must fetch the page to read it.
Robots and canonical
Reach for noindex on pages that should stay out of search but remain usable — login screens, internal thank-you pages, faceted filter URLs that duplicate a parent listing. The canonical link does the complementary job: when identical content sits at several addresses (tracking parameters, print views, trailing-slash variants), it nominates the one version engines should consolidate signals onto. Set both deliberately and you decide exactly what enters the index and which URL gets the credit.
The non-negotiable basics
Three tags belong on essentially every modern page. The charset declaration goes first — ideally inside the opening 1024 bytes — so the browser decodes everything after it correctly. The viewport tag keeps the layout mobile-friendly instead of rendering at desktop width and zooming out. And a unique title gives each page its own clickable headline in results. Settle these before fine-tuning anything else; they shape rendering and rankings on every device.
Related SEO tools
- Open Graph Preview — see exactly how your link renders on Facebook, LinkedIn, Slack, and Discord.
- Twitter / X Card Preview — preview summary and large-image cards before you post.
- Canonical Tag Generator — build the canonical link that pairs with these tags.
- Schema Generator — add JSON-LD structured data on top of your meta tags.
- Keyword Density Checker — check the page copy targets the keyword you put in these tags.
Frequently asked questions
How long should my title and description be?
Do I still need the meta keywords tag?
Does the meta description affect rankings?
What does the meta robots tag control?
What if I don't have an Open Graph image?
Should every page have a unique title and description?
Where exactly do meta tags go?
Do I need the viewport meta tag?
Related tools
More tools you might find useful in the same flow.
robots.txt Generator
robots.txt generator — build a clean robots.txt file with user-agent rules, allow and disallow paths, and sitemap entries in seconds. Free, no signup needed.
Sitemap Generator
Free online XML sitemap generator: paste your URLs and build a valid sitemap.xml with lastmod, changefreq, and priority. Copy or download — no signup.
Keyword Density
Keyword density checker — analyze pasted text or page copy for word density, keyword frequency, top phrases, and word counts. Free, runs in your browser.
Schema Generator
JSON-LD schema generator — create structured data for Article, FAQ, Product, Local Business, and other schema.org types. Free, ready to copy and paste.
Built by Muhammad Tahir · About