Meta Tags, Open Graph and Twitter Cards: A Practical Guide
Short answer: meta tags tell search engines and social platforms how to describe a page. Fill in your details in the Meta Tag Generator and you get the title, description, canonical link, robots rule, Open Graph tags (used by Facebook, LinkedIn, Slack, WhatsApp and many others) and Twitter/X card tags, as a list or a complete <head> snippet, with warnings for missing or conflicting values.
The tags it writes
Title, description, canonical link, robots rule, author, theme colour, Open Graph tags and Twitter/X card tags.
The four required Open Graph fields
The tool checks for these as the ones the protocol requires: og:title, og:type, og:image and og:url. It also warns when the title, description or image is missing.
Conflicts that cause real trouble
og:urlthat differs from the canonical URL;noindextogether with a canonical, orindextogether withnoindex;- a large Twitter/X card with no image;
- a site name or locale that disagrees between tags.
Invalid or risky addresses
Page and image addresses must be absolute http(s) URLs. The tool also flags risky ones: plain http://, localhost addresses and URLs with embedded passwords.
Advice, not rules
Long titles and descriptions, SVG images and a missing image description get warnings. The length figures are rules of thumb, because platforms change them. Keep each page's title and description unique.
Images: URL only
You type the address of an image that is already hosted, and it is written into og:image and twitter:image as text. The tool never uploads or downloads the image. If you pick a local file, it is used only for the preview and left out of the output. To make hosted images smaller, see the Image Compressor / Converter and the guide to compressing JPEG, WebP and PNG images. Photos may carry location data, so see removing EXIF and GPS data too.
Previews are approximations
Real platforms crop differently, cut text at their own lengths, cache what they have already fetched and change their design. A new tag may not show on an old shared link until the platform refreshes it. For the real result, use each platform's own debugger or share a test link after publishing.
How to write Open Graph meta tags with the Meta Tag Generator
- Open the Meta Tag Generator.
- Enter title, description, canonical URL and image URL. Or paste a current
<head>to fill the fields. - Leave Open Graph and Twitter/X fields blank to reuse the basic values, or turn that option off to write only what you typed.
- Fix every warning, then copy the head snippet.
- Use Send to to tidy it in the HTML Formatter.
Quotes, ampersands and angle brackets in your text are escaped so they cannot break the tags (see HTML entities).
Limits to know
- It generates tags. It does not check your live page.
- Previews are approximations.
- Nothing is uploaded or stored.
Frequently asked questions
What are the required Open Graph tags?
og:title, og:type, og:image and og:url.
Should og:url match the canonical URL? Yes. The tool warns when they differ.
Can I use noindex with a canonical? The tool flags this as a conflict.
Why is my link preview not updating? Platforms cache what they fetched. Use their debugger or share a test link.
Does the tool upload my image? No. Only the URL is written into the tags.