DevToolPal
EN

Meta Tag Generator

Generate SEO meta tags, Open Graph and Twitter card tags for your page, with a search and social preview.

Runs locally, never uploaded

Options

Page details

HTML for <head>

Preview

Search result

example.com
Page title

Add a description to control the snippet shown under the title.

Social card

No share image
example.comPage title

The image is not loaded here, so this page makes no network requests.

What it does

The meta tag generator writes the tags that go inside the <head> of an HTML page: the <title>, meta description, keywords and author, a robots directive, the canonical link, a theme color, the viewport and charset declarations, the full set of Open Graph tags (og:title, og:description, og:image, og:url, og:type, og:site_name, og:locale) and X / Twitter card tags.

As you type, it shows how the page could look as a search result and as a social card, and it checks the details that commonly go wrong: a title longer than about 60 characters, a description that is missing, too short or longer than about 160 characters, a relative canonical URL, a share image without an absolute URL, or a malformed locale or color. Everything happens in your browser, and the preview deliberately does not load your image, so the page makes no network requests.

How to use

  1. Fill in the page details. Title and description are the essentials; the counters show their length against the usual display limits. Click Sample to see a complete example.
  2. Enter the canonical URL of the page and a share image. A relative image path such as /images/cover.jpg is resolved against the canonical URL.
  3. In the options, pick the Open Graph type (website for most pages, article for blog posts), the card size, whether search engines may index the page and follow its links, and which groups of tags to include.
  4. Read the warnings under the HTML, check the previews, then copy the HTML into your page template.

Options are stored in the page address and the form is kept in your browser, so you can come back to it or share a link with the same settings.

Example

The sample page produces tags like these (shortened):

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sourdough Bread for Beginners — Step-by-Step Guide</title>
<meta name="description" content="Bake your first sourdough loaf at home: …">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://example.com/recipes/sourdough-for-beginners">

<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:title" content="Sourdough Bread for Beginners — Step-by-Step Guide">
<meta property="og:image" content="https://example.com/images/sourdough-loaf.jpg">
<meta property="og:locale" content="en_US">

<!-- Twitter / X -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@examplekitchen">

Values are HTML-escaped, so quotes and ampersands in a title cannot break the markup, and the locale en-US is normalized to the en_US form Open Graph expects.

Tips

  • Write a unique title and description for every page; duplicates across a site make results harder to tell apart.
  • Put the most important words first in the title, since long titles are cut at the end.
  • The canonical URL should be the exact address you want indexed, including the protocol and your preferred www or non-www host.
  • Setting robots to noindex keeps a page out of search results, but only if crawlers can still fetch it: do not also block it in robots.txt.

FAQ

› Which meta tags actually matter for SEO?

The title element and the meta description matter most: the title is a ranking signal and the headline of your search result, and the description is often used as the snippet below it. The canonical link tells search engines which URL is the main one, and robots controls indexing. The keywords tag is ignored by Google and Bing; include it only if another system you use reads it.

› What is Open Graph?

Open Graph is a set of og: meta tags, introduced by Facebook, that tells social networks and chat apps what title, description and image to show when someone shares your link. LinkedIn, Slack, Discord, WhatsApp, Telegram and many others read them, and X (Twitter) falls back to them when its own twitter: tags are missing.

› What size should the share image be?

Use 1200 × 630 pixels (an aspect ratio of about 1.91:1) for large cards, keep important content away from the edges, and stay under a few megabytes. The URL must be absolute and publicly reachable; a relative path is resolved against the canonical URL you enter.

› Why does my old title still appear when I share the link?

Social platforms cache link previews. After updating the tags, ask the platform to fetch the page again with its own tool, such as Facebook's Sharing Debugger or LinkedIn's Post Inspector, or add a query string to the URL you share.