How to use Meta Tag Generator
The Meta Tags Previewer generates and previews HTML meta tag markup for SEO, Open Graph (Facebook, LinkedIn) and Twitter Card snippets. Paste a URL to fetch live meta data or manually enter title, description, image URL and other fields to see exactly how your page will appear in Google search results and social media link previews before publishing.
- Enter a page URL to auto-fetch existing meta tags, or switch to manual mode to enter data yourself.
- Fill in the Title (50–60 characters), Description (150–160 characters) and canonical URL fields.
- Upload or enter the URL of the Open Graph image (recommended: 1200×630 px).
- Switch between the Google SERP, Facebook, Twitter and LinkedIn preview tabs to see rendered results.
- Copy the generated HTML snippet and paste it into the <head> section of your page.
- Re-run the fetch after publishing to confirm the live meta tags match your intended output.
Your data never leaves your device — 100% private processing.
Essential meta tags for SEO
Three meta tags have the greatest impact on search visibility: the <title> element (not a meta tag but equally important), the meta description, and the canonical link element. The title defines the clickable headline in search results and should include the primary keyword near the front. The meta description (up to 160 characters) is the snippet shown below the title — while not a direct ranking signal, a compelling description improves click-through rates. The canonical URL prevents duplicate-content penalties when the same page is accessible via multiple URLs.
| Tag / element | Attribute | Recommended length | Purpose |
|---|---|---|---|
| <title> | n/a | 50–60 characters | SERP headline, browser tab label |
| <meta name="description"> | content | 150–160 characters | SERP snippet (influences CTR) |
| <link rel="canonical"> | href | Full absolute URL | Prevents duplicate content |
| og:title | content | 40–60 characters | Facebook/LinkedIn card title |
| og:description | content | 65–200 characters | Social card description |
| og:image | content | 1200×630 px URL | Social share thumbnail |
| twitter:card | content | summary_large_image | Twitter card display type |
Open Graph and Twitter Card markup
Open Graph (OG) tags, introduced by Facebook and now used by LinkedIn, Slack, WhatsApp and most link-unfurling services, control how a URL appears when shared. The minimum recommended set is og:title, og:description, og:image and og:url. Twitter supports its own twitter:card tags but falls back to OG tags when Twitter-specific ones are absent. Always use absolute URLs for og:image and twitter:image — relative paths are not fetched by social crawlers.
Worked examples
Title length check
Inputs: title of 72 characters
Result: flagged — over 60; truncated in the Google SERP
Generate Open Graph tags
Inputs: title, description, image URL
Result: og:title, og:description, og:image, og:url block
Description length
Inputs: meta description of 155 characters
Result: within the 150–160 ideal range
Glossary
- Open Graph
- A protocol (ogp.me) using meta properties to define how a URL is represented when shared on social networks.
- Twitter Card
- Twitter's meta tag system for controlling how links appear as cards in tweets and timelines.
- Canonical URL
- The preferred URL for a page, declared via <link rel="canonical"> to consolidate duplicate-content signals.
- SERP
- Search Engine Results Page — the page Google or Bing displays in response to a search query.
- Click-through rate (CTR)
- The percentage of searchers who click a result; influenced by title and meta description quality.
Related reading
Frequently Asked Questions
Why use Meta Tag Generator?
- Preview exactly how a page title and description appear in a Google search result
- Visualise Open Graph cards for Facebook and LinkedIn before publishing
- Validate title length (50–60 chars) and description length (150–160 chars) with live counters
- Generate a complete HTML snippet including og:, twitter:, and canonical link elements
Common use cases
- Check a new landing page SERP snippet before launching a paid search campaign
- Preview how a blog post will render when shared as a link on LinkedIn
- Generate og:image and twitter:card meta tags for a product announcement page
- Audit an existing page by fetching live meta tags to find missing or truncated fields
- Copy a ready-to-paste meta tag block into a Next.js generateMetadata export
Get weekly tool tips & updates
New tools, power-user tips, and productivity hacks — delivered free every Friday.
No spam, ever. Unsubscribe with one click.
Related Developer Tools
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Includes syntax highlighting, error detection, and a collapsible tree view — free, private, in-browser.
URL Encoder / Decoder
Encode and decode URLs and URL components online. Convert special characters to percent-encoding and back instantly — free, private, and fast.
Google SERP Snippet Preview
Preview how your page title, meta description, and URL appear in Google search results. Check pixel widths, spot truncation, and fix snippets fast.
Schema Markup Generator (JSON-LD)
Generate valid JSON-LD structured data for Article, FAQ, HowTo, LocalBusiness, Product, and Breadcrumb schemas. Free, instant, and fully in-browser.
XML Sitemap Generator
Generate a valid XML sitemap for your website. Add your URLs, set change frequency and priority, then download the sitemap.xml.
Regex Tester
Test and debug regular expressions online. See live matches, capture groups, and replace output. Free, private, instant.
Explore all Developer Tools.