Meta Tag Generator — SEO, OGP & Twitter Card Builder

Generate all essential meta tags — title, description, OGP, Twitter Card, robots, canonical — from a simple form. No signup required.

0 / 65 chars
0 / 165 chars

Open Graph

Twitter Card
Search Preview
example.com › page
(Enter a title to preview)
<!-- Basic SEO -->
<meta name="robots" content="index, follow">

<!-- Open Graph -->
<meta property="og:type" content="website">

<!-- Twitter Card -->
<meta name="twitter:card" content="summary">

About Meta Tag Generator — SEO, OGP & Twitter Card Builder

Meta Tag Generator creates complete HTML meta tag sets including title, meta description, Open Graph (og:), and Twitter Card (twitter:) tags. Copy the generated code and paste it into your <head> for better SEO and social sharing.

How to Use

  1. 1Fill in your page title, description, URL, and image URL in the form.
  2. 2The tool generates all required OGP and Twitter Card meta tags automatically.
  3. 3Copy the complete tag block and paste it inside your HTML <head> section.

Features

  • Generates title, description, OGP, and Twitter Card tags in one step
  • Ensures correct og:type, og:url, twitter:card, and other required fields
  • Reduces errors from manually writing multiple tag variations
  • Copy-paste ready HTML output
01

Understanding HTML Meta Tags

Meta tags are snippets of HTML in the <head> section of a page that describe its content to browsers, search engines, and social media platforms. While invisible to visitors, they are critical for SEO and how your content appears when shared.

Title and Description Tags

The title tag defines the clickable headline in search results and is one of the most important on-page SEO elements. It should be 50–60 characters, include the primary keyword near the beginning, and accurately describe the page. The meta description tag provides the summary paragraph shown below the title in SERPs. At 150–160 characters, it should complete the message of the title with specific benefits and a call to action. Together, the title and description form your organic ad copy — they determine whether a searcher chooses your result.

Open Graph (OGP) Tags

Open Graph tags, prefixed with og:, control how your page appears when shared on Facebook, LinkedIn, WhatsApp, Slack, and other platforms that support the protocol. The critical tags are og:title (the share headline), og:description (the share summary), og:image (the preview image, ideally 1200×630px), og:url (the canonical URL), and og:type (usually "website" or "article"). Without these tags, social platforms generate unpredictable previews from available page content, often choosing poor images or irrelevant text. Setting OGP tags ensures brand-consistent sharing every time.

Twitter Card Tags

Twitter Card tags use the twitter: prefix and control how links appear on Twitter/X. The most important are twitter:card ("summary_large_image" shows a large preview image), twitter:title, twitter:description, and twitter:image. Twitter falls back to og: tags if twitter: tags are absent, so pages with complete OGP tags will display reasonably on Twitter without additional twitter: tags. However, explicitly setting twitter:card to "summary_large_image" significantly improves visual impact in the feed compared to the default "summary" card that og: fallback produces.

02

Meta Tag Best Practices

Implementing meta tags correctly the first time prevents SEO issues that can take months to recover from. Here are the key rules and common mistakes to avoid.

Placement and Uniqueness

All meta tags must appear inside the <head> element before the closing </head> tag. Place them near the top of the head section for clarity, after the charset declaration and before external stylesheet links. Every page on your site should have a unique title and description — duplicate titles across multiple pages confuse search engines about which page to rank for a given query. For large sites, templated titles (using the page heading plus a site name suffix) are acceptable; templated descriptions that include unique page content are preferable to identical boilerplate descriptions.

Image Requirements for Social Sharing

The og:image tag is often overlooked but has an outsized impact on social sharing performance. The recommended size is 1200×630 pixels with a 1.91:1 aspect ratio. Images smaller than 600×315 pixels are displayed as tiny thumbnails rather than large preview cards, drastically reducing click engagement. The image URL must be absolute (including https://), publicly accessible without login, and ideally hosted on a CDN for fast loading. Avoid images with important content at the edges, as some platforms crop the image to square or apply overlay text near the edges.

Avoiding Common Meta Tag Mistakes

The most common mistakes are: duplicate titles and descriptions across pages (prevents differentiated ranking), omitting og:url (causes the sharing platform to use the referring URL, which may be a tracking URL), using relative rather than absolute URLs in og:image and og:url, setting og:type incorrectly (use "article" for blog posts, "product" for e-commerce, "website" for home/category pages), and forgetting to update meta tags when page content changes. After deploying meta tag changes, use the Facebook Sharing Debugger, LinkedIn Post Inspector, and Twitter Card Validator to verify how your pages render on each platform.

FAQ

What is the difference between OGP and Twitter Card?
Open Graph Protocol (og: tags) is used by Facebook and LinkedIn. Twitter Card (twitter: tags) controls how links appear on Twitter/X.
Do I need both OGP and Twitter Card tags?
Twitter falls back to og: tags if twitter: tags are absent, but adding both ensures optimal display on all platforms.
Where do I place these tags?
All meta tags should go inside the <head> section of your HTML document, before the closing </head> tag.
Which meta tags are most important for SEO?
The critical meta tags are: &lt;title&gt; (most important ranking signal after content), &lt;meta name="description"&gt; (affects CTR in search results), &lt;link rel="canonical"&gt; (prevents duplicate content issues), and &lt;meta name="robots"&gt; (controls indexing and crawling). For social sharing: og:title, og:description, og:image, og:url. The &lt;meta name="keywords"&gt; tag is completely ignored by Google, Bing, and other major search engines and provides no SEO benefit.
What does the meta viewport tag do and is it required?
The viewport meta tag (&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;) tells mobile browsers to set the viewport width to the device screen width rather than rendering the full desktop width at a tiny scale. It is essential for responsive websites and a requirement for Google's mobile-friendliness assessment. Without it, mobile users see a desktop-sized page zoomed out, and Google will flag the page as not mobile-friendly in Search Console.

Found a bug or something not working as expected?

Report a bug →