ID Badge Maker
Operator: Abdulla Al Fahad. How tools are built and checked
A CR80 badge is 85.6 x 53.98 mm, so an A4 sheet holds 10 of them landscape, in 2 columns and 5 rows with 19.4 mm at the sides and 13.6 mm top and bottom left over for crop marks. Portrait badges fit 9 to a sheet (3 x 3). A US Letter sheet holds the same 10 landscape badges with 22.4 mm at the sides and only 4.8 mm top and bottom, just enough for the marks.
Each row of a CSV becomes a badge with a photo, name, title and department, and a QR code or Code 128 barcode of the ID.
Key features
- Reads CSV, TSV or XLSX lists of up to 500 people, guessing the name, title, ID, department and photo columns, or combining first and last name
- Matches photos to people by the photo column, or by ID or name, and lists who has none
- A QR code or Code 128 barcode of the ID, with a warning when the modules or bars would be too fine to print
- Landscape or portrait, a band colour and organisation name, and a grey initials box where a photo is missing
- 10 per sheet with crop marks on A4 or Letter, or one badge per card-sized page
Columns, photo matching and the CR80 layout
The list is a CSV, TSV or XLSX file up to 25 MB with a header row; the name column is required and rows without a name are skipped. The ID defaults to the row number when no ID column is chosen. Photos are PNG, JPG, WEBP, GIF or BMP, up to 600 files; each is cropped to a 3:4 portrait from the centre at 360 x 480 px and embedded as a JPEG at quality 0.85, which is about 380 dpi in the landscape photo box and 350 dpi in the portrait one. Text uses the PDF's standard Helvetica fonts, which draw Western European letters; other characters are replaced and reported.
How it works
Matching: if a person has a value in the photo column, it is compared with the photo file names, with and without the extension, ignoring case and folders. Without a photo column the ID, then the name with punctuation turned into dashes (Ada Lovelace becomes ada-lovelace), is compared with each file's name without its extension. If two photos share a name with different extensions the first wins, and a note mentions it.
Layout: one function turns a person into drawing operations in points from the badge's top-left corner, and the preview and the PDF both draw those same operations. The text fitter tries the largest font size first and steps down by half a point until the text fits its box in the allowed lines, then cuts with '...'. It never lets a line run into the code area; a line that cannot fit is left out and reported.
Typical uses
- A 38-person office on A4 landscape: 38 badges at 10 per sheet is 4 sheets, with photos named by employee ID.
- A conference with 220 attendees and no photos: a Code 128 barcode of the ticket number (up to 12 letters and digits fit a landscape badge at the 0.25 mm minimum), grey initials boxes, and 22 sheets.
- A school with 120 students, portrait badges and a QR code of the student number: 9 per sheet is 14 sheets.
Building one
- Add the people list and check the column choices.
- Add the photos, named as the photo column says or like the IDs (EMP-1041.jpg).
- Enter the organisation name and pick a band colour, an orientation and a code type.
- Check the preview of the first four badges and any warnings.
- Choose a sheet with crop marks or one badge per page, and download the PDF.
Example
Code 128 barcode of an ID on a landscape badge, 48 mm wide including quiet zones
EMP-0001 (8 characters)
ABCDEFGHIJKL (12)
ABCDEFGHIJKLM (13)Module width
112 + 20 quiet = 132 modules: 0.36 mm
187 modules: 0.26 mm
198 modules: 0.24 mm, under the 0.25 mm minimum (warning)Tips for best results
- Keep IDs short. A Code 128 barcode of 8 characters such as EMP-0001 has 0.36 mm bars on a landscape badge; 12 letters and digits drops to 0.26 mm, and 13 falls under the 0.25 mm that a 203 dpi printer can reproduce.
- Choose QR for phone scanning and Code 128 for handheld scanners at a door. A QR code of a 30-character ID is 29 modules wide and still prints at 0.33 mm modules in the 10.8 mm landscape box.
- Name photo files with the ID, so a folder of EMP-1041.jpg, EMP-1042.jpg matches without a photo column and a reprint after a new hire changes one file.
Things to check before you rely on it
Print at 100 percent scale. Fit to page shrinks an 85.6 mm card, and the crop marks no longer sit on its edges.
Badges sit flush against each other, so one cut separates two neighbours; cut along the crop marks and expect up to half a millimetre of error with scissors.
Common errors and how to fix them
- No photo found for 3 people: Ada Lovelace, Grace Hopper and 1 more
- Compare their photo column, ID or name with the file names; a cell of 'ada' matches ada.jpg, and IDs match files named EMP-0001.jpg. Those badges get a grey box with initials meanwhile.
- The QR code for "..." has 0.29 mm modules, below the 0.3 mm phones read reliably
- Use a shorter ID. In landscape a 10.8 mm QR box holds up to 42 characters at version 3; version 4 needs 33 modules and falls under 0.3 mm. The code is drawn with a 2-module white border, narrower than the 4 modules the QR standard asks for, but the badge around it is white too, so the clear space in practice is far wider. The warning appears on the page as soon as you pick the code type.
- "..." cannot be a Code 128 barcode
- Code 128 here holds printable ASCII (letters, digits and punctuation). IDs with accents or other scripts need the QR code instead.
Best practices
- Put the person with the longest name and title in the first four rows, because the preview shows only those, and the warnings name every badge whose text had to be shrunk or cut.
What fits on a badge
The name takes up to 2 lines at 15 pt in landscape or 14 pt in portrait, shrinking toward 8 pt. The title takes up to 2 lines from 9.5 pt down to 6.5 pt, and the department one line from 8.5 pt to 6 pt. Text starts under the photo in portrait and beside it in landscape, and stops 1.5 mm above the code.
If a long title leaves no room for the department, the department is left out and the page lists it, which is a sign to shorten the title or use landscape.
Sheet arithmetic
The sheet itself is always upright. Whole badges are packed edge to edge, centred, with at least 4 mm of margin on every side.
- Landscape badges on A4: 2 x 5 = 10, margins 19.4 mm at the sides and 13.6 mm top and bottom
- Landscape badges on US Letter: 2 x 5 = 10, margins 22.4 mm and 4.8 mm
- Portrait badges on either paper: 3 x 3 = 9
Frequently asked questions
How is this different from the Business Card Maker?
That page builds one card design, with a contact QR code, and repeats it. This one makes a different badge for every row of a list and matches each person's photo by file name; the QR code holds the ID, not contact details.
Can I print on a card printer?
Choose one badge per page. Each page is exactly 85.6 x 54 mm in landscape (54 x 85.6 portrait), so the PDF can go to a card printer driver that accepts CR80 pages; check your printer's printable area, as many leave a thin unprintable edge.