Meta Tag Generator: SEO, Open Graph and X Card Tags
What Are Meta Tags?
Meta tags are a handful of lines in the <head> of a web page. Visitors never see them on the
page, but other programs read them: search engines take the title and description for their results, phones read
the viewport tag to size the page, and apps like Facebook, LinkedIn, X and WhatsApp read the Open Graph tags to
build the little card with a picture when someone shares your link.
This generator writes those tags for you. Fill in the form, watch the previews show roughly how the link will look
in a search result, a social card, an X card and a chat app, read the checks, then copy the tags into your page.
Everything happens in your browser, and your last form is remembered for next time.
How to Use It, Step by Step
Step 1 Start From Scratch, a Sample or Your Page
The form opens with an example page so you can see how it works. Press Reset to clear it, or
Import from HTML to paste the <head> (or the whole HTML) of a page you
already have. The form fills from the tags it finds, so you can fix an existing page instead of starting over.
The pasted HTML is only read, never run or shown.
Step 2 Write the Title and Description
Type the Page title and Meta description. Under each one a counter shows the
length and a bar fills up; it turns orange when Google would probably cut the text off. Add the
Page URL (the full address, starting with https://) and your Site name.
Step 3 Set Up the Share Card
Add an Image URL for social apps, with alt text and its width and height. The social title and
description follow the page ones until you type something different, which is handy when you want a shorter,
friendlier line for social media.
Step 4 Check the Previews
Switch between Search result, Social card, X card and
Chat app. These are our own simple mockups built from your text, so they won't match each app
pixel for pixel, but they show what gets cut off and whether the picture is there.
Step 5 Read the Checks, Then Copy
The Checks list under the code points out missing tags, long titles, image URLs that apps
can't load, and a forgotten noindex. Press Copy and paste the tags inside
<head>, replacing your old ones so nothing appears twice. Switch off
Comments if you don't want the <!-- --> notes.
💡 Every value is escaped for you. A quote, < or & in your description comes out
as ", < or &, so it can't break your HTML.
The Meta Tags That Matter Today
A basic page needs only a few lines. Here's a complete, valid <head> for a recipe page:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Easy Banana Bread Recipe | Example Kitchen</title>
<meta name="description" content="A soft banana bread made in one bowl. About an hour from start to finish.">
<link rel="canonical" href="https://example.com/recipes/banana-bread">
</head>
And here's what each important tag is for:
| Tag | What it does | Needed on |
<meta charset="utf-8"> | Tells the browser how the text is encoded, so é, ü and € show correctly. Put it first in <head>. | Every page |
<meta name="viewport" ...> | Makes phones show the page at its real size instead of a zoomed-out desktop view. | Every page |
<title> | The name in the browser tab and usually the blue link in search results. | Every page |
<meta name="description"> | A short summary. Search engines often show it under the title, though they may pick other text. | Every page you want found |
<link rel="canonical"> | Says which URL is the main one when a page has several addresses. | Most pages |
<meta name="robots"> | noindex keeps a page out of search; nofollow says not to follow its links. Leave it out for normal pages. | Only to block |
og:title, og:description, og:image, og:url | Open Graph: the title, text and picture of the card when the link is shared. | Pages people share |
twitter:card | Asks X for a card. summary_large_image gives the big picture version. | Pages shared on X |
<html lang="en"> | Not a meta tag, but it belongs to the same job: screen readers and translation tools use it. | Every page |
Meta Tags You Can Skip
Lots of old guides list dozens of meta tags. Most of them do nothing today. The best-known one is
keywords: Google stopped using it for ranking long ago, so this generator doesn't make it.
<!-- Ignored by Google. Safe to delete. -->
<meta name="keywords" content="banana bread, recipe, easy, baking">
-
keywords:
Google ignores it for ranking and has said so for years. -
revisit-after:
Search engines decide on their own how often to come back. -
rating, distribution, language:
Old tags that today's search engines don't use. Use <html lang> for the language. -
generator:
Only says which program made the page. Harmless, but no help. -
http-equiv="refresh":
Reloads or redirects the page after a delay. Confusing for visitors; use a real redirect on the server.
How Long Should a Title and Description Be?
Google doesn't cut titles after a set number of characters. It cuts by width on the screen, and adds "..." when the
text doesn't fit. That's why the usual advice is a range: roughly 50 to 60 characters for a title
and 150 to 160 for a description. On phones the room is a bit different again, and Google sometimes
rewrites a title or picks another part of the page for the snippet, so treat these as guides, not rules.
Letters aren't all the same width. These two titles both have 36 characters:
WOW! MEGA MAXIMUM WINTER WARMER MENUabout 471 px
little italic tips list till it fitsabout 219 px
The first one is much wider, so it's the one that gets cut. The counter in the tool estimates the width for you.
Whatever the length, put the important words first: "Banana Bread Recipe | Example Kitchen" still makes sense if
the end goes missing.
Open Graph Tags for Social Sharing
Open Graph (the og: tags) started at Facebook, and now LinkedIn, WhatsApp, Slack, Discord, iMessage,
Telegram and many other apps read it too. Without these tags, an app has to guess the title and picture from the
page, and often shows a bare link. Note that Open Graph uses property=, not name=.
<meta property="og:type" content="article">
<meta property="og:url" content="https://example.com/recipes/banana-bread">
<meta property="og:title" content="Easy Banana Bread Recipe">
<meta property="og:description" content="One bowl, 3 ripe bananas, about an hour.">
<meta property="og:site_name" content="Example Kitchen">
<meta property="og:image" content="https://example.com/images/banana-bread.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="A sliced loaf of banana bread on a board">
og:url and og:image must be full addresses (https:// is best). A path
like /images/photo.jpg works in your HTML but not here, because the app reading the tag isn't on your
site. The generator turns a path into a full address when you've filled in the page URL, and warns you when it
can't.
X (Twitter) Card Tags
X looks for twitter: tags first and falls back to the Open Graph ones. So if you already have
og:title, og:description and og:image, all X needs is the card type.
summary_large_image shows a big picture across the post; summary shows a small square
picture next to the text.
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@examplekitchen">
<meta name="twitter:creator" content="@samrivera">
What Size Should the Share Image Be?
- 1200 × 630 pixels (about 1.91 to 1) is the size most apps recommend for large cards, and it looks sharp on most screens.
- Keep important text and faces near the middle. Some apps crop the picture to a square or a different shape.
- Use JPG for photos and PNG for graphics with text. Keep the file small: big images can be skipped or load slowly.
- Add
og:image:width and og:image:height. Some apps need them to show the image the very first time a link is shared. - The image must be public. Pictures behind a login or on
localhost can't be fetched by the apps.
Need a quick share image? Build it as a page in the HTML Editor at 1200 × 630 and take a
screenshot.
How to Test and Refresh Social Previews
The previews here are a good first check, but each app has its own look, and the only real test is the app itself.
One thing catches almost everyone: apps save a copy of the preview the first time a link is shared
and keep showing it, even after you change your tags.
- Facebook: the Sharing Debugger (in Meta's developer tools) shows the tags it found, and its "Scrape Again" button fetches the page fresh.
- LinkedIn: the Post Inspector does the same and refreshes LinkedIn's copy.
- X: start a new post, paste the link and look at the card before you post. X no longer offers a separate preview page.
- WhatsApp, iMessage, Slack and others: there's usually no refresh button. Adding something like
?v=2 to the end of the URL makes the app treat it as a new link.
Also check the page itself: open it, view the source (Ctrl+U) and make sure the tags are really in the
<head>. Some sites add them with JavaScript after the page loads, and many apps don't run
JavaScript, so they never see them. The HTML Validator can check the rest of your HTML.
Robots: noindex and nofollow
Leave the robots tag out for normal pages: being shown in search and having links followed is the default. Add it
only for pages that shouldn't be in search results, like a thank-you page, a test page or search results on your
own site.
<!-- Keep this page out of search results -->
<meta name="robots" content="noindex">
<!-- Show it, but don't follow its links -->
<meta name="robots" content="nofollow">
💡 A forgotten noindex is one of the most common reasons a new site doesn't show up on Google. The
generator puts a warning in the Checks list whenever it's on.
What This Generator Doesn't Do
- It doesn't visit your site. It can't see your live tags, check that your image URL works for the apps, or update the apps' saved previews. Use the tools above for that.
- The previews are rough look-alikes. Real apps change their layouts often, crop images differently, and may cut text at other points.
- Good tags don't guarantee a ranking or a click. They make sure search engines and apps show what you meant, which is the part you control.
- It makes one page's tags at a time. On a bigger site, your site builder or framework usually fills these in from each page's data.
Want to know what every tag in <head> and <body> does? See the
HTML Tags list. Try your new head in a full page in the
HTML Editor, or check the whole page with the HTML Validator.
Frequently Asked Questions
What are meta tags in HTML?
Meta tags are small tags inside the <head> of a page that describe the page instead of showing on it. <meta name="description" content="..."> gives search engines a summary, <meta name="viewport"> tells phones how to size the page, and Open Graph tags like <meta property="og:image"> pick the title and picture for shared links. Visitors never see them on the page itself.
Which meta tags do I actually need?
For most pages: <meta charset="utf-8">, the viewport tag, a <title>, a meta description and a canonical link. If the page will be shared on social apps or in chats, add og:title, og:description, og:image and og:url, plus twitter:card for X. A robots tag is only needed when you want to keep a page out of search (noindex). Everything else is optional.
How long should a title and meta description be?
Google cuts them by pixel width, not by a fixed number of characters, so there is no exact limit. As a rough guide, titles of about 50 to 60 characters and descriptions of about 150 to 160 characters usually show in full on a desktop. Wide letters like W and M use more room than i or l. Put the most important words first, so a cut-off end doesn't hurt.
Does the meta keywords tag still matter?
No. Google has said for years that it ignores <meta name="keywords"> for ranking, and other big search engines give it little or no weight. It does no harm, but it also does nothing, and it tells your competitors which words you are aiming for. That is why this generator doesn't make one.
What size should an og:image be?
1200 × 630 pixels (about 1.91 to 1) is the common recommendation and looks sharp in large link cards on Facebook, LinkedIn and X. Use a JPG or PNG, keep the file small (under about 1 MB loads fastest, and some apps skip very big images), and keep text and faces away from the edges, since some apps crop to a square. The og:image URL must be a full address, and https:// is best.
Why does my shared link still show the old title or image?
Social and chat apps save (cache) a preview the first time a link is shared and keep using it for a while. After you change your tags, ask the app to read the page again: Facebook has a Sharing Debugger with a "Scrape Again" button, LinkedIn has the Post Inspector, and for others you can add something like ?v=2 to the end of the URL so it counts as a new link.
Do I need both Open Graph and Twitter (X) tags?
Not all of them. X reads og:title, og:description and og:image when its own twitter:title, twitter:description and twitter:image tags are missing. So the Open Graph tags plus one <meta name="twitter:card" content="summary_large_image"> line is enough for a large image card on X. Add twitter:site and twitter:creator if you want your accounts linked.
What does the canonical tag do?
<link rel="canonical" href="https://example.com/page"> tells search engines which address is the main one when the same page can be reached in several ways, like with and without ?ref=... or www. Most pages should point the canonical at their own clean URL. Google treats it as a strong hint rather than an order.
Is my information sent anywhere?
No. The tags and the previews are made in your browser and your last form is kept in your browser's local storage. The only thing that loads from outside is the share image you type in, which your browser fetches from that address so it can show it in the preview. "Import from HTML" reads the tags from what you paste without running or loading anything in it.