Meta Tag Generator
Fill in a few fields and get a clean, correctly escaped set of meta tags for your page's <head> — with live Google and social share previews, and a ready-to-paste Next.js metadata object.
Runs in your browser — nothing is uploaded Free, no limits
Basic tags
Indexing (robots)
Open Graph (Facebook, LinkedIn, Slack…)
Twitter / X card
Icons
Favicon and apple-touch-icon links are off.
Google search preview
Social share preview
Your code
<!-- Put the language on the <html> tag: <html lang="en"> --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Open Graph --> <meta property="og:type" content="website"> <meta property="og:locale" content="en_US"> <!-- Twitter / X --> <meta name="twitter:card" content="summary_large_image">
How to use the Meta Tag Generator
- Enter the page title and meta description — the meters show if Google will cut them off.
- Add the canonical URL, choose robots settings and any extras such as author or theme colour.
- Fill in the Open Graph image and details (title and description default to the basic fields).
- Check the previews, then copy the HTML snippet or the Next.js metadata export.
- After publishing, verify the live page with the Meta Tag Checker.
Frequently asked questions
Which meta tags matter for SEO?
The <title> and meta description matter most: Google uses them for the headline and snippet in results. Add a canonical link to avoid duplicate URLs, a viewport tag for mobile, and a robots tag only when you need to restrict indexing. The meta keywords tag is ignored by Google.
How long should a title and meta description be?
Google truncates by pixel width, not characters: titles at roughly 580 px (about 50–60 characters) and descriptions at about 920 px on desktop (around 150–160 characters). This tool measures the real width in Arial, the font Google uses, so you can see exactly when text will be cut.
What are Open Graph tags?
Open Graph tags (og:title, og:description, og:image, og:url…) control how your link looks when shared on Facebook, LinkedIn, Slack, WhatsApp, Discord and many other apps. Without them the platform guesses, often with the wrong image.
What size should my og:image be?
Use 1200×630 pixels (a 1.91:1 ratio), as JPG or PNG under 5 MB, with an absolute https:// URL. Keep important text near the centre because some platforms crop the image to a square.
Do I need Twitter card tags if I have Open Graph?
You need twitter:card to choose the card style (summary_large_image gives a big image). For title, description and image, X falls back to the Open Graph tags, so repeating them as twitter:* is optional.
Can I use this with Next.js?
Yes. Switch the output to Next.js metadata to get an export const metadata object (plus a viewport export for the viewport and theme colour) for the App Router — Next.js then renders the same tags for you.