Meta Tag Generator
Generate HTML meta tags including OpenGraph and Twitter Card markup.
0/60 characters
0/158 characters
<meta name="robots" content="index, follow"> <meta property="og:type" content="website"> <meta name="twitter:card" content="summary_large_image">
About this tool
Meta Tag Generator builds the complete set of HTML meta tags needed for strong on-page SEO and accurate social sharing. Fill in the basic fields — title, description, robots directive, author, and keywords — then add OpenGraph properties so Facebook, LinkedIn, and other platforms render a rich preview when your URL is shared. The Twitter Card tab covers the twitter:card, title, description, and image tags. Every tag updates live as you type and the full output is ready to copy and paste into your HTML <head>.
How to use
- Fill in the Basic tab with your page title, description, and SEO options.
- Switch to the Open Graph tab to configure social preview metadata.
- Switch to the Twitter tab for Twitter Card tags, then copy the full generated markup.
Related Tools
See exactly how your page title and description will look in Google search results.
Fetch any URL and verify the canonical tag — detect self-referential and cross-domain canonicals.
Generate JSON-LD schema markup for FAQ, Article, Product, Breadcrumb, and Organization.
FAQ
What are meta tags and why do they matter?
Meta tags are HTML elements in the <head> section that tell search engines and social platforms about your page. The title and description tags influence your SERP listing, while OpenGraph and Twitter Card tags control how your links appear when shared on social media.
Does the robots meta tag replace robots.txt?
No. The robots meta tag controls indexing and link-following for a specific page, while robots.txt controls which URLs a crawler can access at all. Both are complementary — use robots.txt to block crawlers from a section, and the meta robots tag to noindex individual pages that crawlers can reach.
What is the ideal meta description length?
Google typically displays 150–160 characters of the meta description in search results. Aim for 150–158 characters to avoid truncation. The description should be unique, readable, and compelling since it influences click-through rate even though it is not a direct ranking factor.
Do I need separate OpenGraph and Twitter tags?
Twitter Cards fall back to OpenGraph tags if Twitter-specific tags are missing, but setting both gives you full control. Some platforms (Slack, Discord, LinkedIn) also read OpenGraph tags independently, so providing them ensures the best preview on every platform.
Is the generated HTML safe to paste directly?
Yes. The output contains plain HTML meta tags with no scripts or external dependencies. Paste them inside the <head> element of your page.