Web & CSS

Meta Tag Generator (Open Graph & Twitter)

Fill in your page details to get ready-to-paste meta tags, Open Graph and Twitter/X card tags and a complete head snippet, with warnings for missing or conflicting values. Everything happens in your browser.

Guide: Meta Tags, Open Graph and Twitter Cards: A Practical Guide

Private by design. Everything is generated in your browser. Nothing is uploaded or sent to a server, and nothing is stored. Images are handled by URL only: the address you type is written into the tags as text and is never downloaded, so the preview cannot show it. The previews are rough visual approximations, not how Facebook, LinkedIn, X or any other platform will actually render your link; platforms crop, truncate and cache differently.
Start from an existing <head> (optional)
Reads the title, description, robots, author, theme-color, canonical and Open Graph / Twitter tags. Scripts are never run. Filling replaces all fields below.
Basic
The preferred absolute address of this page.
Language and region, for example en_US or en-GB.
Leave empty for the default behaviour.
A hex color; shown in the browser toolbar on some mobile browsers.
Open Graph
An absolute https:// address. The image is not downloaded or uploaded: only the URL is written to the output.
Shown in the previews only. It stays in your browser, is not uploaded and is not part of the output.
Twitter / X

Checks

Output

Preview (approximation)

A rough visual guide to how the text might be laid out. It is not the real rendering of any platform.

Ready. Fill in the fields, or load the example. Nothing is uploaded.

What it does

Meta tags tell search engines and social platforms how to describe a page. Enter your details and the tool writes the HTML for the title, description, canonical link, robots rule, author, theme color, Open Graph tags (used by Facebook, LinkedIn, Slack, WhatsApp and many others) and Twitter/X card tags, as either a list of tags or a complete <head> snippet you can paste into a page.

Privacy and images

  • All of it runs in your browser. Nothing is sent to a server, put in the URL or saved.
  • Images are URL based. You type the address of an image that is already hosted, and it is written into og:image and twitter:image as text. The tool never uploads images and never downloads the address you enter, so it cannot show that image in the preview.
  • If you want to see how an image would sit in the cards, you can pick a local file. It is read in your browser, used only for the preview and left out of the output.

Checks it performs

  • Missing: title, description, image and the four Open Graph fields the protocol requires (og:title, og:type, og:image, og:url).
  • Invalid: page and image addresses that are not absolute http(s) URLs, plus risky ones such as http://, localhost addresses and embedded passwords.
  • Conflicts: og:url that differs from the canonical URL, noindex together with a canonical, index with noindex, a large Twitter/X card with no image, and a site name or locale that disagree.
  • Advice: long titles and descriptions, SVG images, a missing image description. Length figures are rules of thumb; platforms change them.

Previews are approximations

The cards show your text and image roughly as a link preview might lay it out. Real platforms crop images differently, cut text at their own lengths, cache what they have already fetched and may change their design at any time. To see the real thing, use each platform's own debugger or share a test link after publishing.

Using the tool

  • Blank fields: Open Graph and Twitter/X fields that you leave empty can reuse the basic values, shown as grey placeholders. Turn the option off to write only what you typed.
  • Start from existing HTML: paste a current <head> to fill the fields, or send HTML here from the HTML Formatter.
  • Hand-off: use "Send to" to open the generated head in the HTML Formatter for tidying or validation.
  • Escaping: quotes, ampersands and angle brackets in your text are escaped so they cannot break the tags.

Related

Meta tags control how a page is described; the Security Headers Generator controls how browsers treat it. Use the HTTP Header Analyzer to check what a server actually sends, and the URL Parser to inspect a canonical address.

Share this tool

Your data is not included in this link.