Meta Tag
Generator
Generate SEO meta tags, OpenGraph, and Twitter Card tags in one place. Copy and paste into your HTML.
0/60 characters recommended
0/160 characters recommended
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="robots" content="index, follow">
Paste this inside the <head> of your HTML.
Frequently Asked Questions
What are meta tags?▾
What are Open Graph (OG) tags?▾
Which Twitter Card type should I use?▾
What is a canonical URL?▾
What is the optimal meta title length?▾
Do meta keywords still matter for SEO?▾
What is the difference between og:title and the title tag?▾
How do I test if my Open Graph tags are working?▾
Master HTML Meta Tags for SEO
HTML meta tag structure, SEO impact, Open Graph Protocol, and Twitter Cards explained completely.
Why Meta Tags Matter
Meta tags are placed in the HTML <head> to communicate page information to search engines and social media. Correctly configured meta tags directly improve search rankings, enable rich previews when shared on social media, and increase click-through rates.
Essential Meta Tags
- title: 50-60 characters. One of the most important SEO ranking factors
- description: 150-160 chars. Displayed as the snippet in search results
- robots: index/noindex, follow/nofollow to control crawling
- canonical: Canonical URL to prevent duplicate content issues
- viewport: Required for mobile accessibility
Open Graph Protocol (OGP)
OGP tags (og:title, og:description, og:image) enable rich card previews when shared on Facebook, Twitter, and Line. og:image should be 1200x630px. Without OGP tags, social shares look plain and get fewer clicks.
Meta Tag Cheat Sheet
<title>50-60SEO rankingmeta description150-160SERP snippetog:title60-90Social card titleog:description100-200Social card descog:image1200x630pxSocial card imagetwitter:cardsummary_largeTwitter card typeTechnical Meta Tag Optimization
From a technical SEO perspective, meta tag optimization is critical. charset (UTF-8 required), viewport, canonical URL, and hreflang (for multilingual sites) settings directly affect your site's technical health score.
Meta Tags That Trigger Rich Results
- schema.org JSON-LD: enables Review stars, Event, FAQ rich results
- og:type: set to website, article, or product as appropriate
- article:published_time: communicates freshness to Google
- og:locale: explicitly declares content language
Validation Tools
Use Google Rich Results Test, Facebook Sharing Debugger, and Twitter Card Validator to confirm correct meta tag configuration. Always validate before publishing to ensure rich previews display correctly everywhere.
Complete Meta Tag Template
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width">
<title>Page Title - Brand</title>
<meta name="description"
content="150-160 char desc">
<link rel="canonical"
href="https://example.com/page">
<!-- Open Graph -->
<meta property="og:title"
content="Page Title">
<meta property="og:image"
content="image-1200x630.jpg">
<meta name="twitter:card"
content="summary_large_image">
</head>