Meta Tag Generator
Generate a complete, valid set of head tags — title, description, canonical, Open Graph and Twitter Card — from a few fields.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Meta Tag Generator does
The meta tag generator on this page will generate a complete, valid set of head tags — title, description, canonical, Open Graph and Twitter Card — from a few fields. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for adding complete head tags to a new page or template. If you want to cross-check the result, there is another meta tag generator on FreeToolsWorld.org.
How to use it
- Enter your page title in the main box.
- Fill in the description, canonical URL and share image.
- The complete tag set is generated below as you type.
- Copy it into the <head> of your page.
How it works
Open Graph and Twitter Card tags control how a link looks when shared on social platforms and in messaging apps. Without them, platforms guess — usually badly, pulling the first image on the page and an arbitrary paragraph of text.
The image dimensions default to 1200 × 630, which is the ratio most platforms crop to. Declaring width and height lets a platform reserve the right space before the image loads. The alt text is generated from your title, which is better than nothing, though a description of the actual image is better still.
The canonical tag tells search engines which URL is the authoritative version when the same content is reachable at several addresses — with and without a trailing slash, with tracking parameters, or on both http and https. It should always point at the absolute, preferred URL.
When to use it
- Adding complete head tags to a new page or template.
- Fixing a page whose social preview looks wrong.
- Generating consistent tags across a small site.
Common mistakes to avoid
- Using a relative URL for og:image — social crawlers need an absolute URL.
- Pointing the canonical at the wrong URL, which can deindex the page you meant to rank.
- Letting the title and og:title drift apart, so the shared card says something different.
Frequently asked questions
Do I need both Open Graph and Twitter tags?
Twitter falls back to Open Graph when its own tags are absent, so the minimum viable set is Open Graph plus twitter:card. Including both gives you precise control if you want different wording on each.
What size should the share image be?
1200 × 630 pixels is the safe default, matching the 1.91:1 ratio most platforms crop to. Keep important content away from the edges, since different platforms crop differently.
Does the meta keywords tag help?
No. Google has ignored it since 2009 and it is not generated here. It offers no benefit and simply advertises your target terms to competitors.