JSXImage
On this page

Certificates of completion

Course platforms, bootcamps and events give every participant a certificate with their name, the course and a date. This guide builds one certificate template, then issues certificates two ways: automatically when a learner finishes, and for a whole cohort at once from a spreadsheet.

Need just a few, by hand? Use the free certificate generator: fill in the fields and download a PNG, no signup.

How it works

  1. One template holds the design. The learner’s name, the course, the date and a certificate id are its props.
  2. Your app renders the certificate with the API when a learner completes the course, and stores the image. The learner downloads it or gets it by email.
  3. A stored image never changes. A certificate is a record: if you redesign the template next year, certificates you already issued stay exactly as they were.

Step 1: build the template

Open the playground, click Templates and choose the Certificate example, or describe yours to your AI assistant through the MCP server. Keep the values that change per learner in export const props:

export const props = {
  name: "Priya Raman",
  course: "Advanced TypeScript",
  date: "November 18, 2026",
  issuer: "Acme Academy",
  certificateId: "AA-2026-004213",
};

Things that make a certificate work:

  • Size. Landscape A4 proportions are about 1.414 : 1. width: 2000 and height: 1414 prints sharply on A4 or Letter and still loads fast on screen. The maximum is 4000 px per side.
  • Long names. Test the longest name you have, and names in other scripts. Reduce the font size for long names in the template if needed, for example props.name.length > 24 ? "text-6xl" : "text-7xl".
  • Fonts. Certificates often use a serif or script font for the name. Add it with googleFont in the options, see Fonts.
  • A certificate id. Print an id (and a verification address, if you have one) so a certificate can be checked.
  • Logo and signature. Use image URLs in <img>, or paste SVGs inline.

Save the template and copy its template uid from the ⋯ menu.

Step 2: issue certificates

Automatically, when a learner finishes

Render the certificate from your backend when a course is completed, store the image in your own storage, and link it from the learner’s account or the email. An example in Node.js (18 or later):

const API_KEY = "YOUR_API_KEY"; // from the API keys page; keep it on the server
const TEMPLATE = "<template-uid>";

export async function issueCertificate({ learner, course, completedAt }) {
  const certificateId = `AA-${completedAt.getFullYear()}-${learner.id}-${course.id}`;
  const res = await fetch("https://jsximage.com/api/render", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      template: TEMPLATE,
      props: {
        name: learner.fullName,
        course: course.title,
        date: completedAt.toLocaleDateString("en-US", { dateStyle: "long" }),
        issuer: "Acme Academy",
        certificateId,
      },
    }),
  });
  if (!res.ok) throw new Error((await res.json()).error);
  const png = Buffer.from(await res.arrayBuffer());
  // Store it once, e.g. in S3 or R2, and save the address on the enrollment.
  return { certificateId, png };
}

One certificate is one render. Store the image and serve it from your storage: rendering it again for every download would use renders and could pick up template changes.

For a whole cohort, from a spreadsheet

For a workshop or an event, issue everyone’s certificate at once with bulk export, no code needed:

  1. Export the participants to a spreadsheet with one column per prop:
name,course,date,issuer,certificateId
Priya Raman,Advanced TypeScript,"November 18, 2026",Acme Academy,AA-2026-004213
Sam Okafor,Advanced TypeScript,"November 18, 2026",Acme Academy,AA-2026-004214
  1. Open the template in the playground, click Bulk and choose the file.
  2. Name the files after the name or certificateId column, choose PNG and click Render. You get one zip with every certificate, ready to send.

Bulk export runs in your browser, so it doesn’t use your monthly renders. The number of rows per run depends on your plan, see pricing.

If you’d rather not store files, a live image URL per learner works as a link in the email or on a profile page. Keep in mind that a live URL always shows the template as it is now: if you change the design, every certificate shown through a URL changes with it. For records that must stay as issued, store the rendered image instead.

Good to know

  • Sharing on LinkedIn. Learners can download the image and add it to a post, or add it under Licenses & certifications with your verification link.
  • Printing. At 2000 × 1414 the image prints well on A4 or Letter. For larger prints, raise the size, up to 4000 px per side.
  • Corrections. To fix a misspelled name, render that one certificate again with the corrected props and replace the stored file.

Questions? See the docs or email info@jsximage.com.