Meta Tag Generator: HTML, Open Graph and Twitter Card Tags
This meta tag generator turns a page title, a description and an image address into the
<title>, meta description, Open Graph and Twitter card tags
you paste into a page's head. A Google-style result and a social card update as you type, so you can see
how the page will look before you copy anything. Everything runs in your browser and nothing is uploaded.
How to Generate Meta Tags for a Page
- Type the Page title. The counter under it reads n / 60 and turns red, with a hint, past 60 characters.
- Type the Description. Its counter reads n / 160 and turns red past 160.
- Add an Image URL, the full address of the picture a shared link should show, and an Author if you want a meta author tag.
- Open More options to set a Canonical URL or to stop search engines indexing the page or following its links.
- Press Copy tags under the HTML tags block. The button reads Copied for a moment, and the whole block is on your clipboard.
There is no Generate button: the HTML tags block rewrites itself on every keystroke, and shows a placeholder until you type something. A field you leave empty adds no tag, so a half-filled form still gives you a clean block.
Which Meta Tags You Get
The tags come in three groups separated by a blank line: the standard tags, then Open Graph, then the Twitter card. This is the output for a page with a title, description, author, image and canonical address:
<title>Handmade Ceramic Mugs</title><meta name="description" content="Small-batch stoneware mugs, glazed by hand and made to order."><meta name="author" content="Rosa Pottery"><link rel="canonical" href="https://example.com/mugs/"><meta property="og:type" content="website"><meta property="og:title" content="Handmade Ceramic Mugs"><meta property="og:description" content="Small-batch stoneware mugs, glazed by hand and made to order."><meta property="og:image" content="https://example.com/mug.jpg"><meta property="og:url" content="https://example.com/mugs/"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="Handmade Ceramic Mugs"><meta name="twitter:description" content="Small-batch stoneware mugs, glazed by hand and made to order."><meta name="twitter:image" content="https://example.com/mug.jpg">
| Group | Tags | Written when |
|---|---|---|
| Standard | title, description, author, robots, canonical | Each one only if its field is filled in. The robots tag appears only when you untick an option. |
| Open Graph | og:type, og:title, og:description, og:image, og:url | As soon as there is a title, description, image or canonical address. og:type is always website and og:url is your Canonical URL. |
| Twitter card | twitter:card, twitter:title, twitter:description, twitter:image | As soon as there is a title, description or image. The card is summary_large_image with an image and summary without. |
Characters that would break a tag are escaped for you: &, quotes and angle brackets
become entities, so a title like Tom & Jerry "Fans" stays valid HTML. Extra spaces and line breaks
are collapsed to a single space.
Title and Meta Description Length
The two counters, 60 for the title and 160 for the description, are advice and never block typing. Go past either and the number turns red with a hint, and the Search result preview shows the text cut off with an ellipsis at that length, the way a long result is shortened. Treat the limits as a guide: search engines trim by pixel width, so a title of narrow letters can fit more and one of wide letters less.
- Title: start with the words someone would search for, then add one thing that sets the page apart.
- Description: say what the page does in the first sentence, and keep the end for detail that can be cut safely.
- Search result preview: shows a breadcrumb line, a blue title and a grey description, so you can judge the result as a stranger would.
Open Graph Image and Social Card Preview
The Social card preview shows a large image card with the host name, the title and the description, which is how a shared link looks on most platforms. It loads your Image URL from its own host only, and says Image could not be loaded if the picture is missing or blocked. A wide image of about 1200 by 630 pixels is the usual size for a large card. The tool checks the address, not the picture, so open the preview to confirm the image really loads.
An Image URL or Canonical URL that is not a full http or https address is flagged and left out of the tags until it is valid.
Noindex, Nofollow and Canonical URL
More options is collapsed until you open it. It holds the Canonical URL and two checkboxes, both ticked by default:
- Let search engines index this page (untick for noindex): untick it and the block gains
<meta name="robots" content="noindex">. - Let search engines follow links on this page (untick for nofollow): untick it for
nofollow. Untick both and the content isnoindex, nofollow.
With both ticked the tool adds no robots tag at all, because index and follow are what a search engine does anyway.
Where to Put the Tags
Paste the block inside the <head> of the page, before the closing head tag. The tool leaves
out charset and viewport tags, since most pages already have them, and it does not
write JSON-LD schema markup. For the home-screen and browser-tab icons that sit in the same head, make them with the
Favicon Generator, and to check the length of a longer description before you
trim it, paste it into the Word Counter.
A noindex tag asks search engines to drop a page from their results. Untick the index box only on pages you really want hidden, and remove the tag again when the page should be found.
Frequently asked questions
What is an Open Graph tag?
An Open Graph tag is a meta tag whose property starts with og:, such as og:title, og:description and og:image. Facebook, LinkedIn, Slack, WhatsApp and many other apps read them to build the link card they show when someone shares your page. The Open Graph group in the HTML tags block is filled from the same Page title, Description and Image URL you typed.
How long should a meta description be?
The counter next to Description uses 160 characters, a common upper limit, and turns red past it. Google decides how much to show by width, not by character count, so 160 is a guide and not a hard rule. Put the part that makes someone click first, because the end is the part that gets cut.
What is the ideal title tag length?
Keep a title to about 60 characters, which is where the Page title counter turns red and the Search result preview adds an ellipsis. Longer titles are still valid HTML and the tool never stops you typing, but a search engine may shorten them. Put the words people search for at the start.
How do I add meta tags to HTML?
Press Copy tags and paste the block between the opening head tag and the closing head tag of your page. If the page already has a title tag or a meta description, replace it so the page does not carry two. On a site builder or CMS, look for a custom head code field or an SEO settings screen and paste the lines there.
What is a canonical tag used for?
A canonical tag tells search engines which web address is the main version of a page when the same content is reachable at more than one address, for example with and without tracking parameters. Enter the full address under More options in Canonical URL. The tool also uses it as og:url, so the shared link card points to the same address.
What does the noindex nofollow meta tag do?
Noindex asks search engines to leave the page out of their results, and nofollow asks them not to follow the links on it. Both boxes under More options start ticked, which means allowed, and the tool writes no robots tag. Untick one or both and you get a meta robots tag with noindex, with nofollow, or with both.
What is the difference between twitter card summary and summary_large_image?
The summary card shows a small square thumbnail beside the text, and summary_large_image shows a wide image above it. The tool picks for you: with a valid Image URL it writes summary_large_image, and without one it writes summary. A wide image of about 1200 by 630 pixels suits the large card.
Does it generate meta keywords?
No. Google has said it ignores the meta keywords tag, so the tool does not write one. It also leaves out charset and viewport tags, which most pages already have, and it does not make JSON-LD schema markup, a favicon or a sitemap.
Why is my Image URL left out of the tags?
Open Graph and Twitter expect a full web address, so the field shows a warning and the image is left out until it starts with http:// or https:// and has a host name. A relative path such as /images/cover.jpg does not count. The Canonical URL follows the same rule.
Is my text sent anywhere?
No. The tags are built in your browser as you type and nothing is uploaded. The only thing fetched because of what you type is the picture: the Social card preview loads your Image URL from its own host so that you can see it.
Recommended
-
Desktop Magnetic Whiteboard with MarkersSketch the title and description on a whiteboard, then type the final cut.
-
Logitech Litra Glow Streaming LightLight your own photo well and it makes a share card people click.
-
Wacom Intuos Small Pen Tablet (Bluetooth)Draw a custom share image to go with the tags you just copied.
Helps keep the tools free. ✨
Images are for illustration only. As an Amazon Associate I earn from qualifying purchases.