Skip to content

Twitter Card Generator

Generate X/Twitter Card tags for summary and large-image cards with a live card preview.

AvailableRuns in your browserFree · No sign-up

Twitter Card Generator

Card type
Content

twitter:title is required.

0 / 200 characters

The page being shared. X has no twitter:url tag; it's used for checks and the preview.

Image

JPG, PNG, WebP or GIF under 5 MB · 2:1, at least 300 × 157 px

0 / 420 characters

Accounts (optional)

Used with large-image cards.

Check your current tags for duplicates (optional)

Finds Twitter/X tags that appear twice or would conflict with the generated ones. Read in your browser; nothing is uploaded or run.

Card preview

No image
Your page title

From example.com

Illustrative only. X fetches and caches your page itself and may display the card differently, or not at all. This preview doesn't mean X has validated your tags.

  • Add the page URL so the preview can show its domain and the address can be checked.
  • A large-image card needs twitter:image (or og:image on the page) to show a picture.
  • X's reference lists twitter:site (your site's @username) as required for these cards; it's recommended.

Twitter / X card tags

<!-- Fix the errors above to generate the tags -->

If the page already has Open Graph tags, X falls back to og:title, og:description and og:image when the matching twitter: tags are missing.

Your data is processed locally in your browser and is not uploaded to OZVILO servers.

How to use the Twitter Card Generator

  1. 1Choose a card type: summary or summary with large image.
  2. 2Enter the title, description, page URL and image URL with alt text.
  3. 3Optionally add your site's and the author's X usernames.
  4. 4Check the preview and validation, then copy the tags into your <head> or download them.

Examples

  • Large-image card

    Input
    summary_large_image, title, 1200 × 600 image, @studio
    Result
    twitter:card, twitter:site, twitter:title, twitter:image and twitter:image:alt tags
  • Summary card with a creator

    Input
    Card type summary and creator @author
    Result
    twitter:creator is left out — X uses it only for large-image cards

Twitter Card Generator features

  • summary and summary_large_image cards only — the types X supports for websites
  • Tags limited to what your card type and input need
  • Character counts against X's limits: title 70, description 200, alt text 420
  • Live card preview; the image's real size is checked against X's minimums and aspect ratio
  • Username validation, HTML escaping, duplicate check, copy and download

Frequently asked questions

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

Not always. X falls back to og:title, og:description and og:image when the matching twitter: tags are missing, but you still need twitter:card to choose the card type.

Will X show my card exactly like the preview?

Not necessarily. The preview is illustrative. X fetches and caches your page itself, and it decides whether and how to display the card.

What image size works best?

For large-image cards X uses a 2:1 image of at least 300 × 157 pixels; for summary cards a square of at least 144 × 144. Images must be under 5 MB and in JPG, PNG, WebP or GIF format — SVG isn't supported.