Meta Tags Preview
Google Search Preview
example.com
https://example.com
Page Title
Meta description will appear here. Write a compelling description to increase your click-through rate from search results.
Facebook / Open Graph Preview
example.com
Page Title
Meta description will appear here. Write a compelling description to increase your click-through rate from search results.
Twitter / X Card Preview
Meta Tags Best Practices
- Title Tag
- Keep it under 60 characters. Include your primary keyword near the beginning. Make it compelling - this is the first thing people see in search results.
- Meta Description
- Aim for 140-160 characters. Summarize the page content and include a call to action. While Google sometimes rewrites descriptions, a good one increases click-through rate.
- Open Graph Tags
- OG tags control how your page looks when shared on Facebook, LinkedIn, and other platforms. Always include og:title, og:description, and og:image. Recommended image size: 1200×630px.
- Twitter Cards
- Twitter uses its own card tags, but falls back to Open Graph. Use summary_large_image for the best visual impact. Test your cards with Twitter's Card Validator.
Complete Meta Tags Example
Here are the key meta tags from this blog's post about migrating to Astro. This set in your <head> is enough for a page to look right in Google and on Facebook, LinkedIn, and X:
<title>Next.js to Astro migration. No more clicking around the UI | buildandmarket.dev</title>
<meta name="description" content="Next.js was overkill and Strapi meant endless UI clicking. How I moved my blog to Astro and Cloudflare, why OpenTofu, and how it hit 100/100 in Lighthouse.">
<link rel="canonical" href="https://buildandmarket.dev/en/blog/migrating-from-nextjs-to-astro">
<meta property="og:type" content="article">
<meta property="og:url" content="https://buildandmarket.dev/en/blog/migrating-from-nextjs-to-astro">
<meta property="og:title" content="Next.js to Astro migration. No more clicking around the UI">
<meta property="og:description" content="Next.js was overkill and Strapi meant endless UI clicking. How I moved my blog to Astro and Cloudflare, why OpenTofu, and how it hit 100/100 in Lighthouse.">
<meta property="og:image" content="https://buildandmarket.dev/og/blog/en/migrating-from-nextjs-to-astro.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Next.js to Astro migration. No more clicking around the UI">
<meta name="twitter:card" content="summary_large_image">X falls back to og:title, og:description, and og:image when it can't find its own twitter: tags, so twitter:card is the only X tag you need. A 1200×630 px image works on Facebook, LinkedIn, and X at the same time.
Meta Tags FAQ
What size should an OG image be?
1200×630 px, a 1.91:1 ratio. That size looks good on Facebook, LinkedIn, and X with a summary_large_image card. Keep important elements away from the edges, since some platforms crop the preview, and keep the file under 5 MB.
Why does Facebook show an old title or image?
Facebook caches the link preview the first time a URL is shared. After changing your meta tags, paste the URL into the Sharing Debugger and click Scrape Again to make Facebook fetch the page again. On LinkedIn, Post Inspector does the same.
Do I need separate twitter: tags?
No. X uses og:title, og:description, and og:image when it can't find its own equivalents. Adding twitter:card set to summary_large_image is enough to show the image in the large format.
Does the meta keywords tag still matter?
No. Google has ignored the meta keywords tag since 2009. What counts is the title, the description, and the content of the page itself.
Can I preview a page before publishing it?
Yes. Instead of fetching tags from a URL, type the title, description, and image link into the form above. The preview updates as you type, and the character counter shows whether you're within the limits.