Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

Twitter Card Generator

Create Twitter (X) card meta tags with a live preview. Add Open Graph tags too, then copy the code into your page. Fast, free and no signup.

  • 100% free
  • No Signup
  • Live card preview

Card details

Card type
0 / 70
0 / 200

Use a public HTTPS link. A local image is shown in the preview only and is not added to the code.

0 / 420
Paste inside the <head> of your page
ADVERTISEMENT
Demo Ad 728 x 90

How to create Twitter card meta tags

1Fill in the details

Choose a card type and add your title, description and image.

2Check the preview

See the card and fix any warnings in the card health list.

3Copy the code

Paste the meta tags in the head section of your page.

TWITTER CARD GUIDE

Twitter Card Generator – Create Twitter (X) Card Meta Tags Online

Looking for a free Twitter card generator? Fill in your title, description and image, choose between a summary card and a summary large image card, and get ready-to-use Twitter card meta tags in seconds. The tool also creates matching Open Graph tags, shows a live preview of how your link can look on Twitter (X) and checks your card for common problems such as long titles, missing images and unsupported image formats. There is nothing to install and no account to create. Whether you run a blog, an online store or a business website, good Twitter cards make your shared links stand out, earn more clicks and bring more visitors to your pages.

Summary Large Image Card

Create the most popular card type, with a big 2:1 image above your title and description. It is ideal for blog posts, news, products and landing pages.

Summary Card

Generate a compact card with a small square thumbnail next to the text. A good fit when you only have a logo or a square picture for the page.

Open Graph Included

Add og:title, og:description, og:image and og:url in the same code, so your link also looks right on Facebook, LinkedIn, WhatsApp and other apps.

What Are Twitter Cards?

Twitter cards, now often called X cards, are rich link previews. When someone posts a link to your page, X reads a few meta tags in the head of your HTML and uses them to build a card with a title, a description and an image instead of showing a bare URL. Because the preview is larger and more visual than a plain link, it attracts more attention in a busy feed. You control the card by adding Twitter card meta tags to your page, and this Twitter card generator writes those tags for you.

Twitter cards are not a direct Google ranking factor. Their value for SEO is indirect: a clear, attractive preview can increase clicks, shares and visits from social media, and the extra visibility can lead to more people discovering and linking to your content.

How to Use the Twitter Card Generator

  1. Choose the card type: Pick Large image for articles and landing pages, or Summary for a small square thumbnail.
  2. Write your title and description: Keep the title within 70 characters and the description within 200 characters. The counters show how much space you have left.
  3. Add your image: Paste a public HTTPS image URL. You can also pick a local image to see it in the preview before you upload it to your website.
  4. Add accounts and URL: Enter your website's account (twitter:site), the author's account (twitter:creator) and the page URL.
  5. Review card health and copy the code: Fix any warnings, then copy the meta tags and paste them into the head section of your page.

Twitter Card Types Compared

Twitter (X) supports two card types that are used for most websites: summary and summary large image. Choose the one that fits the image you have.

twitter:card valueHow it looksImageBest for
summary Small square thumbnail on the left, with title and description 1:1 · min 144 × 144 px Logos, profile photos, simple pages
summary_large_image Large image above the title and description 2:1 · min 300 × 157 px (1200 × 600 recommended) Blog posts, articles, products, landing pages

Twitter Card Meta Tags Explained

Each Twitter card tag does one job. These are the tags this generator creates and the limits to keep in mind.

TagStatusValue and limitPurpose
twitter:card Required summary or summary_large_image Sets the card type. It has no fallback.
twitter:site Recommended @username of your website or brand Connects the card to your account.
twitter:creator Optional @username of the author Credits the person who wrote the content.
twitter:title Recommended Up to 70 characters Falls back to og:title if missing.
twitter:description Recommended Up to 200 characters Falls back to og:description if missing.
twitter:image Recommended Absolute HTTPS URL, under 5 MB Falls back to og:image if missing.
twitter:image:alt Recommended Up to 420 characters Describes the image for accessibility.

Twitter Card Image Size and Format

The image is the most important part of a card, and wrong sizes are the most common reason cards look bad or do not appear. Follow these rules.

  • Summary large image: Use a 2:1 aspect ratio. 1200 × 600 pixels is a safe size. The minimum is 300 × 157 pixels and the maximum is 4096 × 4096 pixels.
  • Summary: Use a square 1:1 image of at least 144 × 144 pixels, up to 4096 × 4096 pixels.
  • File size: Keep the image under 5 MB. Smaller files load faster for the crawler and for users.
  • Format: JPG, PNG, WebP and GIF work. For animated GIFs only the first frame is shown. SVG is not supported.
  • Safe area: Keep important text and faces away from the edges, because the image can be cropped slightly on different screens.
  • URL: Use an absolute HTTPS link that opens without a login, and make sure your server does not block the image from crawlers.

Twitter Cards vs Open Graph Tags

Open Graph is a standard created by Facebook that many platforms understand. Twitter cards use their own tags but also read Open Graph tags. If a twitter:title, twitter:description or twitter:image tag is missing, X falls back to og:title, og:description and og:image. The twitter:card tag is the exception, since it has no fallback and tells X which card layout to use.

