How to Make Name Badges and Place Cards from Google Sheets (Several per Page, 2026)

If your guest or attendee list is already in Google Sheets, typing the badges again by hand is the slow part of event prep. Most mail-merge methods make one document per row, which is fine for a certificate but wrong for badges: you want six or eight on each sheet of label stock, lined up with the perforations. This guide sets up a guest list tab, a Google Docs template with a grid that matches your badge sheet, and a free Apps Script that fills the grid page after page. It can start partway through a used label sheet, and it remembers who already has a badge, so late registrations print without reprinting everyone.

The same setup works for table place cards, seat labels and other “many small cards per page” jobs. The place card section below covers what changes.

Step 1: a Guests tab, one row per person

Name the tab Guests. The script finds columns by their header, so the order is up to you and you can add your own columns. The formulas below assume A to H:

ColHeaderWhat goes in it
AFirst nameThe name people use. If someone goes by a nickname, put that here; this is the big line on the badge.
BLast nameAlso used for sorting, so the badge table at the door is in alphabetical order.
CCompanyOr school, team, chapter, city. Blank is fine; the line is just left empty.
DRoleOptional: Speaker, Volunteer, Staff, pronouns, a ticket type.
ETableFor place cards: table number or name.
FMealFor place cards: a short meal code for the caterer (for example V, VG, GF).
GStatusBlank or Confirmed prints. Cancelled, Declined, Not coming or No are skipped.
HPrinted onLeave empty. The script writes the date and time after it makes a card, and skips those rows next time.

If the list comes from a Google Form or a registration export, keep the raw export on its own tab and pull the columns you need into Guests with a formula, or paste values. Then check the list before you print:

Step 2: a Docs template with one table that matches your badge sheet

Each cell of the table is one badge. The script copies the whole table for each new page, so the layout only has to be right once. First check your label pack for the exact sizes; these are common ones:

StockCard sizePer US Letter sheetTable
Badge holder inserts such as Avery 53924 × 3 in (3 × 4 in turned)62 columns × 3 rows
Adhesive name badges such as Avery 53953⅜ × 2⅓ in82 columns × 4 rows
Plain card stock you cut yourselfYour choice, for example 4 × 2.75 in82 columns × 4 rows, with thin borders as cut lines
  1. Create a new Google Doc. In File › Page setup, choose Pages (not Pageless, which has no page breaks), set the paper size to match your stock, and set the top and left margins to the label sheet's top and side margins (they are printed on the pack or in the manufacturer's template). Leave the right and bottom margins small.
  2. Insert › Table with the right number of columns and rows. Open Format › Table › Table properties: set each column width to the distance from the left edge of one label to the left edge of the next, the minimum row height to the distance from the top of one label to the top of the next, cell padding to 0.05 in or so, and vertical alignment to middle. Set the border width to 0 pt for printed labels (keep a light border for cut-it-yourself cards).
  3. Design the top left cell: for example {{First name}} in 32 pt bold, {{Last name}} in 18 pt and {{Company}} in 12 pt, centered. A logo inserted as an In line image is part of the cell and is copied with the table; images set to wrap text sit outside the table and are not.
  4. Copy the contents of that cell into every other cell. Every cell must have its own placeholders; the script fills cells left to right, then top to bottom.
  5. Keep anything else off the page: no title above the table and no text below it.

