Meta Tag Generator
What is a Meta Tag Generator?
When someone shares your link on LinkedIn, Facebook, X, Slack or WhatsApp, the preview card is built from meta tags in your page's <head>. Without them, platforms guess, often picking a random image or no description at all. This generator creates the standard SEO, Open Graph and Twitter Card tags from a few fields.
How to use it
- Enter the page title, description, canonical URL and image URL.
- Choose the content type, such as website or article.
- Copy the generated tags into the
<head>of your page.
Example output
<title>Pricing | Acme</title>
<meta name='description' content='Simple pricing for teams of every size.'>
<meta property='og:title' content='Pricing | Acme'>
<meta property='og:description' content='Simple pricing for teams of every size.'>
<meta property='og:image' content='https://acme.com/og/pricing.png'>
<meta property='og:url' content='https://acme.com/pricing'>
<meta property='og:type' content='website'>
<meta name='twitter:card' content='summary_large_image'>Best practices
- Image size: 1200 × 630 px (1.91:1) works across platforms. Use an absolute HTTPS URL.
- Title: keep it under about 60 characters so it is not cut off.
- Description: about 110 to 160 characters, unique for each page.
- og:url should match your canonical URL, so shares of URL variants are consolidated.
- Single-page apps must render these tags in the HTML response; many social crawlers do not run JavaScript.
Testing and refreshing
Platforms cache previews. Use the Facebook Sharing Debugger and the LinkedIn Post Inspector to see what they read and force a refresh after changes.
Frequently Asked Questions
What is Open Graph?
A set of meta tags, created by Facebook, that control how a link appears when shared on social platforms.
What size should an og:image be?
1200 by 630 pixels is the recommended size for large preview cards on most platforms.
Why does my old preview still appear after changing tags?
Social platforms cache previews. Use the Facebook Sharing Debugger or LinkedIn Post Inspector to refresh them.
Do meta tags help SEO?
The title and meta description influence how your page appears in search results. Open Graph tags mainly affect social sharing.