DevTools Pro · All tools · About

Meta Tag Generator

About the Meta Tag Generator

This meta tag generator builds the HTML <head> tags a page needs for search results and social sharing: title, description, robots, canonical, Open Graph and Twitter Card tags. Fill in the fields and you get correctly escaped markup plus a live Google-style snippet and social card preview, ready to copy or download.

Which meta tags actually matter for SEO?

Google uses the <title> element and often (not always) the meta name="description" for the search snippet. meta name="robots" controls indexing, for example noindex, follow keeps a page out of results while still letting crawlers follow its links. <link rel="canonical"> tells search engines which URL is the preferred version of duplicate or parameterized pages.

The meta name="keywords" tag is ignored by Google and has been for years. The generator still offers it because some internal search engines and older tools read it, but leaving it empty costs you nothing.

Title and description length

Google truncates by pixel width rather than a fixed character count, so the generator uses practical limits: about 60 characters for titles and 160 for descriptions. The counters under each field turn red once you pass them, and a warning appears next to the output.

Put the most important words first. If the snippet is cut off, the start is what people still see.

Open Graph vs Twitter Card tags

Open Graph (og:title, og:description, og:image, og:url) was created by Facebook and is now read by LinkedIn, Slack, Discord, WhatsApp and most link unfurlers. Open Graph tags use the property attribute, while Twitter Card tags use name.

X (Twitter) reads its own twitter:* tags first and falls back to Open Graph for title, description and image. That is why this tool fills empty Twitter fields from the Open Graph values, and empty Open Graph fields from the basic title, description and canonical URL, so you only type each value once.

Use a 1200 × 630 px image for og:image (a 1.91:1 ratio) and an absolute https:// URL. Relative paths like /img/share.png are not resolved by most crawlers. A summary_large_image card without any image falls back to a small card, so the tool warns you about that combination.

How to Use the Meta Tag Generator

  1. Under Tag Categories, tick the groups you need: Basic SEO, Open Graph, Twitter Card and Additional (theme color and Apple touch icon).
  2. Fill in Page Title and Meta Description, watching the character counters, then add the Canonical URL and choose a Robots value.
  3. Add an OG Image URL and Image Alt Text. Leave OG Title, OG Description or the Twitter fields empty to reuse the values you already entered.
  4. Check the Search result preview and Social card preview, and fix anything flagged in the yellow warnings box.
  5. Click Copy, or .html to download the tags, and paste them inside your page's <head>.

Frequently Asked Questions

Where do I put the generated meta tags?
Inside the <head> element of each page, before </head>. In frameworks such as Next.js, Nuxt or React Helmet, translate them into that framework's head or metadata API.
Why is my new Open Graph image not showing when I share the link?
Social networks cache previews. Use the platform's debugger (Facebook Sharing Debugger, LinkedIn Post Inspector) to re-scrape the URL, and make sure the image URL is absolute, public and served over HTTPS.
Does Google use the meta keywords tag?
No. Google ignores meta name="keywords" for ranking. You can leave the Keywords field empty.
Why does Google show a different description than mine?
Google rewrites snippets when it thinks another passage better matches the search query. A specific, accurate description that summarizes the page is used more often.
Do I need both Open Graph and Twitter Card tags?
Not strictly, since X falls back to Open Graph. You still need twitter:card to choose the card type, so most sites include both.
Is the information I enter stored or sent anywhere?
No. The tags are built in your browser. The only network request is your browser loading the image URL you entered for the social card preview.

Related tools