Meta Tag Generator

Meta Tag Generator

Page basics

Shown as the clickable heading in search results and the browser tab. Aim for roughly 50-60 characters; width matters more than the count.
Not a ranking factor, but it is often what people read before choosing a result. Around 120-160 characters is the usual sweet spot.
Ignored by the big search engines for ranking; harmless in small doses.

Technical

Goes on the html tag, not in a meta tag - the output reminds you.
Leave the default unless you know why you are changing it. Avoid maximum-scale=1 and user-scalable=no - they block pinch zoom.
The one address you want search engines to treat as the original. Must be absolute, with the protocol.
Tints the browser toolbar on supporting mobile browsers and installed web apps.

Robots directives

Indexing
Links
-1 means no limit, 0 means no text snippet.
"large" lets a full-width image appear beside the result.

Open Graph

Absolute URL to a public image, ideally about 1200 x 630 px.

Twitter / X card


                                
Search snippet preview (approximate)
www.example.com › page
Your page title appears here
Your meta description appears here.

Everything runs in your browser. Nothing you type is uploaded; your entries are kept only in this browser's local storage.

What This Tool Does and Why the Head Block Matters

Every HTML page has a <head> that visitors never see but machines read first. Search engine crawlers take the title and description from it to build your result listing; chat apps and social networks read Open Graph and Twitter card tags to draw the preview card when someone shares your link; browsers read the viewport, character set and theme colour to decide how to render the page. Get any of these wrong and the page may show up with a cut-off title, a blank grey preview card, or a layout that is unreadable on a phone.

This generator turns that list of tags into a form. Fill in the fields, watch the output on the right update as you type, and copy or download the finished block to paste between your page's <head> tags. It is built for the people who usually end up doing this by hand: small-business owners editing a Shopify, WordPress or static site, marketers preparing a landing page, and developers who want a correct block without re-reading the specification every time. Quotes, ampersands and angle brackets inside your text are escaped automatically so the markup can never break, and URL fields refuse anything that is not a full absolute address.

How the Length Counters Work

Search engines do not cut a title after a fixed number of characters; they stop when it runs out of horizontal room in the result. That is why the title counter reports an approximate pixel width alongside the character count. The tool draws your title in a 20 px sans-serif font on an invisible canvas, measures it, and compares the result with a desktop budget of roughly 580 px:

fits if width(title, 20 px sans-serif) ≤ ~580 px   |   description fits if length ≤ ~160 characters
green  comfortably inside the budget
amber  within about 10% of the limit, or shorter than is usually useful
red  over the budget - the end is likely to be replaced with an ellipsis

A worked example shows why width beats count. The sample title Handmade Leather Wallets - Free Shipping Across India | Arjun Leather Co. is 72 characters and measures about 640 px, so the brand name at the end would almost certainly be dropped on desktop and even more of it on a phone. Trimming it to Handmade Leather Wallets, Free India Shipping | Arjun Leather Co. brings it to 64 characters and about 560 px, which fits. A title of 64 characters made of narrow letters can fit where a 55-character title full of capitals and Ws does not.

The description counter is simpler - a character budget of about 160 with a warning above 150 - because descriptions wrap over two lines and the exact cut-off varies more by device. Both limits are estimates drawn from how results commonly render; search engines change their layouts and may rewrite your text anyway, so treat the colours as guidance rather than a guarantee.

Field Reference: What Each Tag Is For

TagRead byWhat it controls
<title>Search engines, browsers, bookmarksThe headline of your search listing and the text on the browser tab. The single most important line on the page.
meta descriptionSearch enginesThe grey summary under the headline. Not a ranking signal, but it influences whether people click.
meta keywordsFew modern systemsLargely ignored for ranking. Optional; omit it unless a specific tool of yours reads it.
meta robotsSearch crawlersWhether the page may be indexed, whether its links are followed, and how much of it may be shown as a preview.
link canonicalSearch enginesDeclares the preferred URL when the same content is reachable at several addresses (tracking parameters, http vs https, trailing slash).
meta charsetBrowsersHow bytes become characters. UTF-8 covers every script, including Devanagari, Tamil and emoji; put it first in the head.
meta viewportMobile browsersWithout it a phone renders the page at desktop width and shrinks it. Required for any responsive layout.
meta theme-colorMobile browsers, installed web appsTints the address bar or title bar to match your brand.
og:*Social networks, chat apps, link unfurlersTitle, description, image and type of the preview card shown when the link is shared.
twitter:*Twitter / X and some other readersOverrides or supplements the Open Graph card; the card type chooses between a small square image and a wide one.
html langSearch engines, screen readers, translation toolsNot a meta tag - it belongs on the <html> element. The output includes a reminder comment with your chosen language.

Common Mistakes the Generator Helps You Avoid

Relative image URLsAn og:image of /img/share.jpg is useless to a link unfurler on another server. Every URL field insists on a full https:// address.
Unescaped quotesA title such as 5" Phone Stand will silently end the attribute early and corrupt the tag. The tool converts quotes, ampersands and angle brackets to safe entities.
noindex left on after launchStaging sites are often set to noindex and the tag survives the move to production. The summary pills flag noindex loudly so it is not missed.
Identical titles everywhereA site-wide title repeated on every page tells search engines nothing about each one. Write the title per page and put the brand name last.
Zoom disabledAdding user-scalable=no to the viewport locks out people who need to pinch-zoom. The default viewport here leaves zoom enabled.
No share imageA missing og:image means a bare grey card in chat apps. The output warns whenever Open Graph is on but no image URL has been given.

Frequently Asked Questions

Is anything I type sent to a server?

No. The generator is plain JavaScript running in your browser - the title, description and URLs you enter never leave your device. Your entries are kept in local storage on your own machine so they are still there when you come back, and the Reset button clears them.

Why does the title counter show pixels as well as characters?

Search engines cut titles by available width, not by a fixed character count. A title full of wide letters like W and M runs out of room sooner than one built from narrow letters like i and l. The tool measures the title in a standard 20 px sans-serif font and treats roughly 580 px as the point where a desktop result is likely to be shortened. It is an estimate - real rendering depends on the device and font - so use it as a guide, not a rule.

Does the keywords meta tag still help with ranking?

The major search engines have said for years that they ignore the keywords tag for ranking, which is why it is optional here. It does no harm in small doses and some internal site-search tools or older systems still read it, but do not expect it to move your position in results.

What does the "inherit from basic fields" switch do?

When it is on, the Open Graph title, description and URL are copied from the main title, meta description and canonical URL, and the Twitter card title, description and image are copied from the Open Graph fields. Switch it off when you want the social preview to say something different from the search snippet - for example a punchier headline for sharing.

Should I set the robots tag to index, follow on every page?

index, follow is what crawlers assume when no robots tag is present, so the tag is optional on normal pages - it is included so your intent is explicit. The tag matters when you want the opposite: noindex on thank-you pages, internal search results, staging copies or thin duplicate pages, or nofollow on pages whose links you do not want to vouch for.

What size should the Open Graph image be?

A landscape image around 1200 by 630 pixels, under about 1 MB, in JPEG or PNG, is the widely used safe choice and works for both Open Graph and the large Twitter card. Keep important text and faces away from the edges, because some apps crop to a square or a shorter rectangle. The image URL must be absolute (starting with https://) and publicly reachable - the tool flags relative paths.