The simplest and safest setup is to include both: Open Graph tags for the title, description, image and URL, plus twitter:card and twitter:site, with extra twitter: tags only where you want different text or an image made for X. This generator can output both sets with a single click.

How to Add Twitter Card Tags to Your Website

Twitter card tags go inside the head section of every page. Here is a basic HTML example.

<head>
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:site" content="@yourbrand">
  <meta name="twitter:title" content="Your page title">
  <meta name="twitter:description" content="A short summary of the page.">
  <meta name="twitter:image" content="https://example.com/images/card.jpg">
  <meta name="twitter:image:alt" content="Describe the image">
</head>

In WordPress, SEO plugins such as Yoast SEO and Rank Math add Open Graph and Twitter card tags for you and let you set a default and a custom social image per post in their social settings. On a custom website built with a framework such as Laravel, place the tags in your main layout and fill the values from each page, like this:

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ $title }}">
<meta name="twitter:description" content="{{ $description }}">
<meta name="twitter:image" content="{{ $image }}">

On other platforms such as Shopify, Wix or Blogger, check your theme or SEO settings for a social sharing section, or add the generated tags in the custom head code area if your plan allows it.

How to Test Your Twitter Card and Fix Problems

After you publish the tags, check them. X has changed its validator over the years, so the most dependable test is to paste your link into a draft post and look at the preview without posting it. If the card does not appear or looks wrong, go through this list.

  • Check the twitter:card tag: It must exist and use summary or summary_large_image.
  • Open the image URL: Test it in a private browser window. It must load without a login and over HTTPS.
  • Check size and format: Make sure it is within the limits above and not an SVG.
  • Check robots.txt: Do not block Twitterbot, the crawler X uses to read your page.
  • Use the right place: Tags must be inside the head, not in the body.
  • Be patient with the cache: X caches cards, so changes can take a while to show up. Adding a harmless parameter to the link is a common way to see a fresh card in a test.

Best Practices for Better Twitter Cards

  • Write a unique title and description for every page instead of repeating the same text everywhere.
  • Put the hook first. Titles can be shortened, so start with the most important words.
  • Design an image made for sharing, with a clear subject, readable large text and your brand style.
  • Always add image alt text so the card is accessible to people using screen readers.
  • Add your site account (twitter:site) so the card is connected to your brand.
  • Keep the card tags consistent with the page, since a preview that does not match the content hurts trust.

Free and Private Twitter Card Generator

This Twitter card meta tags generator is free to use as often as you like, with no signup and no watermark. It works completely in your browser, so the text you write and the images you preview are never sent to our server. Create the code, copy it and paste it into your website.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Frequently Asked Questions About Twitter Cards

Find answers to common questions about Twitter (X) card meta tags, image sizes and fixing cards that do not show.

What is a Twitter card generator?

A Twitter card generator creates the meta tags that control how your link looks when someone shares it on Twitter, now called X. You enter a title, description and image, and the tool builds the twitter:card, twitter:title, twitter:description and twitter:image tags for you, together with optional Open Graph tags, so you can paste them into the head section of your page. The tags still use the twitter: names after the rebrand.

Which Twitter card type should I use: summary or summary large image?

Use summary_large_image for blog posts, articles, landing pages and anything where a strong picture helps, because the image is shown large above the text and takes more space in the feed. Use summary when you only have a small square image such as a logo or a profile photo. The summary card shows a small square thumbnail next to the title and description.

What is the best Twitter card image size?

For a summary large image card, use a 2:1 image, for example 1200 × 600 pixels, with a minimum of 300 × 157 and a maximum of 4096 × 4096 pixels. For a summary card, use a square image of at least 144 × 144 pixels. Keep the file under 5 MB and use JPG, PNG, WebP or GIF. SVG images are not supported, and animated GIFs show only the first frame.

Do I need Open Graph tags if I already have Twitter card tags?

Twitter card tags are enough for X, but adding Open Graph tags is a good idea. If a twitter: tag is missing, X falls back to the matching Open Graph tag for the title, description and image, and Open Graph tags are also used by Facebook, LinkedIn, WhatsApp and many other apps. The twitter:card tag has no fallback, so always include it.

Where do I put the Twitter card meta tags?

Place them inside the head section of your HTML, before the closing head tag, on every page you want to look good when shared. Each page should have its own title, description and image that match the page content. In WordPress, plugins such as Yoast SEO and Rank Math add the tags for you, and in a custom site you add them to your layout template.

Why is my Twitter card not showing?

The most common reasons are a missing or wrong twitter:card tag, an image that is too large, too small or blocked, an image URL that is not public or not HTTPS, a robots.txt file that blocks the Twitterbot crawler, or a page that needs a login. X also caches cards, so changes can take time to appear. Fix the tags, make sure the image opens in a private browser window, and test again by pasting the link into a draft post.

Is this Twitter card generator free and private?

Yes. The generator is free, needs no signup and works entirely in your browser. The text you type and the image you pick for the preview are not uploaded or stored on our server. Only the code you copy leaves the page, and you decide where to paste it.

ADVERTISEMENT
Demo Ad 320 x 50

All Tools, One Place

Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.

Explore All Tools →