Sign up free

Meta Tag Generator

Write the title, description and other head tags, add share and verification tags, check the search preview, and copy the HTML.

About Meta Tag Generator

Use this meta tag generator when you launch a page, rewrite a title that gets few clicks, or set up the head of a CMS template. As you type the title and description, you see their length in characters and in pixels, with a preview of the snippet in Google and Baidu. The Google preview can show the result on a computer or on a phone. Google cuts long titles by pixel width rather than by a fixed number of characters, so a title full of wide letters or Chinese characters runs out of room sooner than the character count suggests. A missing title or description is flagged, and if you fill in keywords, a note reminds you that Google doesn't use that tag.

The rest of the head is covered too: the canonical URL, robots directives (index or noindex, follow or nofollow, noarchive, nosnippet and max-image-preview:large), viewport, charset, language, author and theme color. Under Search engine verification, paste the code that Google Search Console, Bing Webmaster Tools or Yandex Webmaster gives you, or the whole meta tag, and only the code is kept. Tick Also make the Open Graph and X (Twitter) tags to add share tags to the same code, with a site name and a share picture, ideally 1200 × 630. The output is one block of ready-to-paste HTML for the head of your page. When the page is live, compare it with the Meta Tag Checker. Everything runs in your browser, so titles for pages you haven't published yet stay on your device.

How to use Meta Tag Generator

  1. 1
    Write the title

    Type the page title and watch the character count, the pixel width and the preview, on a computer or a phone.

  2. 2
    Write the description

    Sum up the page in a sentence or two and check how it reads in the Google and Baidu previews.

  3. 3
    Add the other tags

    Fill in the canonical URL and robots options as needed, paste your verification codes and tick the Open Graph option for share tags.

  4. 4
    Copy the HTML

    Paste the block into the head of your page or into your CMS template.

Why use Cubfile for this

  • Pixels, characters, preview

    Length in both units, since Google trims snippets by width, and a preview of the result on a computer or a phone.

  • Verification codes

    Paste the code or the whole meta tag from Google Search Console, Bing Webmaster Tools or Yandex Webmaster.

  • Open Graph in one go

    The Open Graph and X (Twitter) tags join the same code, with a site name and a share picture.

  • Nothing uploaded

    Runs in your browser, free and unlimited, even for pages that aren't live yet.

FAQ

Meta Tag Generator: questions and answers

How long should a meta title be?
Google cuts titles at roughly 580 pixels, which is about 50 to 60 characters in English. Put the main keyword near the start so a cut doesn't remove it.
How long should a meta description be?
Up to about 920 pixels on desktop, roughly 150 to 160 characters. Google often writes its own snippet from the page text, so treat the description as a strong suggestion.
How do I add a Google or Bing verification code?
Paste it under Search engine verification, in the field for Google Search Console, Bing Webmaster Tools or Yandex Webmaster. The whole meta tag works too, since only the code is taken from it. Once the block is in the head of your home page, finish the check in the webmaster tool.
Do search engines still use the keywords meta tag?
Google has ignored it for years, and the generator reminds you of that when you fill it in. It does no harm, so add a few real topics if your team or CMS expects it, but don't stuff it with terms.
What is a canonical URL for?
It names the preferred address when the same content opens at several URLs, for example with tracking parameters. Google and Baidu both support the tag. When an old address should go away for good, a redirect rule from the 301 Redirect Generator sends a stronger signal.
Share Meta Tag Generator with a friendIt runs in any browser, and they can try it without signing up.

Related tools

XML XML Sitemap GeneratorCrawl your site or paste a list of URLs to build an XML sitemap.
TXT Robots.txt GeneratorCreate a robots.txt with presets for search engines and AI crawlers.
JSON Schema Markup GeneratorGenerate JSON-LD for FAQ, articles, products, organizations and more.
HTML Open Graph GeneratorMake Open Graph and Twitter Card tags and preview the share card.
CONF 301 Redirect GeneratorGet redirect rules for Apache, Nginx, IIS, PHP and HTML.
URL UTM Link BuilderAdd UTM tags to links so you can track campaigns in analytics.
HTML Hreflang Tag GeneratorBuild hreflang tags for every language version of a page.
CONF Htpasswd GeneratorCreate .htpasswd lines for Apache and Nginx basic authentication.