Open Graph / Twitter Card Tag Generator
Generate OG tags and Twitter Card tags for better share previews — copy ready-to-paste HTML instantly.
Use the exact public URL you want shared and indexed.
Tip: keep it clear and under ~160 characters.
Preview image
Recommended: a readable 1200×630 image (large text, high contrast).
Twitter Cards
Generated HTML
Paste these tags inside the <head> of your page.
Quick checks
- Use the exact canonical URL (avoid http/https or www/non-www mismatches).
- Use a strong preview image (1200×630 recommended).
- Keep title and description consistent with on-page content.
Open Graph tag generator + Twitter Card tag generator (SEO for social sharing)
Social share previews can change click-through rate. If your site shows the wrong title, missing description, or no image when shared, you typically need Open Graph meta tags and Twitter Card tags. This tool generates the most common OG + Twitter tags and outputs clean HTML you can paste into your page’s <head>.
Need a full checklist and common fixes? Read: Open Graph & Twitter Card Tags – Fix Social Share Previews.
Best practices to improve previews
- Use a unique title and description that matches the page content.
- Use a single canonical URL format (avoid duplicates across environments).
- Use a readable OG image (1200×630 recommended) with high contrast and large text.
- Keep tags consistent across OG and Twitter to avoid mismatched previews.
FAQs
What are Open Graph (OG) tags?+
Open Graph tags are meta tags used by platforms like Facebook, LinkedIn, and others to generate a rich share preview (title, description, image).
What are Twitter Card tags?+
Twitter Card tags control how your page looks when shared on X/Twitter. Common cards are summary and summary_large_image.
What is a good Open Graph image size?+
A common recommendation is 1200×630 for a large, readable preview image. Use high contrast and large text for clarity.
Is this tool free to use?+
Yes. ToolsOfWeb tools are free to use.
Do I need to create an account?+
No. No sign-up is required.
Related Tools
- Meta Tag Generator (Title/Description/Canonical)
- Guide: Open Graph + Twitter Card tags
- JSON Formatter
- Guide: Meta tags + Open Graph
Want guides and tips? Visit the ToolsOfWeb blog or go back to the homepage.
Related guide
Read guide: Open Graph + Twitter Card tags (fix social share previews) →