Generate Open Graph + Twitter meta tags
All computation runs locally in your browser

<!-- og meta --> <meta property="og:type" value="website" /> <!-- twitter meta --> <meta name="twitter:card" value="summary_large_image" />
This Open Graph Meta Generator creates the HTML <meta> tags used by platforms like Facebook, LinkedIn, and X to build link previews. You enter the information you want people to see (title, description, image), and the tool outputs clean tags you can paste into your site.
Social previews aren’t “SEO magic” — they’re mostly about sending the right metadata. A good set of tags improves click-through by making your shared links look intentional and trustworthy.
Who is this for?
If you’re also cleaning URLs or escaping HTML, these tools pair well: URL parser and Escape/unescape HTML entities.
Pick the page type
For most sites, start with “Website”. Use “Article” for blog posts or news pages.
Fill in title, description, and URL
Use a real, public URL. Most platforms want an absolute URL (including ).
Set your image (recommended)
Add an image URL and (optionally) width/height so previews render consistently.
Copy and paste into your site
Copy the generated tags and place them in your page <head> section.
Worked example (with numbers)
Suppose your share image is px wide and px tall. The total pixel area is:
And the aspect ratio is . That’s close to the common “wide preview” shape used across platforms.
How to read the output: Open Graph tags use property (for example, ), while Twitter tags use name (for example, ). In most cases, paste the full generated block.
Pro tip: Use the Share button below the calculator if you want to send someone a link to this tool. If you include results, only share non-sensitive inputs.
Blog post preview
Background: you’re sharing a specific article and want the preview to show the correct headline.
Inputs: type “Article”, image px, and the canonical article URL.
Result: and tags like / .
How to apply: paste the tags into that article page’s <head>.
Product page share card
Background: you want the product photo to look crisp in chat apps.
Inputs: image px (square) and alt text.
Result: and for accessibility.
How to apply: keep image URLs stable; if your URL has tracking params, sanity-check it with the URL parser.
SaaS landing page
Background: multiple teams share the same landing page link, often with UTM parameters.
Inputs: type “Website”, image px, and a clean canonical URL.
Result: a stable so the preview stays consistent.
How to apply: set to your canonical URL (not a UTM variant).
Job posting share
Background: hiring links get forwarded a lot; you want them to stay recognizable.
Inputs: banner px and a clear title.
Result: and a consistent preview headline.
How to apply: include the location in the description so it appears in the preview snippet.
If you’re debugging a preview, start with the basics: the URL must be public and the image URL must return a real image file. Many preview problems are just redirects or blocked requests.
Add tags before you announce the page so the first share looks good.
Swap the image URL (or update dimensions) to improve clarity in feeds.
Align share text with your campaign headline and CTA.
Be careful: don’t put private info in shareable metadata.
Use the generated tags to isolate whether the issue is HTML vs caching.
Share a link to the tool with inputs so teammates can paste the same tags.
Not a good fit: if your site already generates tags dynamically per route, you’ll probably implement this in your framework’s metadata system instead of pasting static tags. The generator is best for quick drafts, prototypes, and validation.
Practical checklist
Avoid common mistakes
There’s no “hidden scoring” here: the tool is a structured formatter. It turns your inputs into two blocks of HTML tags — Open Graph tags (using property) and Twitter card tags (using name).
Two simple relationships the generator follows
For convenience, the tool can generate Twitter equivalents when you only fill Open Graph. Conceptually:
Same idea for description and image. It’s a “helpful default,” not a requirement — you can still override Twitter fields explicitly.
Open Graph is a metadata convention that helps services understand your page as a shareable object (title, description, image). Twitter Cardsdo the same for X.
If you’re building URLs by hand or debugging query strings, the URL parser is a good companion. If you need to safely include special characters in HTML attributes, use HTML entities.
What typically controls the preview?
It’s strongly recommended. Many platforms read Open Graph; X uses Twitter tags. When in doubt, include both.
A common wide share image is . The key is consistent aspect ratio and a readable design on mobile.
Usually caching. Platforms cache previews aggressively. Changing may not refresh immediately.
It’s safer to use absolute URLs (including protocol). Crawlers often expect absolute URLs for.
It depends on the inputs. Titles and descriptions are usually fine, but don’t include anything sensitive or private.
Put them in the HTML <head> of the page you’re sharing.
Use a simple chronometer (stopwatch) to track elapsed time down to milliseconds. Runs locally in your browser.
Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. Runs locally in your browser.
Estimate the time needed to consume a total amount at a constant rate, and get an expected end time. Runs locally in your browser.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Know which file extensions are associated to a MIME type, and which MIME type is associated to a file extension. Includes a full MIME types table.
Generate random Lorem Ipsum placeholder text with customizable paragraphs, sentences, and word counts. Runs locally in your browser.