Skip to content
ToolZone

Meta Tag Generator

Generate the standard HTML meta tags for title, description, and other fields, giving you ready-to-paste code for your page's head section.

Runs in your browser. Nothing you enter or upload leaves your device.

0/60
0/160
Page type

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Meta Tag Generator

Every page needs a title and description for search results, and Open Graph and Twitter Card tags so links look good when shared. This Meta Tag Generator builds all of those tags, plus charset, viewport and canonical tags, with length counters and a search result preview, so you can paste one block into your page's head.

How it works

The page title produces a <title> element, a meta name="title" tag, og:title, twitter:title, and a twitter:card tag set to summary_large_image. The description produces meta name="description", og:description, and twitter:description. The URL produces og:url, and the image URL produces og:image and twitter:image.

Each tag is written only when its source field has a value, so an empty Image URL field simply leaves out the two image tags. Your text is inserted exactly as typed, without HTML escaping. The output updates live and can be copied with one click.

How to use

  1. 1

    Type your Page title, ideally under about 60 characters.

  2. 2

    Write a Description of roughly 150-160 characters that summarizes the page.

  3. 3

    Enter the page's canonical URL and the full URL of a share image.

  4. 4

    Add a site name and X handle if you have them, check the preview, then click Copy tags and paste the block inside the <head> of your page.

Worked examples

A bakery landing page

A small business adding share previews to its home page.

Input
Title: Rosemary Bakery - Fresh Bread Daily Description: Sourdough, pastries and custom cakes baked every morning in downtown Portland. URL: https://rosemarybakery.com Image: https://rosemarybakery.com/og.jpg
Result
<title>Rosemary Bakery - Fresh Bread Daily</title> <meta name="title" content="Rosemary Bakery - Fresh Bread Daily"> <meta name="description" content="Sourdough, pastries and custom cakes baked every morning in downtown Portland."> <meta property="og:title" content="Rosemary Bakery - Fresh Bread Daily"> <meta property="og:description" content="Sourdough, pastries and custom cakes baked every morning in downtown Portland."> <meta property="og:url" content="https://rosemarybakery.com"> <meta property="og:image" content="https://rosemarybakery.com/og.jpg"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Rosemary Bakery - Fresh Bread Daily"> <meta name="twitter:description" content="Sourdough, pastries and custom cakes baked every morning in downtown Portland."> <meta name="twitter:image" content="https://rosemarybakery.com/og.jpg">

Title only

Quickly generating tags for an internal page with no image.

Input
Title: Team Handbook
Result
<title>Team Handbook</title> <meta name="title" content="Team Handbook"> <meta property="og:title" content="Team Handbook"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Team Handbook">
Limitations
The preview is an approximation; Google may rewrite titles and descriptions. There are no options for robots, hreflang or article dates; add those by hand. Length limits are character counts, while search engines actually cut by pixel width.
Assumptions
The tags will be placed inside the HTML <head> of a single page. The image URL points to a publicly accessible image.
Privacy
Tags are generated in your browser, and nothing you enter is sent or saved.

Frequently asked questions

How long should a meta description be?+

Around 150 to 160 characters is a commonly used target, since longer descriptions are often truncated in search results.

Do meta keywords tags still matter for SEO?+

No. Major search engines ignore the meta keywords tag, which is why this generator does not include it. Title and description tags still matter.

What are Open Graph tags?+

They are og: meta tags that social platforms and messaging apps read to build link previews, including the title, description, URL, and image.

Do I need both Open Graph and Twitter tags?+

X (Twitter) falls back to Open Graph tags for most fields, but it needs twitter:card to choose the large image layout. Including both, as this tool does, gives consistent previews.

Why is my link preview not updating?+

Platforms cache previews. After changing your tags, use the platform's sharing debugger or post inspector to fetch the page again.

Related tools