Skip to content

Meta Tag Generator

Generate HTML meta tags for SEO, Open Graph, and Twitter Cards with a live preview of search and social results.

Meta Tag Generator tool

Loading...

Example

Input: Page Title: Best Hiking Boots 2026 (other fields left empty)

Result: <title>Best Hiking Boots 2026</title>, <meta property="og:title" content="Best Hiking Boots 2026" /> and a summary_large_image Twitter card

The title is reused for the Open Graph and Twitter titles when those fields are empty, alongside the charset and viewport tags. Special characters are HTML-escaped.

Tags This Generator Writes

TagFilled from
meta charsetAlways added (UTF-8)
meta viewportAlways added
titlePage Title
meta descriptionMeta Description
link rel="canonical"Canonical URL
og:titleOG Title, or Page Title if empty
og:descriptionOG Description, or Meta Description if empty
og:typeOG Type (website by default)
og:urlCanonical URL
og:imageOG Image URL
twitter:cardCard Type (summary_large_image by default)
twitter:siteTwitter @handle (@ added if missing)
twitter:title, twitter:descriptionSame values as og:title and og:description
twitter:imageOG Image URL

Tags whose source field is empty are left out.

  1. Enter your page title, keeping it to about 60 characters.
  2. Write a meta description of 150 to 160 characters that says what the page offers.
  3. Fill in the Open Graph fields (OG title, OG description, OG image URL) for social previews.
  4. Choose a Twitter Card type and add your @handle.
  5. Check the live previews for Google search and social cards.
  6. Click the Copy button on the Generated HTML panel and paste the tags into the head of your page.

Which Meta Tags a Page Needs and Why

This generator writes the HTML meta tags a page needs for search results and social shares. Fill in a title, a description and a few social fields. You get a ready-to-paste block for the head of your page. You also get previews of how it may look on Google, Facebook and Twitter, now called X.

The title tag and meta description are what search engines most often show in results. Aim for about 50 to 60 characters for the title and 150 to 160 for the description. The counters turn green inside those ranges and red outside them. Google may rewrite either one if it thinks other text fits a search better, but a clear and honest pair gives you the best chance. The canonical link tells search engines which URL is the main copy of a page. That matters when the same content can be reached at several addresses.

Open Graph tags start with og:. They control the card that appears when someone shares your link on Facebook, LinkedIn, Slack and many chat apps. Twitter Card tags do the same job on X. If you leave the OG title or description empty, the tool reuses your page title and meta description. The Twitter tags copy the Open Graph values, so you only type things once. Every block also starts with the charset and viewport tags that modern pages need.

Quotes, ampersands and other special characters are escaped for you, so they cannot break the HTML. The previews are close guides, not exact copies of each site. Give the page a clean address with the Text to Slug Generator. If you ever move it, the HTTP Status Codes reference explains which redirect to use.

Sources

Frequently Asked Questions

Aim for about 50 to 60 characters for the title and 150 to 160 for the description, which is the range this tool marks in green. Google trims by pixel width, not by an exact character count, so wide letters such as W use up space faster. Put the most important words first in case the end gets cut.
No. Google has said it does not use the meta keywords tag for ranking, and other major search engines give it little or no weight. That is why this generator does not include it. Spend the effort on a clear title, a useful description and good content on the page itself.
Social sites cache the preview the first time a link is shared, often for days. After you update your tags, ask them to read the page again. Facebook has a Sharing Debugger and LinkedIn has a Post Inspector for this. Also check that the og:image address is public and loads without a login.
X can fall back to Open Graph tags for the title, description and image. It still looks for twitter:card to decide the card style, such as a small summary or a large image. Including both sets, as this tool does, gives you the most control on every platform for a few extra lines of HTML.

Related Tools

HTML Minifier

Minify HTML by removing comments and collapsing whitespace between tags and inside tags to reduce document size.

Developer Tools

Text to Slug and URL Generator

Convert any text into a clean, URL-friendly slug. Handles special characters and accented Latin letters automatically.

Text and Writing

URL Parser

Break down URLs into protocol, host, port, path, query parameters, and hash components.

Developer Tools

HTTP Status Codes Reference

Search and browse over 60 HTTP status codes grouped by class, each with its official name and a plain description.

Web and SEO Tools

Safelink Decoder

Decode Microsoft SafeLinks, Google AMP cache URLs, and other URL wrappers to reveal the original destination.

Web and SEO Tools

HTML Entity Encode and Decode

Convert special characters to HTML entities and decode HTML entities back to readable text.

Developer Tools