Skip to content
Writing & SEO

Meta Tag Generator

Page metadata helps search engines and social platforms understand and present a URL, but tags are hints rather than guarantees. Search engines may rewrite titles and snippets, canonical is a preference among duplicate URLs, and noindex controls indexing only when a crawler can fetch and read it.

By Updated Runs in your browser — nothing is uploaded

Input · page metadata

Generated HTML

<title>Free Online Calculator — Example Tool</title>
<meta name="description" content="Calculate an example result instantly with the formula, worked steps, and source-backed explanation included on the page.">
<link rel="canonical" href="https://example.com/tools/example">
<meta name="robots" content="index, follow">

<meta property="og:type" content="website">
<meta property="og:title" content="Free Online Calculator — Example Tool">
<meta property="og:description" content="Calculate an example result instantly with the formula, worked steps, and source-backed explanation included on the page.">
<meta property="og:url" content="https://example.com/tools/example">
<meta property="og:site_name" content="Example Tools">
<meta property="og:image" content="https://example.com/social-card.jpg">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Free Online Calculator — Example Tool">
<meta name="twitter:description" content="Calculate an example result instantly with the formula, worked steps, and source-backed explanation included on the page.">
<meta name="twitter:image" content="https://example.com/social-card.jpg">
Title characters
37
Description characters
121
Canonical
https://example.com/tools/example
Indexing directive
index, follow
On this page
  1. Metadata summarizes and identifies a page
  2. The title element
  3. Meta descriptions
  4. Canonical URLs
  5. Robots meta directives
  6. Open Graph metadata
  7. Social images
  8. Twitter Cards
  9. Escaping attribute values
  10. Metadata and JavaScript frameworks
  11. Unique metadata at scale
  12. Keywords meta tag
  13. Viewport and charset tags
  14. Structured data is separate
  15. Common mistakes
  16. Testing generated tags
  17. Limits of this generator

Metadata summarizes and identifies a page

HTML metadata sits in the document head and communicates information that is not part of the main visible article. Search engines, browsers, messaging apps, and social platforms can use different tags for indexing, canonicalization, previews, and display.

Metadata supports the page; it cannot replace useful visible content. A search engine may ignore or rewrite a tag when another representation better fits the query or when the metadata conflicts with what users see.

This generator escapes attribute values and produces a practical starting block for standard search, Open Graph, and Twitter Card metadata.

The title element

The HTML title element names the document. Browsers use it in tabs and history, while search engines may use it as the basis for a result’s title link.

A good title is unique, specific, concise, and consistent with the visible main heading. It should distinguish the page without repeating boilerplate or stuffing variations of the same keyword.

There is no universal character limit that guarantees display. Search results truncate by available width and can generate a different title. Shorter wording is often clearer, but accuracy matters more than hitting one numeric score.

The title contains text rather than an HTML content attribute. The generator escapes characters that could otherwise be interpreted as markup.

Meta descriptions

The description meta tag provides a short page summary:

<meta name="description" content="A specific summary of this page.">

Search engines may use it as a snippet when it helps answer the query. They may instead select visible page text that better matches what the person searched for.

Write descriptions for humans: say what the page contains, distinguish it from neighbouring pages, and avoid lists of repeated terms. Unique descriptions are particularly useful for pages whose visible content is hard to summarize automatically.

Length is a display consideration, not a ranking formula. A SERP preview can help assess likely truncation, but no preview can guarantee the live result.

Canonical URLs

A canonical link points to the preferred URL for duplicate or substantially similar content:

<link rel="canonical" href="https://example.com/preferred-page">

Use an absolute URL and make it the version used in internal links and sitemaps. The canonical target should return a successful response and be eligible for indexing.

Canonical is a signal rather than a command. Search engines can select another URL when signals conflict or when the pages are not genuinely equivalent. Pointing many unrelated pages to one URL does not consolidate them; it creates contradictory information.

Self-referencing canonicals are common because they make the preferred URL explicit and help normalize tracking or parameter variants.

Robots meta directives

