Meta tag generator
Fill in the fields below to generate complete, copy-ready meta tags.
Fill in the form to see a live preview here.
Generated HTML
<meta name="robots" content="index,follow"> <meta property="og:type" content="website"> <meta name="twitter:card" content="summary_large_image">
How to write effective meta tags
Meta tags are not magic. They are signals — small pieces of structured information that tell search engines and social platforms how to represent your content. Writing them well requires understanding what each tag does and who reads it.
Title tags
Your title tag should lead with the most important keyword and end with your brand name. Keep it under 60 characters so it does not get truncated in search results. Avoid writing titles that exist only for keywords — they read as spam and get fewer clicks.
og:image size requirements
Facebook requires a minimum of 200 × 200 pixels, but recommends 1200 × 630 for best display. LinkedIn uses 1200 × 627. Twitter summary_large_image expects a 2:1 aspect ratio. The safest choice is 1200 × 630, which works well on all platforms.
Keep your OG image file size under 8MB for Facebook and under 5MB for Twitter. Use JPEG for photographs and PNG for images with text or transparent backgrounds.
Common meta tag mistakes
- Using the same title and description on every page
- Setting og:image to a relative URL (must be absolute)
- Forgetting to set twitter:card, which disables rich Twitter previews
- Using a title longer than 60 characters (gets cut off in Google)
- Missing canonical tags on paginated or filtered content
Structured data vs meta tags — what is the difference?
Meta tags provide basic page-level signals. Structured data (JSON-LD or Microdata) provides richer, typed information — for example marking up a recipe with cooking time, ingredients, and ratings. Structured data can trigger enhanced search features like rich snippets and knowledge panels. Meta tags cannot. Use both.
FAQ
Do I need both og:title and twitter:title?
Not necessarily. Twitter falls back to og:title if twitter:title is not set. However, setting both gives you full control over how each platform displays your content.
Should og:url match the canonical URL?
Yes. Set og:url to the canonical version of your page URL. This prevents duplicate counts in Facebook Insights and ensures likes and shares are consolidated.
What does og:type do?
It tells Open Graph what kind of content the page represents. Use website for most pages, article for blog posts, and product for e-commerce pages. The type affects how some platforms structure the preview.
More tools