OG Meta Tag Generator
Generate Open Graph and Twitter Card meta tags, then preview exactly how your link will look when shared on Facebook, LinkedIn, X and WhatsApp.
Open Graph meta tag generator
0 characters · best under 60
0 characters · best between 70 and 160
1200 × 630 is the size every network crops well.
Twitter card and extras
Your tags
Paste these inside the <head> of your page.
Preview
What the OG Meta Tag Generator does
- Full Open Graph and Twitter Card tag output
- Live preview for Facebook, LinkedIn, X and WhatsApp
- Copy the finished tags straight into your <head>
- Warns about missing image dimensions and long titles
Your data stays on your device
The OG Meta Tag Generator runs entirely in your browser. Nothing you enter is uploaded to a server, which means there is no copy of your input anywhere but your own machine. See how that works.
What Open Graph tags actually do
When someone pastes your link into a post or a chat, the platform fetches the page and reads a handful of meta tags to decide what to show. Those tags are the Open Graph protocol. Get them right and your link arrives as a card with a picture, a headline and a sentence of context. Leave them out and the same link arrives as bare blue text, or worse, with whatever sentence the platform scraped off the top of your page.
Fill in the fields on the left and the finished tags appear underneath, ready to paste into the head of your page. The preview beside them shows the card as each network would draw it, so you can see the result before you ship anything.
Why the preview changes between networks
Every platform reads the same tags and then renders them its own way, which is why one preview is not enough. X drops the description entirely on a large-image card, so a title that trails off mid-sentence has nothing to fall back on. WhatsApp shows a small square thumbnail in the chat list rather than a banner, so an image with text along the edges loses it. LinkedIn truncates the title sooner than Facebook does.
Switch between the four tabs and you are looking at the same tags under four sets of rules. If the card reads well in all of them, it will read well nearly everywhere, because most other apps follow one of these conventions.
Getting the image right
Use 1200 by 630 pixels. That is a ratio of roughly 1.91:1, which is what the card slot is shaped like, so nothing gets cropped. Anything much smaller than 600 pixels wide is refused outright by some networks and looks soft on a retina screen. Keep the file under about 600 KB or WhatsApp will skip it.
Put nothing important in the outer tenth of the image. Different platforms crop by different amounts, and a logo tucked into a corner is the first thing to disappear. Serve the image over HTTPS from a URL that does not require a login, and give it an absolute address — a relative path is meaningless to a scraper fetching your page from the outside.
When you paste an image URL here the tool loads it to read its real dimensions, which is how it can tell you whether the crop will hurt. That request goes to whichever host serves your image, and nowhere else.
Why your change has not appeared yet
Networks cache aggressively. Facebook and LinkedIn will keep serving the card they first scraped for days after you have fixed the tags, which fools a lot of people into thinking the tags are wrong when they are fine. Use the platform's own debugger — Facebook's Sharing Debugger, LinkedIn's Post Inspector, X's Card Validator — to force a fresh fetch.
If you cannot wait for a cache to clear, adding a harmless query string to the URL makes it a new address as far as the scraper is concerned, which is a quick way to see your change.
OG Meta Tag Generator questions
The things people ask most about this tool.
Which meta tags does the generator output?
It produces the core Open Graph tags (og:title, og:description, og:image, og:url, og:type, og:site_name, og:locale) plus the matching Twitter Card tags, a canonical link and a standard meta description. Anything required that is still missing is flagged above the output.
What image size should I use for Open Graph?
Use 1200 x 630 pixels. That ratio renders cleanly on every major platform and is large enough for high-density displays. Keep the file under about 600 KB so WhatsApp will render it, and leave the outer tenth of the frame clear of anything important.
Do I need both Open Graph and Twitter tags?
X falls back to Open Graph tags when the Twitter ones are absent, so strictly you can ship only Open Graph. Including both is still worth it: twitter:card is what chooses between a large image and a small thumbnail, and that choice is not expressible in Open Graph alone.
Why does my card show the old title after I changed it?
The network cached it. Facebook and LinkedIn hold a scraped card for days. Run the URL through Facebook's Sharing Debugger or LinkedIn's Post Inspector to force a refresh, or append a query string to make it a new URL as far as the scraper is concerned.
Where exactly do these tags go?
Inside the head element of the page, anywhere among your other meta tags. They must be server-rendered in the HTML the scraper receives — tags added later by JavaScript are invisible to most crawlers, which is a common reason a card stays blank on a single-page app.
Is my page URL or image sent to your server?
No. The tags are built in your browser as you type. The one network request involved is your browser loading the image you pointed at, from that image's own host, so the tool can report its real dimensions.
More free tools
Other utilities in the collection, all free and all client-side.
Password Generator
Generate strong, random passwords with custom length and character rules.
Open tool →Color Picker
Pick colors from any format and copy HEX, RGB, and HSL values instantly.
Open tool →PNG to WebP Converter
Convert PNG images to WebP in your browser and cut the file size dramatically.
Open tool →