Bulk Intelligent Mail barcode generator
A mailing is where Intelligent Mail barcodes come in quantity. Every address on the list needs its own barcode, with the same Barcode ID, Service Type ID and Mailer ID and a different serial and ZIP. Most mailers get them from presort software along with the cleaned address file. A batch here covers what that software doesn't: a short run of letters printed in-house, or reply envelopes ordered from a printer.
One value per line. A single line of comma- or semicolon-separated values works too. A header row (like “Value”) counts as a value and will be rejected — leave it out.
Nothing recognized yet.
Enter a value — the code appears here.
Generate the codes first — the number of sheets appears here.
Specification
- Character set
- digits
- Length
- 20, 25, 29 or 31 digits
- Check digit
- an 11-bit CRC over the whole number, added by the encoder
What is Intelligent Mail?
Need the specification and use cases first? What is Intelligent Mail?
Where this code earns its place in a batch
- Small in-house mailings of up to 100 pieces per run, where setting up presort software for one letter campaign isn't worth the effort
- Reply envelopes for a printer: one barcode for the whole order, or a short list of variants for different reply addresses
Preparing the list
- Build each line from four spreadsheet columns, Barcode ID, Service Type ID, Mailer ID and serial, then append the ZIP; format the ZIP column as text before the data arrives so the leading zeros survive
- Take serial numbers from a counter of your own that never restarts, so that a second campaign within 45 days can't repeat the first one's numbers
What goes wrong in a batch
- Re-sorting the list between generating the barcodes and matching them to addresses. Each barcode carries one address's ZIP; a list sorted again in between puts the right bars on the wrong envelope, and nothing about the bars looks wrong.
Frequently asked questions
- Can I mix 5-digit and 9-digit ZIPs in one list?
- Yes. Each line is checked on its own: 25 and 29 digits are both valid lengths, and a line that matches none of the four is listed with its length.
- Does the batch check that my serial numbers are unique?
- No. It draws what each line says and doesn't compare lines with each other or with earlier mailings. Uniqueness over 45 days has to come from your counter.
Where the Mailer ID comes from
The Mailer ID inside the tracking code is issued by USPS through the Business Customer Gateway. A barcode with someone else’s Mailer ID prints and scans, but the mail does not qualify for automation prices and its scans go to the owner of that ID.