Generate meta tags for SEO and social sharing
Write title, description, Open Graph and X tags with length meters and a Google-style preview.
Loading tool…
Two lines of text decide whether someone clicks your page in search results: the title and the meta description. The same page also needs Open Graph tags so that Facebook, LinkedIn, WhatsApp and Slack show a proper card with an image when it is shared, and an X (Twitter) card tag so X shows a large image. This generator writes all of them from one form and escapes quotes, ampersands and angle brackets correctly, which hand-written tags often get wrong.
Length meters count characters as you type and flag titles over 60 characters and descriptions under 70 or over 160. Characters are only a proxy: Google actually cuts titles by pixel width, around 600 pixels on desktop. The preview therefore measures your text in Arial, the font Google uses in results, and shows where it would be truncated. It is an approximation, because Google sometimes rewrites titles and descriptions, uses the page's own text instead, or shows a different layout on mobile; the aim is to spot titles that will clearly be cut.
The output is plain HTML to paste into your page's <head>: the title element, meta description, canonical link, an optional robots directive, the og: properties and the twitter: card and account. Open Graph values are reused by X, so there is no need to repeat twitter:title and twitter:description. Empty fields produce no tag. Nothing you type is sent anywhere; to check tags that are already live on a page, paste its source into the Open Graph preview.
How to use it
- Write the page title and the meta description, watching the meters and the search preview.
- Add the canonical URL, site name and the absolute URL of a 1200 × 630 px share image.
- Choose the X card type, your X account and, only if needed, a noindex robots setting.
- Copy the tags into the <head> of your page, or download them as a file.
Frequently asked questions
How long should a title tag be?
Aim for 50-60 characters. Google truncates by pixel width (about 600 px), so wide letters such as W and M use up space faster than i or l; the preview shows the effect.
How long should a meta description be?
About 120-160 characters. Longer descriptions are cut; very short ones are often replaced by text Google picks from the page.
Do meta keywords help rankings?
No. Google has ignored the keywords meta tag for over a decade, so this generator does not write one.
Why is a canonical URL useful?
It tells search engines which address is the main one when the same page is reachable through several URLs (with tracking parameters, with and without www), so ranking signals are not split.
What size should the share image be?
1200 × 630 pixels (1.91:1) works for Facebook, LinkedIn, WhatsApp and X large cards. Use an absolute https URL.
Related tools
- Preview Open Graph link cardsPaste a page's tags and see how the link may look on Facebook, X, LinkedIn and WhatsApp.
- Generate a sitemap.xml from a list of URLsTurn a list of URLs into a valid sitemap.xml with lastmod, changefreq and priority options.
- Generate and test a robots.txt fileBuild robots.txt with presets (including blocking AI crawlers), validation and a URL tester.
- Format and beautify HTMLBeautify minified or messy HTML with consistent indentation, including inline CSS and JavaScript.
- Generate favicons from an imageMake favicon.ico (16/32/48), apple-touch-icon and Android PNG icons from one image, with the HTML to paste.
- URL slug generatorTurn titles into clean URL slugs: accents transliterated, punctuation removed, one slug per line, optional Unicode.