Meta Tag Generator

All the head tags a page needs, with a live Google preview and length checks.

  • SEO Tools
  • Free, no sign-up
  • Runs in your browser

Meta Tag Generator tool

Google preview
Your meta tags

About the Meta Tag Generator

Every page needs a small set of tags in its head section to be understood by search engines and shown properly when shared. This meta tag generator writes the title, meta description, canonical URL, robots instructions, Open Graph tags and X card tags from a short form, with a live preview of the search result, and produces a clean block of HTML to paste into your page or CMS. Unique titles and descriptions on every page help both search engines and searchers. For detailed title checks, use the SEO Title Generator, and for share previews, the Open Graph Generator.

Length matters more than character counts suggest. Google cuts titles at roughly 580 pixels on desktop and descriptions at about 920 pixels, so the tool measures the real width of your text in Google's font and shows whether it fits, along with a live preview of the result on desktop and mobile. Adjust the wording until nothing important is cut off.

Special characters are escaped correctly, so ampersands and quotes never break the HTML. Untick any group you do not need, for example the social tags on a private page, and the output updates at once. The tool runs entirely in your browser and nothing you type is sent anywhere.

To check how a finished title and description look together, use the SERP preview tool. For detailed social previews, try the Open Graph generator, and for duplicate-content control, see the canonical tag generator.

How to use the Meta Tag Generator

  1. Write the title and descriptionType the page title and meta description; the meters show if they fit Google's limits.
  2. Add the page detailsEnter the canonical URL, site name, share image and X handle.
  3. Choose the optionsPick the robots setting and which tag groups to include.
  4. Copy the tagsCheck the Google preview, then copy the tags into the head of your page.

Meta Tag Generator features

  • Title, description and canonical tags
  • Robots directives including max-image-preview
  • Charset and viewport tags
  • Open Graph tags for social sharing
  • X (Twitter) card tags
  • Pixel-width meters for title and description
  • Live desktop and mobile Google previews
  • Correct HTML escaping

Common uses

  • Setting up the head of a new web page
  • Improving titles and descriptions for better clicks
  • Adding social sharing tags to a blog
  • Fixing pages that show the wrong preview when shared
  • Teaching the basics of on-page SEO

Head tags in practice: setting up a restaurant site's home page, tag order, duplicate tags from plugins, verification codes and small mobile details

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

The tags in a page's head are invisible to visitors but shape how browsers display the page, how search engines understand it and how links to it look when shared. This guide sets up the head of a restaurant website's home page and covers tag order, duplicate tags added by plugins, robots instructions, verification codes, language and a few small details that improve the experience on phones.

A worked example: a restaurant's home page

A new restaurant website's home page head includes: the character set declared as UTF-8, a viewport tag for phones, a title naming the restaurant and its city, a meta description mentioning its cuisine and delivery area, a canonical link to the home page address, Open Graph and X card tags with a photo of the signature dish, a theme colour matching the brand and links to favicon files. Together they cover display, search, sharing and branding.

Order matters for the character set

The character set declaration should come first in the head, within the first 1,024 bytes of the page, so the browser reads everything after it correctly. Placing it later can cause Urdu and other non-English text to display incorrectly in some situations.

The viewport tag

Without a viewport tag, phones display pages as if on a desktop screen, shrunk to fit, with tiny text. The standard tag, setting the width to the device width and the initial scale to one, is essential for any page meant to be read on phones, which is most pages today.

Duplicate tags from plugins

On WordPress and similar systems, the theme and several plugins may each add their own description, canonical or social tags, producing duplicates that disagree. Search engines then have to guess which to use. Viewing the page source and searching for each tag name reveals duplicates, which are fixed by switching the feature off in all but one plugin.

Robots instructions

A robots meta tag can keep a page out of search results with noindex, or prevent snippets. Most pages need no robots tag at all, because indexing and following are the defaults. For files such as PDFs, the same instructions can be sent as an X-Robots-Tag HTTP header.

