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:
| Col | Header | What goes in it |
|---|---|---|
| A | First name | The name people use. If someone goes by a nickname, put that here; this is the big line on the badge. |
| B | Last name | Also used for sorting, so the badge table at the door is in alphabetical order. |
| C | Company | Or school, team, chapter, city. Blank is fine; the line is just left empty. |
| D | Role | Optional: Speaker, Volunteer, Staff, pronouns, a ticket type. |
| E | Table | For place cards: table number or name. |
| F | Meal | For place cards: a short meal code for the caterer (for example V, VG, GF). |
| G | Status | Blank or Confirmed prints. Cancelled, Declined, Not coming or No are skipped. |
| H | Printed on | Leave 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:
- Tidy capitals and spaces. In a spare column,
=PROPER(TRIM(A2))fixes “jANE ” and extra spaces. Paste the results back as values, then fix by hand the names PROPER gets wrong: it turns McDonald into Mcdonald, and “de la Cruz” into “De La Cruz”. - Names too long for the badge. Select A2:H, add a conditional format with the custom formula
=LEN($A2)>12(adjust the number after a test print). Those rows need a smaller font or a shorter first name line. - Duplicates. Same range, custom formula
=COUNTIFS($A:$A,$A2,$B:$B,$B2)>1highlights the same person registered twice. - Seats per table (place cards), on another tab:
=QUERY(Guests!A1:H,"select E, count(A) where E is not null and G <> 'Cancelled' and G <> 'Declined' group by E label count(A) 'Seats'",1) - Meals per table for the caterer:
=COUNTIFS(Guests!E:E,4,Guests!F:F,"V")counts vegetarian meals at table 4.
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:
| Stock | Card size | Per US Letter sheet | Table |
|---|---|---|---|
| Badge holder inserts such as Avery 5392 | 4 × 3 in (3 × 4 in turned) | 6 | 2 columns × 3 rows |
| Adhesive name badges such as Avery 5395 | 3⅜ × 2⅓ in | 8 | 2 columns × 4 rows |
| Plain card stock you cut yourself | Your choice, for example 4 × 2.75 in | 8 | 2 columns × 4 rows, with thin borders as cut lines |
- 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.
- 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).
- 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. - 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.
- 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
- It reads the sheet's displayed values, so a date, time or number prints exactly as it looks in the sheet (format the column the way you want it on the badge).
- It skips blank rows, rows whose Status is in
SKIP_STATUS, and rows that already have a Printed on date. Then it sorts bySORT_BY(Last name by default, ignoring capitals and putting “Item 9” before “Item 10”). SetSORT_BY = ''to keep the sheet's order, for example to print table by table. - It makes a copy of the template named like
Guests cards 2026-11-15 18:30in your folder, fills the table, adds a new page with a fresh copy of the table every time the page is full, and empties the placeholders in any unused cells on the last page. It also saves a PDF of the same pages. - After the files are saved it writes the date and time into Printed on for every row it used. To reprint one badge (a typo, a lost badge), clear that person's Printed on cell and run it again; set
ONLY_NEW = falseto reprint everyone. - It makes at most
MAX_CARDScards per run to stay inside Apps Script's six-minute limit, and tells you how many are left; run it again for the rest. - A document lock stops two people running it at the same moment and getting the same rows.
Step 4: print so the badges line up
- Print the PDF, not the Doc, and set the print dialog to 100% / Actual size with “Fit to page” turned off. Scaling is the usual reason badges drift off the labels.
- Print the first page on plain paper, put it on top of a label sheet and hold both up to a window. If everything is off by the same amount, move the template's top or left margin by that amount. If the error grows across the page, adjust the column width or row height instead.
- If a blank page appears after every page, the table is a fraction too tall for the page (Docs keeps an empty line after each table). Make the bottom margin or the minimum row height slightly smaller.
- Set the printer to card stock or labels if it has the option, and check which way up the sheets go into the tray with one test page.
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
- Late registrations. Add their rows and run it again. Only rows without a Printed on date are made, and you can start at the next unused label on a part-used sheet.
- Privacy. Don't print email addresses or phone numbers on badges, and share the guest sheet only with the people running the event. A list of who attended, with their meal choices, is personal data.
- The same QR code on every badge (Wi-Fi, agenda, feedback form) works: put it in the template cell as an In line image. A different QR code per person needs an image per row, which this script doesn't do.
- Fonts. First names are read from a few steps away, so make that line big and bold and keep the rest small. Test the longest name on your list; the length check from Step 1 finds it.
- Permissions. Because the script uses DriveApp and DocumentApp, Google will ask to let it see, edit, create and delete your Drive files and Docs. That is normal for a script you wrote yourself, but it is broad access.
See SheetWeave
Related Google Sheets guides
- How to generate a PDF or Google Doc for each row in Google Sheets
- Find and remove duplicates in Google Sheets
- Compare two columns or two sheets for duplicates
- Find case-insensitive and fuzzy duplicates in Google Sheets
- Remove and highlight duplicates in Google Sheets with SheetDupes
- Best Autocrat alternatives for mail merge to PDF and Docs
- Make invoices or certificates from Google Sheets rows
- Create sales quotes or estimates from Google Sheets
- Generate receipts from Google Sheets rows
- Create purchase orders from Google Sheets
- Make packing slips from Google Sheets orders
- Generate a PDF certificate from a Google Form response
- Issue numbered training completion certificates with expiry dates
- Make a PDF progress report for each student
- Generate offer letters from a Google Sheets hiring tracker
- Generate contracts and agreements from a Google Docs template
- Make work orders for service jobs from Google Sheets
- Email each row’s PDF as an attachment
- Automatic email reminders from a date column
- Contract renewal and expiration alerts from Google Sheets
- Track certificate of insurance (COI) expirations in Google Sheets
- Track employee license and certification expirations
- Track equipment and vehicle maintenance with reminders
- Equipment sign-out sheet with due-back and overdue reminders
- Track warranty expiration dates with reminders
- Birthday and work anniversary reminders from Google Sheets
- Rent due and lease renewal reminders from Google Sheets
- Send invoice payment reminders from Google Sheets
- Highlight overdue tasks and send email reminders
- Follow-up reminders for leads, clients and candidates
- Membership renewal reminders for clubs and associations
- Appointment reminder emails for clients
- Probation and performance review reminders for managers
- Inventory expiration dates with email alerts
- Domain and SSL certificate renewal reminders
- Name badges and place cards from a guest list
- Vehicle registration, inspection and insurance reminders
- Event sign-in sheets and table seating lists
- Pet vaccination expiry reminders for owners
- Customer account statements with aging
- Subscription tracker with renewal and free-trial reminders
- Mailing labels: one per household, clean addresses
- Volunteer shifts: open slots, reminders and rosters
- Year-end donor giving statements, one PDF per donor
- Volunteer hours verification letters, one PDF per request
- Instrument calibration due dates with email reminders
- Pay stubs from a payroll sheet, one PDF per employee
- Gift certificates with codes, balances and a redemption log
- Bill due dates: mark paid, 30-day totals and reminders
- Grant deadlines: LOIs, reports, owners and reminders
- Passport expiry: trips, the 6-month rule and renewal reminders
- Class rosters: one PDF per class, A–Z, with seat counts
- Insurance renewals: premium changes and reminders
- Onboarding checklists: tasks from start dates, owner reminders
- Raffle tickets: numbered stubs, seller books, sales tracker
- SheetWeave vs Autocrat
- SheetWeave vs Document Studio
- SheetWeave vs RowDocs
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.