Skip to main content
Faviqo

Open Graph and Twitter meta tags generator

Fill in the form and copy the tags for plain HTML, Next.js, Astro or WordPress. Nothing is sent anywhere; it all happens in your browser. Need the image too? Make it in the OG image generator.

0/60
0/160

Full address of the uploaded image, 1200×630 recommended.

Start typing a title, description or image address and the tags appear here.

Paste inside <head>, as high as possible.

After publishing, paste your link into each platform's own debugger to see the preview. Platforms cache previews, so use that debugger to refresh an old one.

What the meta tags generator does

Meta tags are small lines in the <head> of a page that tell search engines and social apps how to describe it. The Open Graph set (og:title, og:description, og:image, og:url) is read by Facebook, LinkedIn, WhatsApp, Slack, Discord, Telegram and iMessage when someone pastes your link. The Twitter Card set is read by X, which falls back to the Open Graph values when its own are missing.

This tool turns a short form into the exact tags, formatted for plain HTML, Next.js metadata, Astro or WordPress. Fill in the title, description, page address and image address, and the output updates as you type. Character counters and warnings point out values that are likely to be cut off, and the copy button puts the finished block on your clipboard.

Everything runs in your browser. The text you type is not sent anywhere, so it is safe to prepare tags for a page that is not published yet.

How to use it

  1. Type the page title and description. Aim for a title that fits on one or two lines and a description of one or two sentences.
  2. Enter the full https:// address of the page and of the share image. Relative paths are ignored by most platforms.
  3. Add the site name and your X handle if you want the account attributed on cards.
  4. Pick the output format that matches your site: HTML, Next.js, Astro or WordPress.
  5. Copy the tags and paste them into the <head> of the page, as high as possible, before large scripts and inline styles.
  6. Publish, then paste the link into each platform's own debugger to confirm the preview. Use the OG image generator to make the picture at the right size.

Common mistakes

  • Using a relative og:image such as /og.png. Crawlers need the full https:// address.
  • Adding the tags only with JavaScript in the browser. Most link crawlers do not run scripts, so they see nothing. The tags must be in the HTML the server sends.
  • Leaving the image out. Without og:image, platforms show a plain text link or guess a picture from the page.
  • Writing a title or description that is far too long. Long values are cut off with an ellipsis, so put the important words first.
  • Printing the same tags twice because an SEO plugin already adds them. Duplicate tags make the result unpredictable.

A typical set of tags

This is what the HTML output looks like for a simple page. Replace each value with your own.

<meta property="og:type" content="website">
<meta property="og:title" content="Acme Notes — fast, simple notes">
<meta property="og:description" content="Capture ideas in seconds and find them again later.">
<meta property="og:url" content="https://example.com/">
<meta property="og:image" content="https://example.com/og-1200x630.png">
<meta name="twitter:card" content="summary_large_image">

Frequently asked questions

Do I need both Open Graph and Twitter tags?

Usually not. X falls back to the Open Graph tags, so og:title, og:description and og:image plus twitter:card with the value summary_large_image cover most pages.

Where do the tags go?

Inside the <head> element, ideally near the top. In frameworks such as Next.js and Astro, use the metadata or layout feature the tool's output is written for.

Why does my preview still show the old image?

Platforms cache the first preview they build for a URL. Use the platform's debugger to fetch it again, or change the image file name and the og:image address.

What image size should I use?

1200×630 pixels is the safe default. The OG image generator can produce it and the other common sizes in one download.

Is anything I type uploaded?

No. The tags are built in your browser and nothing is sent to a server.

Related:OG image generatorOG image size guideOpen Graph vs Twitter Cards