The robots meta tag controls indexing and link-following behavior for crawlers that support it:

<meta name="robots" content="noindex, follow">

noindex requests that the page not appear in search results. The crawler must be able to fetch the page to read the directive. Blocking the URL in robots.txt can prevent that fetch and leave the URL indexed from links or previous knowledge.

nofollow asks a crawler not to follow links on the page. It is not a privacy or access control. Sensitive content needs authentication and authorization rather than metadata.

An ordinary indexable page does not require index, follow, because those are default behaviours, but emitting them can make the intended configuration visible.

Open Graph metadata

The Open Graph protocol describes objects for social sharing. Core page tags include:

<meta property="og:type" content="website">
<meta property="og:title" content="Page title">
<meta property="og:description" content="Page summary">
<meta property="og:url" content="https://example.com/page">
<meta property="og:image" content="https://example.com/image.jpg">

Platforms decide which tags they support and how previews appear. They can crop images, truncate text, or cache an older scrape. Use platform debugging tools when a changed preview does not refresh.

The og:url value normally matches the canonical page URL. The social title can be tailored for sharing, but it should not misrepresent the destination.

Social images

Use an absolute HTTPS image URL accessible without cookies or authentication. The response should provide the correct image content type, and robots or firewall rules should not block the platform fetching it.

Many platforms prefer a wide image for large cards. Exact recommended dimensions can change by platform, so inspect current documentation and keep important content away from edges where cropping may occur.

Add og:image:alt and equivalent accessibility metadata when supported if the integration provides meaningful image description. Do not put critical information only inside the image.

Stable URLs make caching predictable. If an image changes but platforms retain an old version, a versioned URL can trigger a new fetch.

Twitter Cards

Twitter Card metadata, now documented by the X developer platform, uses names such as twitter:card, twitter:title, twitter:description, and twitter:image.

summary_large_image requests a large-image layout, while summary requests a smaller card. The platform retains control over the final rendering.

Some parsers fall back from Twitter-specific values to matching Open Graph values. Explicit tags make the intended values clear and allow a platform-specific variation when necessary.

This generator emits both sets because shared links circulate across many services and parsers.

Escaping attribute values

User-provided text can contain ampersands, quotation marks, less-than signs, and greater-than signs. Placing raw text inside an HTML attribute can break the markup or create an injection vulnerability.

The generator converts these characters to HTML entities such as &amp; and &quot;. Escaping is context-specific: HTML attribute escaping is not the same as JavaScript, URL, CSS, or JSON escaping.

Generated output should still enter the document through the framework’s metadata API or a trusted template path. Avoid building a raw HTML string from untrusted data at request time.

Metadata and JavaScript frameworks

Server-rendered and statically generated frameworks normally provide a metadata or head API. Use that API instead of manually inserting duplicate tags from several components.

Each canonical page should have one clear title, description, canonical, and robots policy. Multiple conflicting tags make crawler behaviour harder to predict.

Ensure metadata appears in the initial or reliably rendered HTML. Search engines can process JavaScript, but server-rendered metadata reduces dependence on a rendering stage and works for social crawlers that do not execute application code.

Unique metadata at scale

Large tool and commerce sites often generate metadata from a structured registry. Templates are useful, but every page should retain a specific subject and description.

Changing only one keyword across thousands of otherwise identical descriptions adds little value. Generate the stable structure, then supply page-specific facts: what the tool calculates, units supported, limitations, product attributes, or location details.

If a page has no unique purpose or content, creating unique tags does not make it a useful indexable page. Content quality and information architecture come first.

Keywords meta tag

The keywords meta tag has a long history of abuse and is not used by Google for web ranking. This generator intentionally omits it.

Keyword research still matters for learning how an audience describes a problem. Those words should inform useful page content, headings, links, and titles naturally. A hidden comma-separated list does not substitute for answering the query.

Other search systems can have different documentation, but unnecessary tags increase maintenance and can expose strategy without delivering value.

Viewport and charset tags

Most responsive pages also need viewport and character-encoding declarations. Modern frameworks usually manage them globally:

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

