Create a Link Preview Image from Article Data

The FindUtils JSON to Social Card generator turns a JSON title and optional article details into a preview image. Choose one of six templates, then export PNG or starter code. The preview uses a 1200:630 ratio. Check the downloaded pixel dimensions; the tool does not fix every export at 1200 by 630 pixels.

A social card can identify a page before a reader opens the link. Publish the image at a public URL and reference it in the page metadata. A receiving service controls its own preview, cropping, and cache. The exported image alone does not determine how every service displays the link.

Why Use a JSON-Based Social Card Generator?

Use this workflow when your article title, author, and summary already exist as structured data:

  • Field mapping — Copy relevant CMS or article fields into the supported JSON structure
  • Template reuse — Select the same template for related articles, then check each title and image
  • Export choice — Download a PNG or adapt the HTML and JSX output in your application
  • Browser preview — The template renders in the browser. Remote image URLs can still contact their image hosts.
  • Preview comparison — Change the JSON and compare the result before export

Step-by-Step: Create Your First Social Card

Step 1: Open the Tool and Paste Your JSON

Open the JSON to Social Card generator. Click "Load Sample" to see the expected format, or paste your own data.

This fictional article shows the expected structure. Its author and date are example values. Replace them with the actual article details:

JSON
1
2
3
4
5
6
7
8
9
10
11
{
 "title": "How to Build Better Developer Tools",
 "description": "A comprehensive guide to creating tools that developers actually want to use.",
 "author": "Jane Developer",
 "avatar": "",
 "date": "2024-01-15",
 "siteName": "DevBlog",
 "tag": "Engineering",
 "background": "#1a1a2e",
 "textColor": "#ffffff"
}

Supply a non-empty string for title. Other fields are optional. The tool checks for a title but does not fully validate every field type. Use strings for the text fields. A valid JSON document can still contain data that the template cannot use.

Step 2: Choose a Template

Select a template for the content you need to show:

TemplateStyleBest For
OG ClassicDark navy background, large title, author infoBlog posts, articles
Blog PostWhite/light background, tag pill, clean layoutContent marketing, news
Dark ModernDark gradient, accent line, modern typeTech products, SaaS
Gradient HeroVibrant purple-blue gradient, centered titleAnnouncements, launches
Minimal CleanWhite background, thin border, elegant textCorporate, professional
Brand BoldStrong solid color, large bold typographyBrand content, campaigns

All six previews use the same 1200:630 aspect ratio. Their rendered width depends on the available preview area. An aspect ratio defines shape, not pixel dimensions. Check the image requirements of the receiving service before publication.

Step 3: Export Your Card

Switch between the Preview tab and the Code tab:

  • PNG — Capture the preview at twice its rendered scale; check the downloaded dimensions
  • Tailwind — Static HTML that requires Tailwind CSS in the destination project
  • HTML — Static markup with inline styles; test it in the destination page or email client
  • React JSX — A function with fixed values; review its attributes and convert HTML style strings to valid JSX before use

Step 4: Use Your Social Card

For a static site, upload the PNG to a public image URL. Reference that URL in the page metadata. Replace the example domain and path below:

HTML
1
2
3
<class="text-rose-400">meta property="og:image" content="https://yoursite.com/images/og-card.png" />
<class="text-rose-400">meta name="twitter:card" content="summary_large_image" />
<class="text-rose-400">meta name="twitter:image" content="https://yoursite.com/images/og-card.png" />

The code export does not create an image endpoint or connect to your CMS. For an automated system, add data binding and an image rendering service in your application. Check that the chosen renderer supports the exported layout and styles.

Real-World Scenarios

Scenario 1: Blog Post Preview Images

For an article series, map each title, author, and summary into the same JSON structure. Select the Blog Post template and export one PNG per article. Use a separate image URL for each page. Check that the image text matches the published article.

Scenario 2: Product Launch Announcement

For a feature announcement, compare the Gradient Hero and Brand Bold templates. Check that the title remains readable at the intended display size. Export the PNG and attach it to the announcement. The template does not establish an increase in engagement.