Verification codes

Search Console, Bing Webmaster Tools and some other services verify site ownership with a meta tag containing a code. Leave these tags in place after verification; removing them can cause ownership to lapse and lock you out of important reports.

Language

The html element's lang attribute declares the page language, such as en or ur. Search engines mainly judge language from the visible content, but browsers and screen readers rely on the attribute to choose fonts and pronunciation. Pages with language versions should also use hreflang links.

Small mobile details

Safari on iPhones may turn number sequences into tappable phone links automatically, which can misformat prices or order numbers. A format-detection meta tag can switch this off, while genuine phone numbers are marked up as explicit tel: links. The theme-color tag tints the browser bar on many phones to match the brand.

Common mistakes

  • Declaring the character set late in the head.
  • Leaving duplicate descriptions and canonicals from several plugins.
  • Removing verification tags after setup.
  • Forgetting the viewport tag on custom templates.

Related tools

To refine the title, use SEO Title Checker. For sharing previews, try Open Graph Generator, and to guide crawlers site-wide, Robots.txt Generator.

Icons and the manifest

The head is also where favicons, the Apple touch icon and the web app manifest are linked. Providing a few sizes, including a 180 pixel icon for iPhones, ensures the site looks tidy in browser tabs, bookmarks and home screens.

Resource hints

Tags such as preconnect, which warns the browser that it will need a connection to another domain, and preload, which fetches an important file early, can speed up pages when used for fonts or critical images. Too many hints compete with each other, so use only a few for resources that matter most.

Keep the head lean

Scripts placed in the head without defer or async block the page from appearing until they load. Move non-essential scripts lower or load them deferred, keeping the head for tags and small critical code. A lean head helps pages appear quickly on mobile connections.

Check after every change

After editing templates or installing plugins, view the page source and confirm the head still contains exactly one title, one description and one canonical, with the expected values. Search Console's URL Inspection shows what Google sees, confirming changes reached search engines.

Author and publisher details

Tags such as author are read by some browsers, tools and archives but have no direct effect on search rankings. Visible author names, author pages and accurate structured data do far more to show who stands behind the content.

Templates for many pages

On sites with many pages, head tags come from templates filled with each page's data. Test templates with unusual pages, such as very long titles or pages without images, to make sure they still produce sensible tags rather than empty values or broken markup.

Privacy

Tags are generated in your browser. Nothing you enter is sent anywhere or stored.

Further reading: How to Write Title Tags and Meta Descriptions That Get Clicks.

Frequently asked questions

Which meta tags matter for SEO?

The title tag and meta description shape how your page appears in search results, the canonical tag tells search engines the preferred URL, and the robots tag controls indexing. Open Graph and X tags do not affect rankings but control how links look when shared.

How long should a title tag be?

Aim for about 50 to 60 characters, but width is what really counts: Google truncates titles at roughly 580 pixels on desktop. Wide letters such as W and M take more room, so the tool measures pixels rather than counting characters.

How long should a meta description be?

Around 120 to 155 characters, or up to about 920 pixels on desktop. Google sometimes rewrites descriptions to match a search, but a clear, specific description still wins clicks when it is shown.

Does Google still use the meta keywords tag?

No. Google has ignored the keywords tag for ranking for many years, and other engines give it little or no weight, so this generator leaves it out. Spend the effort on a strong title and description instead.

What does max-image-preview:large do?

It allows Google to show a large image preview from your page in results, Discover and other surfaces. Without it, Google may only show a small thumbnail. Most sites that want visibility should allow large previews.

Where do I put the generated tags?

Paste them inside the head element of your page, before the closing head tag. In content management systems, use the SEO fields of your theme or plugin instead of pasting tags twice.

Is my data sent anywhere?

No. The tags and previews are created in this page on your device. Nothing you type is uploaded or stored, so you can safely work on unpublished pages.