Skip to content
Derar Sattouf

Developer Tools

Open Graph Preview and Meta Tag Generator

Preview link cards and generate Open Graph and X meta tags.

  • Runs in your browser; the preview loads the image URL you enter
  • Built by Derar Sattouf

Open Graph Preview

Page details

Head markup

Paste the <head> of a page and read its tags into the fields. Nothing is fetched.

Checks

  • Title is set
  • Description is set
  • Image is missing (og:image is required by the Open Graph protocol)
  • Page URL is absolute

Link previews

Approximate layouts. Each platform decides how it crops images and shortens text, and changes its design over time.

Facebook
No image

example.com

How to format SQL queries

A short guide to readable SQL: one clause per line, consistent keyword case and aligned joins.

X
No image

How to format SQL queries

From example.com

LinkedIn
No image

How to format SQL queries

example.com

Slack

Example Blog

How to format SQL queries

A short guide to readable SQL: one clause per line, consistent keyword case and aligned joins.

No image

Meta tags

<title>How to format SQL queries</title>
<meta name="description" content="A short guide to readable SQL: one clause per line, consistent keyword case and aligned joins.">
<link rel="canonical" href="https://www.example.com/blog/format-sql">

<meta property="og:type" content="website">
<meta property="og:title" content="How to format SQL queries">
<meta property="og:description" content="A short guide to readable SQL: one clause per line, consistent keyword case and aligned joins.">
<meta property="og:url" content="https://www.example.com/blog/format-sql">
<meta property="og:site_name" content="Example Blog">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How to format SQL queries">
<meta name="twitter:description" content="A short guide to readable SQL: one clause per line, consistent keyword case and aligned joins.">

Guide

What is the Open Graph Preview?

The Open Graph Preview shows how a link card looks when a page is shared on Facebook, X, LinkedIn and Slack. Fill in the title, description, image URL and site name, or paste the <head> markup of a page to read its existing tags, then copy a clean set of Open Graph and Twitter Card meta tags. It runs in your browser; the only request it makes is loading the image URL you enter.

Last updated: November 2026 · Built by Derar Sattouf

How to use it

  1. 01Fill in the title, description, page URL, image URL and site name.
  2. 02Or paste a page's <head> markup and press Read tags to fill the fields from it.
  3. 03Compare the four link card previews and fix anything the checks flag.
  4. 04Copy the meta tags into the <head> of your page.

Features

  • Link card previews in the layouts of Facebook, X, LinkedIn and Slack
  • Large-image and small-image X cards
  • Reads og:, twitter:, description, <title> and canonical from pasted markup
  • Generates Open Graph and Twitter Card tags with escaped values
  • Flags a missing title, description, image or page URL, and relative URLs
  • No page is fetched: pasted markup and fields are all it needs. Your browser loads only the image URL you enter

See all 31 developer tools

Frequently asked questions

Does the tool fetch my page or send anything to a server?

No. It does not take a URL to crawl: you paste the markup or fill in the fields, and everything is processed in your browser. The only network request is your own browser loading the image URL you enter, straight from that image's host, to show it in the previews.

Are the previews exactly what each platform shows?

No. They are approximate layouts drawn in this site's own style. Each platform crops images and shortens text in its own way and changes its design over time, so use the platform's own preview or debugging tool for a final check.

Which meta tags does it generate?

The <title>, the meta description and a canonical link; og:type, og:title, og:description, og:url, og:image and og:site_name; and twitter:card, twitter:title, twitter:description and twitter:image. Empty fields are left out.

What size should an Open Graph image be?

A widely used size is 1200 × 630 pixels, a ratio of about 1.91:1, which is the shape the large cards here are drawn in. The image URL must be absolute, starting with https://, because a platform cannot resolve a relative path.

Why does a platform still show the old preview after I change the tags?

Platforms cache link previews. After you deploy the new tags, the preview updates when the cache expires or when you ask the platform to fetch the page again with its own debugging tool.