Open Graph images from HTML and CSS

Turn every link into a beautiful share card.

The signed og:image URL for sites that are not on Vercel.

Write a card in HTML and CSS, put one signed URL in your meta tags, and every page gets its own preview image wherever its link is shared.

Free plan: 100 images a month, no card required.

Live playground

Without a card

your-site.com/design-for-the-first-glance

With Link To Card

your-site.com/design-for-the-first-glance
Live preview of the share card
Pick a template
More options
Theme

This is the tag for that card.

Paste it into your page's <head>. YOUR_SITE_ID and YOUR_SIGNATURE are placeholders: a free account gives you the real ones.

Start free
<meta property="og:image" content="https://linktocard.com/v1/og/YOUR_SITE_ID/blog.png?title=Design+for+the+first+glance&amp;description=What+people+notice+before+they+read+a+single+word%2C+and+how+to+plan+for+it.&amp;author=Maya+Lindqvist&amp;theme=light&amp;sig=YOUR_SIGNATURE">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://linktocard.com/v1/og/YOUR_SITE_ID/blog.png?title=Design+for+the+first+glance&amp;description=What+people+notice+before+they+read+a+single+word%2C+and+how+to+plan+for+it.&amp;author=Maya+Lindqvist&amp;theme=light&amp;sig=YOUR_SIGNATURE">

How it works

How does it work?

Three steps. There is no headless browser to host, patch or wait for.

  1. Pick or write a template

    Start from a starter template or write your own in HTML and CSS, with {{placeholders}} for the parts that change from page to page.

    <div class="card">
      <h1>{{title}}</h1>
      <p>{{author}}</p>
    </div>
  2. Sign the URL

    Create a site to get its id and secret. Your server or build script signs each image URL with HMAC-SHA256. This is all of it in Node.js:

    import { createHmac } from 'node:crypto';
    
    const path = `/v1/og/${SITE_ID}/blog.png`;
    const params = { title: 'Hello world' };
    const names = Object.keys(params).sort();
    const lines = [
      path,
      names.join(','),
      ...names.map((name) => `${name}=${params[name]}`),
    ];
    const sig = createHmac('sha256', SITE_SECRET)
      .update(lines.join('\n'))
      .digest('hex');
    
    const query = new URLSearchParams({ ...params, sig });
    const url = `https://linktocard.com${path}?${query}`;
  3. Paste it into your meta tags

    The first request renders the image and stores it. Later requests for the same URL are served from cache and do not count again while it is stored.

    <meta property="og:image" content="${url}">

Prefer to render ahead of time? POST /v1/images with an API key returns the image URL. The docs cover both.

Starter templates

What do the templates look like?

Five to start from. Use one as it is, or as the starting point for your own design.

Pricing

What does it cost?

Each plan is a fixed monthly price for a set number of rendered images. There is no metered billing and no overage. Prices are in USD and exclude tax. Paddle, our reseller and Merchant of Record, adds any applicable sales tax or VAT at checkout.

Free

$0 per month

100 images per month

  • Rendered images cached for 7 days
  • Small watermark in one corner
  • Bundled fonts only
  • No top-ups: a hard stop at the limit
  • Docs and best-effort email
Start free

No card required.

Starter

$9 per month

2,000 images per month

  • Rendered images cached for 30 days
  • No watermark
  • 3 custom font files, up to 2 MB each
  • Top-ups: $8 per 1,000 images
  • Email support
Choose Starter

Billed by Paddle as “Link To Card Starter”.

Pro

$29 per month

10,000 images per month

  • Rendered images cached for 90 days
  • No watermark
  • 20 custom font files, up to 5 MB each
  • Top-ups: $8 per 1,000 images
  • Priority email support
Choose Pro

Billed by Paddle as “Link To Card Pro”.

Busy month? On Starter and Pro, a $8 top-up adds 1,000 images. You buy it yourself; nothing is ever billed automatically. Full pricing, top-ups and limits

Fair counting

What counts as an image?

The rules are short, and they are the same ones the billing code enforces.

One image is one rendered size counts 1
The same card rendered in two sizes is two images.
Failed renders never count counts 0
If a render ends in an error, nothing is taken from your quota.
Cache hits never count counts 0
A rendered image is kept for 7 days on Free, 30 on Starter and 90 on Pro. Requests for it in that time are served from cache and are not counted again.
Unused quota does not roll over
The monthly allowance resets at the start of each billing period.
The limit is a hard stop
When the allowance is used up, new renders answer HTTP 402 until the next period. On Free that is the end of it. There is no overage billing on any plan.
Top-ups are manual
On paid plans you can buy 1,000 extra images for $8 whenever you choose. A top-up is never bought or billed automatically.

FAQ

Honest answers.

Including the things this product does not do.

What is Link To Card, and what is it not?

It renders Open Graph and social card images from HTML and CSS templates, either through a signed URL you put in your meta tags or through an API call.

It is not a visual editor: templates are code. It does not take screenshots of web pages, it does not make video or GIFs, and it does not generate images with AI.

How do signed URLs stop other people from using my quota?

Every image URL carries a signature, an HMAC-SHA256 of its path and parameters made with your site's secret. Someone who changes the text in the URL, or invents a new one, cannot produce a valid signature without that secret. The request is rejected with HTTP 403 before anything is rendered, so it never counts.

What happens when I reach my limit?

New renders stop and the API answers HTTP 402 until your next billing period. Images that are already rendered and still cached keep being served.

On Free that is a hard stop. On Starter and Pro you can buy a top-up of 1,000 images for $8, or change plan. Nothing is ever charged automatically beyond your subscription.

How does the cache work, and when is an image counted again?

A rendered image is stored for 7 days on Free, 30 days on Starter and 90 days on Pro. While it is stored, requests for the same URL are served from cache and are not counted.

After that, the next request renders the image again and counts as one image. A different URL, for example a new title or another size, is a different image.

Which fonts, emoji and languages work?

The bundled fonts cover Latin, Cyrillic, Greek and Vietnamese. Other scripts need a font that you upload, which requires a paid plan. Emoji are drawn with the open-source Twemoji graphics.

Right-to-left and complex scripts, such as Arabic or Hebrew, have limited support in the rendering engine. Test your own text before you rely on it.

Can I get a refund?

Yes. Payments are handled by Paddle, and you can ask for a refund within 30 days of a payment. The refund policy has the details.

Who runs this?

A solo developer. There is no sales team and no support desk in between: when you write, the person who built the product answers.

Where do I get help?

Start with the docs. If you are stuck, email support@linktocard.com or use the contact form.

Questions before you start?

Email support@linktocard.com or use the contact page. The person who built the product answers.