Placeholders must match a header (capitals and extra spaces don't matter) and each one must be typed in one go; if you edit the middle of one later, retype the whole placeholder. A placeholder with no matching column is left blank, and the script tells you its name. Copy the template's ID (between /d/ and /edit in its URL) and the ID of a Drive folder for the finished files (after /folders/).

Step 3: the script

In the sheet, open Extensions › Apps Script, paste the script below and fill in the two IDs. Save, reload the sheet, then use Badges › Make badges / place cards and approve the permissions the first time. It asks which card position to start at: 1 is the top left card. If three badges are already gone from the sheet in the printer, type 4.

// Name badges and place cards from a Google Sheet: fills a grid of cards on every page.
// Sheet: a tab called Guests with a header row. Template: a Google Doc whose page holds ONE table,
// one card per cell, with {{Header}} placeholders typed in each cell.
const TEMPLATE_ID = 'PASTE_TEMPLATE_DOC_ID';
const FOLDER_ID = 'PASTE_DRIVE_FOLDER_ID';
const SHEET_NAME = 'Guests';
const ONLY_NEW = true;           // skip rows that already have something in "Printed on"
const SORT_BY = 'Last name';     // header to sort by, or '' to keep the sheet's order
const SKIP_STATUS = ['cancelled', 'canceled', 'declined', 'not coming', 'no'];
const MAX_CARDS = 300;           // per run; run again for the rest (needs ONLY_NEW and a Printed on column)

function onOpen() {
  SpreadsheetApp.getUi().createMenu('Badges')
    .addItem('Make badges / place cards', 'makeCards')
    .addToUi();
}

function makeCards(startAt, now) {
  const ui = typeof startAt === 'number' ? null : SpreadsheetApp.getUi();
  if (ui) {
    const r = ui.prompt('Start at card', 'Which card on the first sheet should printing start at? ' +
      '1 = top left. Use a higher number for a part-used label sheet.', ui.ButtonSet.OK_CANCEL);
    if (r.getSelectedButton() !== ui.Button.OK) return null;
    startAt = parseInt(r.getResponseText(), 10) || 1;
  }
  now = now || new Date();
  const lock = LockService.getDocumentLock();
  if (!lock.tryLock(30000)) throw new Error('Another run is still going. Try again in a minute.');
  try {
    const ss = SpreadsheetApp.getActive();
    const sheet = ss.getSheetByName(SHEET_NAME);
    if (!sheet) throw new Error('No tab called "' + SHEET_NAME + '".');
    const picked = pickRows_(sheet.getDataRange().getDisplayValues());
    if (!picked.cards.length) {
      if (ui) ui.alert('Nothing to print: no new rows.');
      return { cards: 0, pages: 0, skipped: picked.skipped, left: 0 };
    }
    const cards = picked.cards.slice(0, MAX_CARDS);
    const stamp = Utilities.formatDate(now, ss.getSpreadsheetTimeZone(), 'yyyy-MM-dd HH:mm');
    const folder = DriveApp.getFolderById(FOLDER_ID);
    const file = DriveApp.getFileById(TEMPLATE_ID).makeCopy(SHEET_NAME + ' cards ' + stamp, folder);
    const doc = DocumentApp.openById(file.getId());
    const body = doc.getBody();
    const tables = body.getTables();
    if (tables.length !== 1) {
      file.setTrashed(true);
      throw new Error('The template needs exactly one table (one card per cell). It has ' + tables.length + '.');
    }
    const grid = tables[0];
    const proto = grid.copy();
    const perPage = cellsOf_(grid).length;
    const pages = layout_(cards, perPage, startAt);
    const unknown = {};
    pages.forEach(function (page, p) {
      let table = grid;
      if (p > 0) {
        body.appendPageBreak();
        table = body.appendTable(proto.copy());
      }
      cellsOf_(table).forEach(function (cell, k) { fillCell_(cell, page[k], picked.keys, unknown); });
    });
    doc.saveAndClose();
    const pdf = folder.createFile(file.getAs('application/pdf')).setName(file.getName() + '.pdf');
    if (picked.printedCol) {
      cards.forEach(function (c) { sheet.getRange(c.row, picked.printedCol).setValue(stamp); });
    }
    const result = { cards: cards.length, pages: pages.length, perPage: perPage, skipped: picked.skipped,
      left: picked.cards.length - cards.length, unknown: Object.keys(unknown),
      doc: file.getUrl(), pdf: pdf.getUrl() };
    if (ui) {
      ui.alert(result.cards + ' cards on ' + result.pages + ' page(s), ' + perPage + ' per page.\n\nPDF: ' + result.pdf +
        (result.left ? '\n\n' + result.left + ' more rows: run it again.' : '') +
        (result.unknown.length ? '\n\nNo column for: {{' + result.unknown.join('}}, {{') + '}} (left blank).' : ''));
    }
    return result;
  } finally {
    lock.releaseLock();
  }
}

// Reads display values (so dates and numbers print exactly as the sheet shows them).
function pickRows_(values) {
  const headers = values[0].map(function (h) { return String(h).trim(); });
  const keys = {};
  headers.forEach(function (h) { if (h && !(h.toLowerCase() in keys)) keys[h.toLowerCase()] = h; });
  const col = function (name) { return headers.findIndex(function (h) { return h.toLowerCase() === name; }); };
  const printed = col('printed on'), status = col('status'), sortCol = SORT_BY ? col(SORT_BY.toLowerCase()) : -1;
  const cards = [];
  let skipped = 0;
  for (let i = 1; i < values.length; i++) {
    const v = values[i].map(function (x) { return String(x).trim(); });
    const hasData = v.some(function (x, c) { return x !== '' && c !== printed && c !== status; });
    if (!hasData) continue;
    if (status >= 0 && SKIP_STATUS.indexOf(v[status].toLowerCase()) >= 0) { skipped++; continue; }
    if (ONLY_NEW && printed >= 0 && v[printed] !== '') { skipped++; continue; }
    const rec = {};
    headers.forEach(function (h, c) { if (h && !(h in rec)) rec[h] = v[c] === undefined ? '' : v[c]; });
    cards.push({ row: i + 1, rec: rec, sort: sortCol >= 0 ? v[sortCol] : '' });
  }
  if (sortCol >= 0) {
    cards.sort(function (a, b) {
      return a.sort.localeCompare(b.sort, undefined, { sensitivity: 'base', numeric: true }) || a.row - b.row;
    });
  }
  return { cards: cards, keys: keys, skipped: skipped, printedCol: printed >= 0 ? printed + 1 : 0 };
}

// Splits cards into pages. startAt leaves the first cells of page 1 empty (part-used label sheets).
function layout_(cards, perPage, startAt) {
  const skip = Math.min(Math.max(1, Math.floor(startAt) || 1), perPage) - 1;
  const slots = new Array(skip).fill(null).concat(cards);
  const pages = [];
  for (let i = 0; i < slots.length; i += perPage) {
    const page = slots.slice(i, i + perPage);
    while (page.length < perPage) page.push(null);
    pages.push(page);
  }
  return pages;
}

function cellsOf_(table) {
  const cells = [];
  for (let r = 0; r < table.getNumRows(); r++) {
    const row = table.getRow(r);
    for (let c = 0; c < row.getNumCells(); c++) cells.push(row.getCell(c));
  }
  return cells;
}

// Fills one cell. An empty slot (card = null) gets all its placeholders removed.
function fillCell_(cell, card, keys, unknown) {
  const names = {};
  (cell.getText().match(/\{\{[^{}]+\}\}/g) || []).forEach(function (m) { names[m.slice(2, -2)] = true; });
  Object.keys(names).forEach(function (name) {
    let value = '';
    if (card) {
      const key = keys[name.trim().toLowerCase()];
      if (key === undefined) unknown[name] = true; else value = card.rec[key];
    }
    cell.replaceText('\\{\\{' + name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '\\}\\}', value);
  });
}

What the script does

Step 4: print so the badges line up

Place cards and tent cards

For place cards, make the template's cells the size of one card before folding, and use {{First name}} {{Last name}} large, with {{Table}} small. A folded tent card shows its lower half to the guest, so put the name in the bottom half of the cell: set the cell's vertical alignment to bottom, or add a few empty lines above the name. Google Docs has no way to turn text in a table upside down, so a name readable from both sides of the fold doesn't work in Docs. Print one side only (the guest's side), use flat place cards, or build the cards in Google Slides, where a text box can be rotated 180 degrees.

Small extras that help on the day: put {{Meal}} in a corner as a short code so servers know which plate goes where, and print the cards in table order (SORT_BY = 'Table') so each table's cards come off the printer together. Print a code, not an allergy or medical detail, on anything other guests can read.

Tips and caveats

Need one document per person instead? SheetWeave (disclosure: we make it) is a Google Sheets add-on that fills a Google Docs template with each row's column values and saves a Doc, a PDF, or both in a Drive folder you choose, writing the links back to the row. That suits one-per-page jobs from the same guest list: welcome letters, full-page table signs, speaker cards, or badges printed one at a time on a page sized to the badge. For several badges on one label sheet, use the script above. SheetWeave is on the Google Workspace Marketplace.
See SheetWeave

Related Google Sheets guides

Instructions refer to Google Sheets, Google Docs, Google Drive and Apps Script as they worked on November 15, 2026. Label sizes are from the manufacturer's product pages as checked on November 14, 2026; check your own pack. Not affiliated with Google, Avery or any other company named here. Google Sheets, Google Docs and Google Drive are trademarks of Google LLC; Avery is a trademark of its owner. Features change, so verify in your own account. Questions or corrections: hello@loomwise.app.