Generating Bulk ID Cards and Badges
Creating ID cards one at a time is slow and error-prone when you need badges for an entire company, a student body, or a conference with hundreds of attendees. With Mergram, you design a single card template, connect it to a spreadsheet of people, and generate every personalized ID card — complete with photos, names, titles, and QR codes — in one batch.
Common use cases include:
- Employee badges — Name, photo, department, title, and employee ID for office security
- Student ID cards — Name, photo, student number, grade level, and academic year
- Event credentials — Attendee name, photo, access level, and QR code for check-in
- Conference badges — Speaker or attendee name, company, role, and scannable QR code
- Membership cards — Member name, photo, membership number, and expiration date
- Visitor badges — Visitor name, host name, date, and access level
Prerequisites
To bulk-generate ID cards, you need:
- A card design exported as PDF — with blank areas for variable data
- A spreadsheet with one row per person (names, IDs, departments, photo filenames)
- Photo files (PNG or JPEG) for each person — uploaded to a Media Album
- A Mergram account
Design your ID card first
Create your card layout in any design tool — Canva, Adobe Illustrator, Figma, or PowerPoint. Include all static elements (company logo, background, decorative borders, label text like “EMPLOYEE ID”) and leave blank areas where Mergram will place variable fields (photo, name, ID number, QR code). Export the final design as a PDF.
Preparing Your Employee Data
Create a spreadsheet with one row per person. Include all the variable fields you need on the card:
| EmployeeName | EmployeeID | Title | Department | PhotoFile | QRData | IssueDate | ExpiryDate |
|---|---|---|---|---|---|---|---|
| Alice Chen | EMP-2025-001 | Software Engineer | Engineering | alice-chen | https://hr.example.com/EMP-2025-001 | Jan 15, 2025 | Jan 14, 2026 |
| Bob Martinez | EMP-2025-002 | Product Designer | Design | bob-martinez | https://hr.example.com/EMP-2025-002 | Jan 15, 2025 | Jan 14, 2026 |
| Carol Johnson | EMP-2025-003 | Marketing Lead | Marketing | carol-johnson | https://hr.example.com/EMP-2025-003 | Jan 15, 2025 | Jan 14, 2026 |
| David Kim | EMP-2025-004 | Data Analyst | Analytics | david-kim | https://hr.example.com/EMP-2025-004 | Jan 15, 2025 | Jan 14, 2026 |
| Eva Rossi | EMP-2025-005 | HR Coordinator | People Ops | eva-rossi | https://hr.example.com/EMP-2025-005 | Jan 15, 2025 | Jan 14, 2026 |
Use consistent ID formats
Choose a consistent format for employee or student IDs (e.g., EMP-YYYY-NNN or STU-NNNNN). This makes them easy to sort, search, and reference. Include the ID format in your card design as a static label or as part of the merge field.
Recommended Spreadsheet Columns
| Column | Purpose | Example Value |
|---|---|---|
EmployeeName | Full name displayed on the card | Alice Chen |
EmployeeID | Unique identifier for the badge | EMP-2025-001 |
Title | Job title or role | Software Engineer |
Department | Department or team name | Engineering |
PhotoFile | Filename of the person’s photo (matches Media Album) | alice-chen |
QRData | URL or text encoded in the QR code | https://hr.example.com/EMP-2025-001 |
IssueDate | Date the card was issued | Jan 15, 2025 |
ExpiryDate | Date the card expires | Jan 14, 2026 |
AccessLevel | Security clearance or access tier | Level 3 |
BarcodeData | Data for a barcode field (alternative to QR) | 4006381333931 |
Uploading Photos to Media Albums
Photos are the most important visual element on an ID card. Mergram’s Media Albums organize your images and link them to spreadsheet data.
Step 1: Create a Media Album
- Go to Assets → Media Albums
- Click Create Album and name it descriptively (e.g., “Employee ID Photos 2025”)
- The album is team-scoped — everyone on your team can access it
Step 2: Upload Photos
Upload all photos at once (PNG or JPEG, up to 10MB each). For best results:
- Crop to headshot format — Square or 3:4 portrait ratio works best for ID cards
- Use consistent backgrounds — Solid white, light gray, or blue backgrounds look professional
- Resize before uploading — A 300 × 400 pixel image is plenty for a card-sized photo. Larger files waste storage and slow down processing
PNG and JPEG only
Mergram supports PNG and JPEG image formats. If your photos are in HEIC, WebP, TIFF, or BMP, convert them to JPEG or PNG before uploading. PNG is preferred for photos with transparent backgrounds.
Step 3: Name Photos to Match Your Spreadsheet
Your photo filenames must match the values in the PhotoFile column of your spreadsheet:
Spreadsheet PhotoFile Value | Uploaded Filename | Match? |
|---|---|---|
alice-chen | alice-chen.jpg | ✅ Yes (stem fallback) |
alice-chen | alice-chen.png | ✅ Yes (stem fallback) |
alice-chen | Alice-Chen.JPG | ✅ Yes (case-insensitive) |
alice-chen | alice_chen.jpg | ❌ No (underscore vs hyphen) |
alice-chen | alice-chen-photo.jpg | ❌ No (different name) |
Use employee IDs for filenames
The most reliable naming convention is to use employee IDs as filenames — EMP-2025-001.jpg matching EMP-2025-001 in the spreadsheet. Employee IDs are unique and never contain special characters that might cause matching issues.
Designing the ID Card Template
Card Sizes
Choose the right card size for your use case:
| Card Type | Dimensions (inches) | Dimensions (mm) | Use Case |
|---|---|---|---|
| CR80 (standard) | 3.375 × 2.125 | 85.6 × 53.98 | Employee badges, student IDs, membership cards |
| CR79 | 3.303 × 2.051 | 83.9 × 52.1 | Slightly smaller, fits tighter badge holders |
| Event badge (small) | 4 × 3 | 101.6 × 76.2 | Conference badges with more room for info |
| Event badge (large) | 4 × 3.75 | 101.6 × 95.25 | Full event credentials with schedule or QR code |
| Hanging badge | 3.5 × 5.25 | 88.9 × 133.35 | Visible hanging badges for events and trade shows |
Match your template size to your printer stock
If you plan to print on PVC cards, match the CR80 size exactly. For paper-based badges, you have more flexibility. Always design at the exact dimensions of your intended output — scaling a template after generation can distort photos and barcodes.
Template Layout Sections
A well-designed ID card includes these areas:
| Section | Content | Field Type |
|---|---|---|
| Company logo / header | Organization logo or name | Static (part of PDF design) |
| Photo area | Person’s headshot | Variable (image field) |
| Name | Full name of the person | Variable (text field, large font) |
| Title / role | Job title, grade level, or role | Variable (text field, medium font) |
| Department | Department or team | Variable (text field, small font) |
| ID number | Employee or student ID | Variable (text field, monospace or bold) |
| QR code | Verification URL or employee link | Variable (QR code field) |
| Issue / expiry dates | Card validity period | Variable (text field, small font) |
| Barcode | Alternative machine-readable code | Variable (barcode field) |
Placing Fields on the Canvas
Upload your PDF template to the Mergram editor, then drag spreadsheet columns onto the canvas.
Text Fields
Drag each text column to the corresponding position on the card:
- EmployeeName — Prominent position, large font (16–24pt depending on card size)
- Title — Below the name, medium font (10–14pt)
- Department — Below the title, small font (8–12pt)
- EmployeeID — Bottom area or corner, bold or monospace font (10–12pt)
- IssueDate and ExpiryDate — Small font at the bottom (7–10pt)
Adding Dynamic Photos
To place the person’s photo on each card:
- Drag the PhotoFile column onto the canvas
- Set the render type to “Image” in the field properties toolbar
- Resize the bounding box to fit the photo area on your template — images scale to cover the bounding box width while maintaining aspect ratio
- Go to the Media tab in the editor sidebar and link your Media Album
- Preview to verify the photo renders correctly
Preview with real data
Always preview your ID card with real data before running the full merge. Check that photos fit the bounding box, names don’t overflow, and the QR code is large enough to scan. A single preview catches most layout issues.
Adding QR Codes
QR codes turn an ID card into a scannable credential. Common uses include:
| QR Code Content | Purpose | Example Value |
|---|---|---|
| Verification URL | Confirm card authenticity | https://verify.company.com/EMP-2025-001 |
| Employee portal link | Quick access to internal profile | https://hr.company.com/employee/EMP-2025-001 |
| vCard data | Add contact to phone | BEGIN:VCARD\nN:Chen;Alice\nEND:VCARD |
| Plain ID string | Simple lookup code | EMP-2025-001 |
| Event check-in URL | Scan to mark attendance | https://event.com/checkin/TKT-48291 |
Placing a QR Code Field
- Add a column to your spreadsheet with the QR code content (URLs, IDs, or text)
- Drag the column onto the canvas
- Set the render type to “QR Code” in the field properties toolbar
- Resize the bounding box — QR codes scale to cover the bounding box width while maintaining their square aspect ratio
- Position the field where you want it on the card (typically a bottom or back corner)
QR code minimum size
A QR code needs to be large enough to scan reliably. For standard CR80 cards, aim for at least 0.75 × 0.75 inches (19 × 19 mm). Larger QR codes scan faster and from greater distances. Always test by scanning a preview with your phone camera.
Adding Barcodes
If you prefer a linear barcode (e.g., for turnstile scanners or legacy systems), use the barcode field type:
- Add a
BarcodeDatacolumn with numeric or alphanumeric codes - Drag it onto the canvas and set render type to “Barcode”
- Adjust the bounding box width to control the barcode’s horizontal span
- Barcode height is controlled by the barcode height setting, not the bounding box height
Custom Fonts and Branding
Professional ID cards use consistent typography to reinforce your brand. Mergram supports custom font uploads for any text field.
Applying Custom Fonts
- Go to Assets → Fonts and upload your font files (
.ttf,.otf, or.woff2) - Select a text field on the canvas (e.g., EmployeeName)
- In the field properties toolbar, change the font to your uploaded font
- Repeat for other fields — use different weights for hierarchy (bold for names, regular for titles)
Use font weights for hierarchy
Pair a bold or semi-bold weight for the employee name with a regular or light weight for the title and department. This creates visual hierarchy without needing different font families. If your brand uses a specific typeface, upload the full family (regular, bold, italic) for maximum flexibility.
Common Font Choices for ID Cards
| Font Style | Best For | Example |
|---|---|---|
| Sans-serif (clean) | Modern corporate badges | Inter, Helvetica, Roboto |
| Sans-serif (bold) | Names that need to stand out | Montserrat Bold, Open Sans Bold |
| Monospace | ID numbers, codes | JetBrains Mono, Fira Code |
| Condensed | Space-constrained cards | Roboto Condensed, Open Sans Condensed |
Printing Tips
After generating your ID cards, choose the right printing method for your needs:
| Printing Method | Best For | Cost | Quality |
|---|---|---|---|
| PVC card printer | Professional employee badges | High (dedicated printer) | Excellent — durable plastic cards |
| Laser printer + card stock | Student IDs, event badges | Low–medium | Good — heavy paper or synthetic stock |
| Inkjet + perforated paper | Temporary badges, visitor passes | Low | Fair — disposable or short-term use |
| Professional print service | Large batches, premium finish | Medium–high | Excellent — offset or digital press |
Printing Recommendations
- Use the Combined PDF output mode for batch printing — all cards in one multi-page file, sent to the printer in a single job
- Use Individual PDFs if you need to email each card to the respective employee
- Add cut marks in your template design if printing multiple cards per sheet on perforated paper
- Test on plain paper first — print one page on regular paper to verify alignment before using expensive card stock
- Choose the right badge holder — vertical for CR80 portrait, horizontal for landscape event badges
Multiple cards per sheet
If your printer uses standard letter or A4 paper, you can place multiple ID card designs on a single page in your design tool. For example, fit 8 CR80 cards (2 columns × 4 rows) on a single letter-sized sheet with cut marks between them. Each card area becomes its own merge region.
Best Practices for ID Card Generation
-
Standardize your photo format — Crop all photos to the same aspect ratio and background color before uploading. Inconsistent photos make cards look unprofessional.
-
Test with the longest name — Find the longest name in your spreadsheet and preview it on the card. If it overflows the text field, reduce the font size or widen the field.
-
Include a verification method — QR codes linking to a verification page add security. Anyone can scan the code to confirm the badge is legitimate and still valid.
-
Add an expiry date — ID cards with expiration dates are more secure and easier to manage. Set a standard validity period (1 year for employees, semester-end for students, event duration for conferences).
-
Use high-contrast text — Ensure text color contrasts sharply with the card background. Dark text on a light card or white text on a dark card. Avoid placing text over busy patterns or photos.
-
Keep a master spreadsheet — Maintain a single source of truth for all badge data. When someone joins, leaves, or changes role, update the spreadsheet and regenerate the batch.
Common Issues and Troubleshooting
Photos not appearing on cards: Verify your Media Album is linked to the template in the editor’s Media tab. Check that the PhotoFile column values match the uploaded filenames — stem matching is case-insensitive, but the base name must match exactly (no extra spaces or different punctuation).
Names overflow the field: Reduce the font size for the name field, or increase the field width. For very long names, consider using a smaller font weight or splitting into FirstName and LastName fields on separate lines.
QR codes won’t scan: Increase the QR code bounding box size — aim for at least 0.75 inches on a CR80 card. Also check that the QR data column contains valid, well-formed URLs or text strings.
Cards print at the wrong size: Ensure your PDF template dimensions match your intended card size exactly (in points or inches). Do not scale the PDF after generation — design at the correct size from the start.
Fonts not rendering correctly: Verify you’ve uploaded the correct font file and applied it to the specific field. If characters are missing (e.g., accented letters), the font may not cover the required Unicode range — switch to a broader-coverage font like Inter.
Get Started
Design your ID card template, prepare your employee or student spreadsheet, and upload both to the Mergram editor. Place your text, photo, and QR code fields, preview with real data, and generate your entire batch of ID cards in minutes.