← Back to DevKit

OG & Meta Tag Generator

OG META · DEV TOOLS

Fill in title, description, URL and image to generate complete Open Graph + Twitter Card + standard meta code, with live WeChat / Telegram / X card previews and JSON-LD.

Generated locally — nothing is uploaded.
Share info
Recommended 1200×630 (1.91:1); smaller images get stretched or grey-bordered.
Social card preview
Meta code
JSON-LD
Open Graph is the sharing protocol used by Facebook, WeChat, Telegram and others; Twitter Card tailors X. The three preview cards are pure-CSS mockups — images show only as placeholder boxes displaying the URL, with no external requests. JSON-LD helps search engines understand the page.

>_ USAGE GUIDE

When building share cards, platforms read OG / Twitter Card tags to decide the title, description and cover image. Fill four fields and get complete code plus three live card previews.

Typical steps:

  1. Fill info: title, description, page URL and image URL (image is required). Aim for a 1200×630 cover
  2. Live preview: the right side shows pure-CSS mock cards for WeChat / Telegram / X; images appear as placeholder boxes showing the URL, with no external requests
  3. Copy code: the Meta block holds standard <title>, Open Graph and Twitter Card snippets; the JSON-LD block holds structured data — copy both
  4. Embed: drop both blocks into the page <head> and add og:type per platform needs

>_ FAQ

Q1 · Why is the image a placeholder box?

The preview is a frontend-only CSS mock that deliberately does not load external images (no requests to your CDN, no broken external links). In production use the real URL and serve a 1200×630 cover.

Q2 · Why is the image URL required?

The Open Graph cover depends entirely on og:image; without it platforms show a grey block or skip the card. The tool enforces it and warns when empty.

Q3 · Open Graph vs Twitter Card?

Open Graph is adopted by Facebook, WeChat, Telegram and others; Twitter (X) prefers the twitter:* tags. Providing both makes the large-image card work on X as well.

Q4 · What is JSON-LD for?

JSON-LD is the structured data search engines use to understand the page, complementing OG by adding semantic title/description/URL/image for indexing and rich results.

Q5 · What cover size is recommended?

1200×630 (aspect 1.91:1) is the sweet spot for most platforms; smaller images get stretched or grey-bordered, larger ones load slower.

Embed code

Paste the code below into your page to embed this tool as an iframe (nav and footer auto-hidden).

Heightpx
This tool runs entirely in your browser — input never leaves your device. Press Ctrl K to switch tools anytime.