They are document infrastructure rather than page-specific SEO fields, so this generator does not repeat them in every output block. Confirm they exist once in the layout.

Character encoding should be declared early so the browser interprets the document consistently. Responsive viewport configuration helps content work on mobile devices.

Structured data is separate

Schema.org structured data commonly uses JSON-LD and describes entities such as products, articles, breadcrumbs, organizations, or applications. It is not a replacement for title, canonical, or robots metadata.

Markup must represent visible page content and follow the search feature’s current eligibility rules. Adding unrelated schema types or fabricated ratings can create manual actions or simply be ignored.

Build structured data from the same trusted page registry where practical so names, URLs, dates, and descriptions remain consistent.

Common mistakes

Relative canonical URLs can resolve unexpectedly when copied or rendered under another base. Use a full absolute preferred URL.

Pointing canonical to a redirected, blocked, noindexed, or unrelated page sends conflicting signals. Align canonical, redirects, sitemap, and internal links.

Using noindex on a page blocked by robots.txt prevents crawlers from seeing the directive. Allow access long enough for removal.

Repeating one description across every page reduces its usefulness. And putting a live secret or personal data into metadata exposes it publicly in HTML and previews.

Testing generated tags

Inspect the final deployed HTML, not only application source. Confirm there is one intended tag, values are escaped, URLs are absolute, and server or CDN transformations have not changed the output.

Use search-engine URL inspection and rich-result tools for crawler visibility. Use platform card debuggers or fresh share requests for social previews. Check HTTP status, robots rules, and image accessibility from outside a signed-in session.

Search appearance can take time to recrawl and can still differ by query, device, or platform decision.

Limits of this generator

The tool produces a general metadata block from the values entered. It does not guarantee ranking, indexing, canonical selection, snippet wording, or social preview layout.

It does not validate that URLs exist, fetch images, generate structured data, add locale alternates, or inspect duplicate tags already present on a site. Platform requirements and supported tags can change.

Use the output as a clean implementation starting point. Confirm current official documentation and inspect the deployed result before relying on it in production.

Common questions

Frequently asked questions

Does Google always use my title and meta description?

No. Google can generate a title link or snippet from page content and other signals when that better matches the query or when metadata is incomplete, repetitive, or inaccurate. Write unique metadata that truthfully summarizes the visible page.

What does a canonical tag do?

A rel=canonical link identifies the preferred URL among duplicate or very similar pages. It is a strong signal, not an absolute directive. The target should be crawlable, indexable, and genuinely equivalent, and internal links and sitemaps should use the same preferred URL.

Does noindex work if robots.txt blocks the page?

A crawler must fetch the page to see a robots meta noindex directive. If robots.txt prevents the fetch, the directive may never be read and the URL can remain indexed from external signals. Allow crawling until noindex has been processed.

What are Open Graph tags?

Open Graph metadata describes a page for link previews using properties such as og:title, og:description, og:url, og:image, and og:type. Platforms choose how to render the data and may cache previous values.

Should social image URLs be absolute?

Yes. Use a fully qualified HTTPS URL that a crawler can fetch without authentication. The image should have an appropriate content type, stable URL, useful dimensions, and no blocking rule that prevents social crawlers from retrieving it.

Are meta keywords useful for Google SEO?

Google does not use the keywords meta tag for web ranking, so this generator does not emit it. Keyword research remains useful for understanding language and intent, but repeating terms in an ignored tag provides no ranking benefit.

References

Sources and verification

The formulas and reference ranges on this page come from the following publications. Where a source has been revised, we cite the current edition and update the page when the underlying method changes.

  1. 1Meta tags and attributes that Google supportsGoogle Search Central
  2. 2The Open Graph protocolOpen Web Foundation
  3. 3Cards markupX Developer Platform
This page cites 3 references. See how formulas, examples, updates, and corrections are handled in our editorial policy, or report a possible error.

Keep going

After using the Meta Tag Generator, these are the closest tools for checking a related number, comparing a result, or continuing the same calculation.