Skip to content

Meta Tags Generator

AI-powered

Generate the SEO, Open Graph and Twitter Card meta tags for a page, with a link preview. An AI model can suggest the title and description from a brief.

Replaces the title, description and their OG and Twitter variants below. The other fields are left alone.

Page details

22 chars · short
53 chars · short
Link preview (approximate; each platform lays it out differently)
Example image URL. Yours will show here (1200 × 630 recommended)

example.com

How OKLCH Replaces HSL

A practical migration guide for modern color systems.

HTML for <head>
<title>How OKLCH Replaces HSL</title>
<meta name="description" content="A practical migration guide for modern color systems.">
<link rel="canonical" href="https://example.com/oklch-guide">
<meta name="theme-color" content="#0a0a0a">
<meta name="robots" content="index, follow">

<meta property="og:type" content="article">
<meta property="og:title" content="How OKLCH Replaces HSL">
<meta property="og:description" content="A practical migration guide for modern color systems.">
<meta property="og:url" content="https://example.com/oklch-guide">
<meta property="og:image" content="https://example.com/og/oklch.png">
<meta property="og:site_name" content="Example">
<meta property="og:locale" content="en_US">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How OKLCH Replaces HSL">
<meta name="twitter:description" content="A practical migration guide for modern color systems.">
<meta name="twitter:image" content="https://example.com/og/oklch.png">
<meta name="twitter:site" content="@example">

01 · Definition

What are meta tags?

Meta tags are elements in a page's <head> that describe the page to search engines, browsers and the apps that build link previews. The title and meta description feed the search result, Open Graph tags such as og:title and og:image feed previews in social and chat apps, and twitter: tags set the card shown on X.

02 · Overview

How the Meta Tags Generator works

Build the meta tag block for a page: title, description, canonical, robots, theme color, Open Graph tags (type, title, description, url, image, site name, locale), article:published_time for articles, and Twitter card tags. Fill the fields in yourself, or describe the page and let an AI model (Claude) suggest the title and description. Empty fields are left out of the output and flagged. The tool does not fetch your URL; it works from what you type.

03 · Guide

Open Graph tags: which are required?

The Open Graph protocol names four properties as required for every page: og:title, og:type, og:image and og:url. The rest are optional. This tool always writes og:type and writes each of the others when its field is filled in, so fill in the title, URL and image to cover the required four.

og:title and og:description fall back to the page title and description unless you enter separate social versions. article:published_time is added only when the type is article and a date is entered.

PropertyStatus in the protocolWhat it holds
og:titleRequiredThe title as it should appear in a preview
og:typeRequiredThe kind of object, such as website or article
og:imageRequiredURL of the preview image
og:urlRequiredThe canonical URL of the page
og:descriptionOptionalA one to two sentence description
og:site_nameOptionalThe name of the site the page belongs to
og:localeOptionallanguage_TERRITORY; the default is en_US
Open Graph properties this tool writes

04 · Guide

How long should a title tag and meta description be?

Google sets no limit on either. Its documentation says there is no limit on how long a <title> element or a meta description can be, and that the title link and the snippet are truncated in search results as needed, typically to fit the device width.

The 50 to 60 character range for titles and 140 to 160 for descriptions that this tool marks as good are working targets chosen to keep most text visible. They are not Google rules. The counter under each field shows the length as you type and marks it short, good or long.

05 · Use cases

When to use the Meta Tags Generator

  1. 01

    Add the right social preview tags to a marketing page

  2. 02

    Generate the full meta block for a new blog post

  3. 03

    Get an AI-suggested title and description from a one-line page brief

  4. 04

    Sanity-check that title length, description length, and OG image are all set

06 · Examples

Meta Tags Generator examples

Title: How OKLCH Replaces HSL · Description: A practical migration guide for modern color systems. · Image: https://example.com/og/oklch.png

ex 01

<title>How OKLCH Replaces HSL</title> <meta name="description" content="A practical migration guide for modern color systems."> <meta property="og:title" content="How OKLCH Replaces HSL"> <meta property="og:image" content="https://example.com/og/oklch.png"> <meta name="twitter:card" content="summary_large_image">

Excerpt of the block for the built-in example, ready to paste into <head>.

AI suggest: pricing page for a developer tool, friendly tone

ex 02

A suggested title and description, plus Open Graph and Twitter variants, filled into the form

The model is asked for a 50-60 character title and a 140-160 character description. Edit them before copying.

Robots: noindex, nofollow

ex 03

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

Blocks indexing at the page level, for a staging page. robots.txt alone does not do this.

OG type: article · Published date: 2026-08-27

ex 04

<meta property="og:type" content="article"> <meta property="article:published_time" content="2026-08-27">

Choosing the article type shows a Published date field and adds article:published_time.

07 · FAQ

Meta Tags: frequently asked questions

What's the ideal title and description length?

There is no fixed limit. Google says a <title> element and a meta description can be any length, and that it truncates the title link and the snippet as needed, typically to fit the device width. As working targets, this tool marks 50-60 characters for a title and 140-160 for a description as good, and shows the length of both as you type.

Do I need both OG and Twitter Card tags?

Twitter (X) reads OG tags as a fallback, so a minimal OG block usually covers both. If you want Twitter-specific behavior (large image card, summary card variant), the dedicated twitter:* tags are still useful.

Where do these tags go?

Put them all inside the <head> of your HTML, ideally before any <script> tags so social scrapers see them quickly.

What size should the OG image be?

1200×630 is the usual choice. Facebook's sharing documentation asks for at least 1200×630 pixels for high-resolution displays, an aspect ratio as close to 1.91:1 as possible so the image is not cropped in the feed, a minimum of 200×200 pixels and a file no larger than 8 MB. Other apps crop differently, so keep important content away from the edges.

Does the meta description affect rankings?

Not directly. It hasn't been a ranking factor for years. It does affect click-through, which matters. Google also frequently ignores what you write and generates its own snippet from page content when it judges that a better match for the query.

What is the canonical tag for?

It tells search engines which URL is the real one when the same content is reachable several ways: with and without a trailing slash, with tracking parameters, or across a print view. Without it, those variants compete with each other and split whatever ranking signals the page has earned.

Can it read my page and fill the tags in from the URL?

No. The tool never fetches the URL you enter. The AI suggestion works only from the brief you type, and the canonical and image URLs are copied into the tags as written. The preview loads your image URL in your own browser to show it.

What happens to the brief I type?

The description you type is sent to our server, which passes it to the Anthropic API to produce the result. We keep per-IP rate-limit counters: 10 AI generations per hour and 50 per day, shared across the AI tools. Like every page on the site, this one loads page analytics (Vercel Analytics, Speed Insights and aside.so). The form fields, the preview and the HTML are built in your browser and are not sent. Suggestions are not cached.

08 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

  • The Open Graph protocol

    Open Graph. The og: property vocabulary used by most social and chat link previews.

  • The meta element

    WHATWG. The normative definition of name, property, and content attributes.

  • Control your snippets in search results

    Google. How Google uses the description tag when generating a result snippet. States that a meta description has no length limit and is truncated as needed.

  • Influencing your title links in search results

    Google. States that a <title> element has no length limit and that the title link is truncated as needed, typically to fit the device width.

  • Images in Link Shares

    Meta. Facebook's image requirements for link previews: at least 1200×630 for high-resolution displays, 200×200 minimum, 8 MB maximum, 1.91:1 aspect ratio.

09 · More

Tools that pair with Meta Tags

Last updated .