Meta tag generator with a Google preview

Meta tags are snippets in a page's head that give Google and social networks the title, description and image. Preview the Google result and copy the code.

Google result
155 characters
Link sharing
Indexing
Search results
Links on the page
Extra directives

Google preview

on desktop

  • Title
  • Description

Google publishes no fixed limit. Around 600 px for the title and 920 px for the description are the widths where a desktop result usually gets an ellipsis, so that is what the preview uses.

    Code for the head section

    14 lines
    <title>Meta Tag Generator with a Google Result Preview | VulCode</title>
    <meta name="description" content="Meta tags are snippets in a page's head that give Google and social networks the title, description and image. Preview the Google result and copy the code.">
    <link rel="canonical" href="https://vulcode.com/en/tools/meta-tag-generator">
    <meta name="robots" content="index, follow">
    
    <meta property="og:type" content="website">
    <meta property="og:title" content="Meta Tag Generator with a Google Result Preview | VulCode">
    <meta property="og:description" content="Meta tags are snippets in a page's head that give Google and social networks the title, description and image. Preview the Google result and copy the code.">
    <meta property="og:url" content="https://vulcode.com/en/tools/meta-tag-generator">
    <meta property="og:site_name" content="VulCode">
    <meta property="og:locale" content="en_US">
    <meta property="og:image" content="https://vulcode.com/icon-512.png">
    <meta property="og:image:alt" content="The VulCode mark">
    
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:image:alt" content="The VulCode mark">

    X takes the title, description and image from the Open Graph tags, so the code does not repeat them.

    How to use it in four steps

    Step by step, with this page's example.

    1. 01

      Type the title, the description and the full page URL. The Google preview changes with every character.

    2. 02

      Check the bars under the preview. The title should fit in about 600 px and the description in about 920 px.

    3. 03

      Add an image and a site name for sharing, and under Indexing decide whether the page should show up in Google.

    4. 04

      Copy the code and paste it into the head section of the page in place of old tags with the same names.

    What you enter

    This page's title, its description and the URL https://vulcode.com/en/tools/meta-tag-generator

    What you get
    <title>Meta Tag Generator with a Google Result Preview | VulCode</title>
    <meta name="description" content="Meta tags are snippets in a page's head that give Google and social networks the title, description and image. Preview the Google result and copy the code.">
    <link rel="canonical" href="https://vulcode.com/en/tools/meta-tag-generator">
    <meta name="robots" content="index, follow">
    These are the first four lines of the output. The og: tags and the X card follow.

    Questions

    What are meta tags and what are they for?
    They are snippets in the head of a page that give Google and social networks the title, description, canonical URL and sharing image. They are not visible on the page, yet they decide how the Google result and the link card look.
    How long should a meta description be?
    About 920 px on desktop, which is usually 140 to 160 characters. It matters more that the description sums the page up concretely, and the bar under the preview shows whether it fits.
    How many characters can a page title have?
    Google counts width, not characters. On desktop a title usually gets an ellipsis at around 600 px, which is 50 to 60 characters. Narrow letters such as i or l take less room than W or M, so the tool measures pixels and shows the character count alongside.
    Why does Google show a different description from mine?
    The meta description is a suggestion. Google shows a snippet of the page when it decides that fits the search better. A description that sums up this particular page in concrete words stays in the results more often than a general slogan repeated across the site.
    What is the canonical tag for?
    It points Google to the main URL when the same content lives under several, for example with a ?utm parameter, or with and without a trailing slash. Use the full URL with https:// and the domain. Google treats canonical as a strong hint, not an order.
    How are Open Graph tags different from X tags?
    Open Graph is read by Facebook, LinkedIn, Discord, Slack and most messengers. X has its own twitter: tags, but when they are missing it takes the title, description and image from Open Graph. So with both groups on, the tool adds only the card type, the account and the image description for X.
    Does noindex remove a page from Google straight away?
    No. The page drops out of the results when Google's crawler visits it again and sees the tag. It must not be blocked in robots.txt, or the crawler never reads the tag. For a quick hide there is the Removals tool in Search Console, but it only works for a limited time.
    Is anything sent to your server?
    No. The preview and the code are built in your browser, and the tool does not even fetch the image from the URL you give, so you can work on a page that is not public yet.

    Tell us what you want to build.

    A free quote comes back within an hour during working hours. You talk to the person who writes the code.