Scenario 3: Dynamic OG Images with Next.js

For a Next.js project, treat the JSX export as a layout reference. It contains fixed values and can retain HTML-style attributes. Correct its syntax, add article data, and adapt unsupported styles to your image renderer. Run the destination build before you publish the generated images.

Scenario 4: Email Newsletter Headers

For a newsletter header, use Brand Bold with your background and text colors. Download the PNG and add suitable alternative text in your newsletter. If you use the HTML export, adapt it to the email template. Check the result in the receiving email clients.

Social Card Export Capabilities

CapabilityFindUtils
Signup RequiredNo
Templates6 layouts
Export as CodeStatic Tailwind HTML, inline-style HTML, starter JSX
Export as ImagePNG at twice the preview scale
JSON InputYes
CMS integrationAdd it in your application

JSON Fields Reference

FieldTypeRequiredDescription
titlestringYesCard headline / article title
descriptionstringNoSubtitle or summary text
authorstringNoAuthor's name
avatarstringNoURL to author's profile photo
datestringNoPublication or event date
siteNamestringNoWebsite or brand name
logostringNoDeclared field; current templates do not display it
backgroundstringNoCSS background color for OG Classic or Brand Bold
textColorstringNoCSS text color for OG Classic or Brand Bold
tagstringNoCategory or tag label

OG Classic and Brand Bold read background and textColor. The other templates use preset colors. When the custom values are absent, OG Classic and Brand Bold also use defaults. Check which fields the selected template displays; a declared field does not guarantee a visible element.

Common Mistakes and How to Fix Them

Mistake 1: Title Too Long

There is no shared 80-character title cutoff. Text wrapping depends on the template, font, and preview width. Use a clear title with the main subject near the start. Check long words and line breaks in the downloaded image.

Mistake 2: Missing Description

Add a short description when the title needs context. Omit it when it repeats the title. Several templates limit the displayed description to two lines, so check that any necessary qualification remains visible.

Mistake 3: Low-Contrast Color Combinations

Setting a dark textColor on a dark background makes text unreadable. Always test your color combination in the preview before exporting. Use the background toggle to verify on both light and dark surfaces.

Mistake 4: Not Testing Across Platforms

A card that looks great at full size may lose detail when displayed as a small thumbnail on mobile. Keep text large and avoid small details that disappear at reduced sizes.

Mistake 5: Expecting Every Template to Use Custom Colors

Use OG Classic or Brand Bold when you need custom colors. A hex value such as "#1a1a2e" is a clear starting point. The preview passes values to CSS color properties; it does not impose a hex-only validator. Check the preview and exported code when you use another CSS color format.

Choose a related generator when the content has a different purpose:

Tools Used in This Guide

A preview can load an image from an avatar, product, or other image URL in the JSON. That image host receives the image request. Browser rendering does not mean the page makes no network requests.

Use public sample images when you test a template. Check the image rights and the destination links before you publish the export.

FAQ

Q1: Is the JSON to Social Card generator free? A: You can open the generator without an account. The browser creates the preview and export. An external image URL can still contact its image host.

Q2: What export formats are available? A: PNG, Tailwind HTML, inline-style HTML, and starter React JSX are available. The code needs review before integration. It does not create a dynamic image endpoint.

Q3: What's the image aspect ratio? A: The previews use a 1200:630 ratio. The PNG capture uses twice the rendered preview scale, so inspect the downloaded pixel dimensions separately.

Q4: Can I use custom brand colors? A: Set background and textColor for OG Classic or Brand Bold. The other four templates use preset colors. Check the text contrast before export.

Q5: When should I use this OG image generator? A: Use it to make a preview image from a title, summary, and author details. Use the Product Card generator when you need prices and product information.

Q6: Is it safe to use an online social card generator? A: Use sample data for a first test. A linked image can make a request to its host. Follow your organization's data policy for confidential content.

Q7: Can I generate social cards programmatically? A: You can adapt the exported layout in your own application. Add data binding and image rendering there. The browser tool does not provide those integrations through its export.

Next Steps

Now that you know how to generate social media cards from JSON, explore these related guides and tools: