HubTools

Twitter Card Validator

Preview your X / Twitter card and validate twitter: and og: tags — instantly and client-side.

What is a Twitter Card?

A Twitter Card (now also called an X Card) is the rich preview that appears when someone shares your URL on X — usually a hero image with title, description, and your @handle, expanded inline in the feed. Cards are controlled by <meta name="twitter:*"> tags in your <head>; X falls back to Open Graph (og:*) tags when the twitter-prefixed ones are missing. The four card types — summary, summary_large_image, player, app — produce different layouts, but summary_large_image is what most publishers use because it grabs the most attention. Validating cards before publishing matters because X aggressively caches the first version it sees, and broken cards quietly tank click-through rates. This validator parses your HTML locally and previews the card the way X would render it. Building schema as well? Use the Schema Generator. Auditing the rest of your head tags? Run the SEO Checker.
Input Method
Manually configure Twitter Card meta tags
Basic Twitter Card Settings
Configure the essential Twitter Card meta tags
Card Type
summary_large_image
Large image card for visual content. Recommended for most use cases.
Title0 / 70
Description0 / 200
Image URLRecommended: 1200x630px (1.91:1 ratio)
Image Alt Text
Site Handle (@username)
Creator Handle (@username)
Validation ResultsValid
Suggestions (2)
twitterTitle: Consider adding a title for better engagement
twitterImage: Adding an image will improve engagement on Twitter
Quick Tips
Summary Large ImageRecommended for most use cases. Provides large, eye-catching previews.
Image RequirementsUse absolute URLs (https://). Max file size: 5MB. Supported formats: JPG, PNG, WEBP, GIF.
TestingUse Twitter's Card Validator to test your implementation after deployment.

How to use this tool

  1. 1
    Paste your page HTML
    Drop the full <head> or the entire HTML document into the input. Only the meta tags need to be present.
  2. 2
    Read the parsed tags
    The validator extracts twitter: and og: tags, marks required-but-missing tags red, and lists every value found.
  3. 3
    See the live preview
    The right pane renders the card the way X would — image, title, description, and domain badge.
  4. 4
    Fix and re-validate
    Update your HTML, paste again, and verify the preview matches your intent before deploying.

Frequently asked questions

What Twitter Card types are supported on X?
X supports four card types: summary (small square thumbnail next to text), summary_large_image (a wide hero image with text), app (for promoting iOS/Android apps), and player (for embedded video or audio). Most marketing pages use summary_large_image because it claims the most real estate in the timeline.