Meta tag generator

Enter a title, description, URL and image, and get a complete set of tags to paste into your page's code. Next to it you'll see how a link to the page will look when someone shares it on Facebook or in a message.

How the shared link will look

No image

Code for your head section

    Runs in your browser. Nothing is sent or stored. Your browser only loads the image from the URL you enter so it can show it in the preview.

    How to use it

    1. Type the page title and description. The counters show whether they fit in what Google displays.
    2. Enter the full page URL. It goes into the canonical tag and into og:url.
    3. Paste the URL of the image you want to appear when the link is shared on Facebook, LinkedIn or in a messaging app.
    4. Copy the code and paste it into the head section of that page.

    Quotes, the & sign and other special characters in the title are handled for you. Any field you leave empty simply won't appear in the code.

    What's in the code and why

    TagWho uses itWhat for
    titleGoogle, browsersthe blue title in search results and the text on the browser tab
    meta descriptionGooglethe gray text under the title, unless Google picks its own snippet
    link canonicalGooglenaming the right URL when the content loads at several
    og:title, og:description, og:imageFacebook, LinkedIn, Messenger, WhatsApp, Slackthe card with an image next to a shared link
    twitter:cardXa large image instead of a thumbnail
    meta robotsGoogle and other search enginesonly when the page should stay out of search results

    To see exactly how the title and description look in search results, with pixel measurements, use the SERP preview.

    The most common mistakes

    • The same title and description on every page. Google can't tell which page to show, and it often picks the wrong one.
    • No image. A link shared on Facebook without og:image shows a gray box or a random image from the page, often a partner logo from the footer.
    • A forgotten noindex. It's left over from building the site and quietly keeps it out of Google. If a page hasn't shown up in search for months, check its code and your robots.txt file.

    Questions

    What are meta tags?
    Short pieces of information about a page, stored in its code in the head section. Visitors don't see them on the page, but Google uses them (for the title and description in search results), and so do Facebook, LinkedIn and messaging apps (for the image, title and description next to a shared link).
    Where do I paste this code?
    Between the <head> and </head> tags of the page. If you're on WordPress with Yoast or Rank Math, don't paste the code. Copy the title, description and image into the plugin's fields instead, and it will output the same tags. Two sets of tags on one page just makes a mess.
    Why is there no keywords tag?
    Because Google has ignored it since 2009 and says so openly. These days the only thing a keywords list in your code does is show competitors what you're trying to rank for.
    What is a canonical URL?
    The canonical tag tells Google which address is the real one when the same content loads at several, for example with and without www, with and without a trailing slash, or with ad tracking parameters. On a regular page it simply points to itself.
    What image should I use for Open Graph?
    Landscape, 1200 by 630 pixels, under 1 MB, JPG or PNG. The image URL has to be a full address, including https://. Keep the important part in the middle, because some apps crop the sides to a square.
    I changed the image, but Facebook still shows the old one. What now?
    Facebook caches link previews for a long time. Paste the page URL into the Sharing Debugger (developers.facebook.com/tools/debug) and click "Scrape Again." LinkedIn has a similar tool called Post Inspector.

    More free tools