Meta Tag Generator

Free meta tag generator: write your title and description with live length checks, preview the Google result and social card, and copy the HTML head tags with Open Graph and X (Twitter) cards.

Search engines

Aim for 30–60 characters (about 600 pixels).

Aim for 120–158 characters.

One per line: language code, a space, then the full URL of that version.

Social sharing

Browser

characters
Google search preview

Approximate desktop preview. Google may shorten or rewrite titles and descriptions.

Social card preview
1200 × 630
    HTML for your <head>
    
                            

    Generate HTML Meta Tags With Live Previews

    Meta tags decide how your page looks before anyone visits it: the blue link and snippet in Google, and the image card that appears when someone shares the link in a chat or on social media. This meta tag generator writes all of them for you from one simple form.

    Character and pixel counters show when a title or description is too long, the previews update as you type, and the generated HTML is escaped correctly, so quotes, ampersands and angle brackets in your text never break the page. Paste the result into the head of your page or your CMS template.

    Page title and URL turned into HTML meta tagsTitle + URL<meta> tagsMeta TagGenerator

    How to use the meta tag generator

    1. Write the page title and meta description. Watch the counters: green means the length is in the recommended range.
    2. Add the canonical URL, the full address you want search engines to index, and choose the robots setting.
    3. Fill in the social fields: share image URL, image alt text, site name and X (Twitter) username.
    4. Check both previews and read any warnings under the social card.
    5. Copy the HTML and paste it inside the <head> element of the page, replacing older duplicates.

    Meta tag reference

    TagWhat it doesRecommendation
    <title>Clickable headline in search results and the browser tab text30–60 characters, unique per page
    descriptionSuggested snippet under the search result120–158 characters, written for people
    robotsAllows or blocks indexing and link followingindex, follow unless the page should stay out of search
    canonicalNames the preferred URL when several URLs show the same contentAbsolute URL, usually the page itself
    hreflangLinks translated or regional versions of a pageEvery version lists all others and itself
    og:*Title, description, image and type used by Facebook, LinkedIn, WhatsApp and SlackImage 1200 × 630 px, absolute URL
    twitter:cardChooses the X (Twitter) card layoutsummary_large_image for most pages
    theme-colorTints the browser toolbar on supporting mobile browsersYour main brand color
    viewportMakes the page render at device width on phoneswidth=device-width, initial-scale=1

    How the previews and counters work

    Google does not cut titles at a fixed number of characters. It cuts them by width: on desktop, titles wider than roughly 600 pixels end with an ellipsis. The generator measures your title in the font size Google uses, so a title full of wide letters like W and M is flagged sooner than one with narrow letters like i and l. Descriptions are trimmed to about two lines, which usually means 150–160 characters on desktop and less on mobile.

    The social card preview shows how most platforms combine og:title, og:description and og:image. Choosing the small summary card switches the layout to a square thumbnail next to the text. All values you type are escaped before they are written into the HTML, so a title such as Tips & "Tricks" becomes valid attribute text.

    Tips for better meta tags

    • Make every title unique. Put the main topic first and your brand last, for example Handmade Mugs | Clay & Co.
    • Write descriptions as a promise. Say what the visitor gets on the page. Google rewrites descriptions that do not match the search, so keep them specific.
    • Prepare a real share image. 1200 × 630 pixels with large text works on Facebook, LinkedIn and X. Create it with the image resizer and keep the file small with the image compressor.
    • Use absolute URLs for the canonical link, hreflang links and images. Social networks cannot resolve relative paths.
    • Pick a theme color with enough contrast against white toolbar text. The color picker helps you find the exact code.
    • Skip the meta keywords tag. Google has ignored it for many years.
    • Finish the head with icons from the favicon generator.

    Frequently Asked Questions

    Common questions about HTML meta tags.

    Meta tags are HTML elements in the head of a page that describe it to browsers, search engines and social networks. They are not visible on the page itself, but they control the search snippet, the share card and how the page renders on phones.

    Keep it between 30 and 60 characters. Google cuts titles that are wider than about 600 pixels, so the counter above shows both the character count and the measured width.

    Aim for 120 to 158 characters. Shorter descriptions waste space, and longer ones are usually cut with an ellipsis. Google can still choose other text from the page if it fits the search better.

    The title is a ranking signal and the description affects how many people click your result. Open Graph and X card tags do not change rankings, but they make shared links far more attractive.

    Open Graph tags (og:) were created by Facebook and are read by most platforms, including LinkedIn, WhatsApp and Slack. X reads its own twitter: tags and falls back to Open Graph when they are missing. The generator outputs both.

    Use 1200 × 630 pixels (a 1.91:1 ratio) as a JPG or PNG with an absolute URL. Keep important text away from the edges because some apps crop the image.

    Paste it inside the head element of your HTML, before the closing head tag. In WordPress, Laravel or another CMS, put it in the layout template or in the SEO fields that print these tags.

    Social networks cache previews. After changing the tags, ask the platform to scrape the URL again with its sharing debugger or post inspector, or add a query string to the URL.