Eskillsfy

Home / Blog / Images

Images · 23 Nov 2026

Banner & Social Card Maker: how it works and how to build one

Design banners, social posts and link preview images in seconds. This guide explains what happens behind the button and shows the code, so you can build your own.

What it does

Pick a template, type your headline and choose a size: Open Graph 1200×630, Instagram post or story, X or LinkedIn header, YouTube thumbnail, Facebook cover and more. Add a photo or gradient background, a tag, a button and your logo, then download PNG, JPG or WebP.

When to use it

  • Open Graph images for blog posts
  • Instagram and LinkedIn posts
  • YouTube thumbnails and store banners

How to use it

  1. Pick a template and a size.
  2. Edit the text, colors and background, and add your logo.
  3. Download as PNG, JPG or WebP.

Try it free in your browser, nothing is uploaded: https://eskillsfy.com/tools/image-creator

How it works

The banner maker is a canvas drawing program with templates. Each template is a function that draws a background (solid, gradient or photo with an overlay), optional pattern, headline, subtitle, button and logo at positions relative to the canvas size, so the same design works at every preset size.

Text wraps by measuring words with ctx.measureText and breaking lines when they get too wide.

Build it yourself

Here is the core of the tool. It has no dependencies unless noted, so you can paste it into any TypeScript or JavaScript project.

banner.ts (ts)

export function drawBanner(c: HTMLCanvasElement, { title, sub, bg = "#0a0a0a", ink = "#fff" }: { title: string; sub: string; bg?: string; ink?: string }) {
  const g = c.getContext("2d")!, W = c.width, H = c.height, pad = W * 0.07;
  g.fillStyle = bg; g.fillRect(0, 0, W, H);
  const size = W * 0.075;
  g.font = `800 ${size}px Archivo, sans-serif`; g.fillStyle = ink; g.textBaseline = "top";
  const lines: string[] = []; let line = "";
  for (const w of title.split(" ")) {
    if (g.measureText(line + " " + w).width > W - pad * 2 && line) { lines.push(line); line = w; } else line = line ? line + " " + w : w;
  }
  lines.push(line);
  lines.forEach((l, i) => g.fillText(l, pad, H * 0.3 + i * size * 1.05));
  g.font = `400 ${size * 0.38}px "Instrument Sans", sans-serif`; g.globalAlpha = 0.75;
  g.fillText(sub, pad, H * 0.3 + lines.length * size * 1.05 + size * 0.4); g.globalAlpha = 1;
}

Make it production-ready

  • Wait for document.fonts.ready before drawing so web fonts are used.
  • Add templates as small functions that share helpers.

Questions

Which size is best for link previews?

1200×630, which Facebook, LinkedIn, X, WhatsApp and Slack all use for large previews.

Are my photos uploaded?

No. The banner is drawn in your browser, so photos and logos never leave your device.

Try the Banner & Social Card Maker

Free, runs in your browser, nothing is uploaded.

Open it
Keep reading

More in Images

All posts