Meta tag generator

Write a title and description that fit Google's results, then add the canonical, robots, Open Graph and X tags. Preview the search result and the social card, and copy clean code for the head of your page.

  • Pixel widths, not just characters
  • Google and social card previews
  • Runs in your browser
Live preview
0 chars, 0 / 600 px
0 chars, 0 / 920 px

Search result

Start with a title

Title Empty
Snippet Empty
Tags
—
Social image
None
Indexing
Allowed
  1. Search result
    —
    Title and description
  2. Canonical
    —
    Preferred address
  3. Social card
    —
    Open Graph and X
  4. Paste into
    <head>
    Or your SEO plugin

Build your meta tags

Search basics

The title and description are edited in the panel at the top, or here.

Social sharing

Open Graph tags for Facebook, LinkedIn, WhatsApp and others. X reads them too.

Extras

Optional tags. Empty fields are left out of the code.

Tints the browser bar on some phones.
Code for the head

        

Google result

Desktop, approximate

Social card

Large image card

Each app styles cards a little differently. This shows the shared parts: image, site, title and description.

What meta tags do

Lines in the head of a page that describe it to search engines, browsers and social apps. Visitors never see them on the page.

They shape the click

The title and description are what people read in search results. They do not lift rankings directly, but a clear, specific snippet earns more clicks.

Google measures in pixels

Titles are cut at about 600 px on desktop, so "WWW" uses more room than "iii". Counting characters is only a rough guide.

Social apps read Open Graph

Without og: tags, a shared link shows whatever the app guesses, often the wrong image. One image of 1200 x 630 px works almost everywhere.

Less is more

Robots index and follow are the default, keywords are ignored, and language belongs on the html element. Leaving them out keeps the head clean.

The tags this generator writes

What each one does, and what a good value looks like.

TagWhat it doesGood value
<title> Clickable headline in search results and the browser tab About 600 px wide, unique on every page
meta description Summary that may be shown under the title About 920 px, written for people, not keywords
link rel="canonical" The preferred URL when the same page has several addresses Full https:// address of the page itself
meta robots Asks search engines not to index the page or follow its links Leave out unless you need noindex or nofollow
og:title, og:image … Open Graph: the card shown on Facebook, LinkedIn, WhatsApp and more Image 1200 x 630 px, full URL
twitter:card Card style on X. X reads the Open Graph tags for the rest summary_large_image when you have an image
meta viewport Makes the page fit phone screens width=device-width, initial-scale=1

How to use this generator

From a blank page to tags in your head section in four steps.

  1. Write the title and description

    Type them in the panel above. The counters show characters and the pixel width Google uses to cut them.

  2. Add the page details

    Canonical URL, robots, social image, site name and X handle. Leave anything you do not need empty and it is left out.

  3. Check the previews

    See the Google result and the social card. The checks warn about cut-off text, a missing image or a noindex.

  4. Paste into the head

    Copy or download the code and paste it before the closing head tag, or copy each value into your SEO plugin.

What this tool does, and what it doesn't

A plain list, so you know exactly what to expect.

This tool does

  • Measure title and description in pixels
  • Write title, description, canonical and robots tags
  • Write Open Graph and X card tags
  • Preview the Google result and social card
  • Check the social image size and format
  • Leave out tags you do not need

This tool does not

  • Add the tags to your site for you
  • Read the tags of an existing page
  • Guarantee Google uses your text
  • Improve rankings on its own
  • Refresh social apps' cached previews
  • Send your text to our server

Where your data goes

Nowhere outside your browser. The code is generated on this page and your setup is saved in your browser's local storage so a reload keeps it. Reset clears it. If you enter an image URL, your browser loads that image from its host to show the preview. Like any website, our server keeps normal access logs of page visits, as described in our privacy policy.

Check a live page's tags

Why your results might look unexpected

The six surprises people run into most, and what each one means.

Google shows another title

Google rewrites titles that are long, repetitive or do not match the page. Align the title with the main heading.

The old image still appears when shared

Social apps cache previews. Refresh them in the Facebook Sharing Debugger or LinkedIn Post Inspector.

Two titles in the page source

The theme or an SEO plugin already outputs tags. Use the plugin fields instead of pasting a second set.

The page vanished from Google

A noindex left over from a staging site removes the page. Check the robots line before publishing.

Small thumbnail instead of a large card

The image is smaller than about 600 px wide or the URL is not public. Use 1200 x 630 px and https.

Canonical points to the wrong page

Copying tags between pages copies the canonical too. Each page needs its own address there.

Questions about meta tags

Where do I paste these meta tags?

Inside the head element of the page, before the closing head tag. On WordPress, do not paste them into the theme: Yoast SEO, Rank Math and similar plugins already output a title, description, canonical and Open Graph tags, so enter the same text in the plugin's fields instead. Two sets of tags on one page confuse search engines and social networks.

How long should the title and description be?

Google cuts titles by width, not by a fixed number of characters. On desktop it shows roughly 600 pixels, which is about 50 to 60 characters. Descriptions are usually cut after about 920 pixels on desktop, around 150 to 160 characters. The counters here measure the pixel width with the same Arial sizes Google uses, so treat them as a close estimate.

Why does Google show a different title or description?

Google rewrites titles and snippets when it thinks other text on the page answers the search better, for example when a title is very long, stuffed with keywords or the same on many pages. A unique, accurate title that matches the main heading, and a description that summarises the page, are the most likely to be used as written.

Do meta keywords still matter?

Not for Google, which has ignored the keywords tag for ranking since 2009. Other search engines give it little or no weight either. This generator leaves the tag out unless you fill in the field, for example for an internal site search that reads it.

What size should the social image be?

Use 1200 x 630 pixels, a 1.91:1 ratio, as a JPG or PNG under 5 MB, with a full https:// address. Smaller images may be shown as a small thumbnail instead of a large card. Keep text away from the edges, because some apps crop the image to a square or a 2:1 frame.

Why don't my new tags show when I share the link?

Facebook, LinkedIn, X and WhatsApp keep a copy of a link's preview for days. After changing the tags, ask them to read the page again with the Facebook Sharing Debugger or the LinkedIn Post Inspector. Also check that a caching plugin or CDN is not still serving the old HTML.

Is anything I type sent to your server?

No. The tags are built in your browser and nothing is sent to our server. Your setup is saved in your own browser so a reload keeps it, and Reset clears it. If you enter an image URL, your browser loads that image from its host to show the preview and check its size. Like any website, our server keeps normal access logs of page visits, as described in our privacy policy.