How to add a QR code or barcode to an employee ID badge: what to encode and how to test it
By Percard ID · Updated
Decide what the code is for
- Check-in or attendance: a system that already reads barcodes needs the barcode type it expects and an employee ID number it recognizes.
- Gate or door scanning against a list: staff scan each badge and compare it to an allow list.
- Verification: a QR code that points to your own page or endpoint where someone can confirm the badge is real and current.
- Contact or directory: a QR code that opens a profile or a contact card.
A code with no purpose is just decoration. If nothing will read it, leave it off.
Make every code unique
A QR code that is the same on every card cannot say who is holding the badge. If the scan must identify a person, each card needs its own value. Use an employee ID number or a random token tied to a record in your own system, so you can check, update, or turn off one badge without touching the rest.
What not to encode
Do not put a Social Security number, date of birth, home address, or other private data directly in a QR code or barcode. Anyone with a phone can read a QR code. Encode an ID or a link with a unique token instead, and look up the details on your own system, where you can control who sees them.
Barcode or QR code
A barcode holds a short value, usually an ID number, and is read by common scanners that you may already own. A QR code holds more, such as a web address, and is read by phone cameras. If you have existing scanners, ask for the barcode type they are set to read and match it. If you want a link, use a QR code. For the other features worth considering, see ID badge security features.
Give us the data
When you order, you give us the actual data for each code, the barcode type, or the QR destination for each card. A roster that includes the code value next to each name makes this simple. See how to print ID badges from an Excel or CSV roster for how to prepare names and photos. We do not generate the data for you, so create the values in your own system first.
Layout and testing
Leave clear space around a code and keep it inside the safe area of the card, away from the edge and from any slot punch. Keep strong contrast, such as dark code on a light background, and do not stretch or recolor it. The artboard sizes and safe-area details are in ID card size and print file specs.
Before you order, scan the final codes with the device your staff will actually use. A barcode or QR code that points to the wrong place, or uses the wrong format, is worse than none. Check a sample card on arrival with a real scanner before you approve a large batch.
Cost
A unique barcode is $0.65 per card and a unique QR code is $0.65 per card, added to the base per-card price. The base price runs from $11.99 for 1 to 10 cards to $7.99 for 101 to 250 cards, with full color on both sides included. Every card includes 3 custom information elements. Additional elements are $0.25 each per card. Shipping and applicable tax are extra. See how much employee ID cards cost and our pricing page.
Common mistakes
- Using the same code on every badge.
- Putting private information in the code.
- Not testing with the real scanner or phone.
- Placing the code too close to the edge or the slot punch.
- Using the wrong barcode type for an existing scanner.
Add codes to your badges
Prepare your list with a unique value per person, then order from the home page.
Frequently asked questions
- How much does a QR code or barcode cost on an ID badge?
- A unique barcode is $0.65 per card and a unique QR code is $0.65 per card, added to the base per-card price. Shipping and tax are extra.
- Does every badge need a different code?
- If the scan has to identify a person, yes. A QR code that is the same on every card cannot say who is holding the badge. Use an employee ID number or a random token tied to a record in your own system.
- What should a QR code on an employee badge contain?
- Usually an ID or a link with a unique token that points to your own page or system. Do not put private data such as a Social Security number or home address directly in the code.
- What do you need from me to print the codes?
- The actual data for each code, the barcode type, or the QR destination for each card. We print the values you provide, so create them in your own system first.
- How do I test a QR code or barcode before ordering?
- Scan the final codes with the same scanner or phone your staff will use, and check a sample card with a real scanner when it arrives before you approve a large batch.
- Can a QR code or barcode open doors?
- No. A printed code does not open doors. Door access needs NFC, HID, or magstripe encoding matched to your reader system, which we quote separately.