Writing Linear 1D Barcodes

The following tables contain information to write linear 1D barcodes and the data set they support.

EAN 8 & 13, UPC A & E, GS1 Omnidirectional & Stacked, and GS1 Limited

Character & Data Set EAN 13 EAN 8 UPC A UPC E GS1 Databar (RSS14) Omnidirectional & Stacked GS1 Databar (RSS14) Limited
Numerical digits 0-9 0-9 0-9 0-9 0-9 0-9
Alphanumeric characters N/A N/A N/A N/A N/A N/A
Special characters N/A N/A N/A N/A N/A N/A
Data Length 12 7 11 6 13 13
Min. width (pixels) 113 81 113 67 96 74
Double width (pixels) 226 162 226 134 192 148
Triple width (pixels) 339 243 339 201 288 222
Quad width (pixels) 452 324 452 268 384 296
Quintuple width (pixels) N/A N/A N/A N/A N/A N/A
FNC1 Char Set A N/A N/A N/A N/A N/A N/A
FNC2 Char Set A N/A N/A N/A N/A N/A N/A
FNC3 Char Set A N/A N/A N/A N/A N/A N/A
FNC4 Char Set A N/A N/A N/A N/A N/A N/A
FNC1 Char Set B N/A N/A N/A N/A N/A N/A
FNC2 Char Set B N/A N/A N/A N/A N/A N/A
FNC3 Char Set B N/A N/A N/A N/A N/A N/A
FNC4 Char Set B N/A N/A N/A N/A N/A N/A
FNC1 Char Set C N/A N/A N/A N/A N/A N/A


GS1 Expanded & Stacked, Code 3 of 9, CODABAR, and Code 128

Character & Data Set GS1 Databar (RSS14) Expanded & Expanded Stacked Code 3 of 9 (Code 39)
n = # of alphanumeric characters
CODABAR
n = # of alphanumeric characters
Code 128
n = # of alphanumeric characters
Numerical digits 0-9 0-9 0-9 All ASCII characters
Alphanumeric characters A-Z, a-z, and spacebar A-Z and spacebar N/A
Special characters ! % & ( ) * + , - . / : ; < = > _ ? - . $ % + / - . $ : + /
Data Length N/A 1-63 1-63 N/A
Min. width (pixels) N/A 16n + 51 17(n+2) + 20 11(n+5)
Double width (pixels) N/A 32n + 102 34(n+2) + 40 22(n+5)
Triple width (pixels) N/A 48n + 153 51(n+2) + 60 33(n+5)
Quad width (pixels) N/A 64n + 204 68(n+2) + 80 44(n +5)
Quintuple width (pixels) N/A N/A N/A
FNC1 Char Set A N/A N/A N/A 0x80
FNC2 Char Set A N/A N/A N/A 0x81
FNC3 Char Set A N/A N/A N/A 0x82
FNC4 Char Set A N/A N/A N/A 0x83
FNC1 Char Set B N/A N/A N/A 0x84
FNC2 Char Set B N/A N/A N/A 0x85
FNC3 Char Set B N/A N/A N/A 0x86
FNC4 Char Set B N/A N/A N/A 0x87
FNC1 Char Set C N/A N/A N/A 0x88


Code Interleaved, EAN EXT 2 and 5, Code Standard 2 0f 5, MSI, and Code 11

Character & Data Set Code Interleaved
2 of 5
Q = Quiet Zone
36 elements
n = # of numeric digits
(must be even)
EAN EXT 5 EAN EXT 2 Code Standard
2 of 5 (Industrial 2 of 5)
Q = Quiet Zone
36 elements
n = # of numeric digits
(must be even)
MSI
Q = Quiet Zone
16 elements
n = # of numeric digits
(must be even)
Code 11
Numerical digits 0-9 0-9 0-9 0-9 0-9 0-9
Alphanumeric characters N/A N/A N/A N/A N/A N/A
Special characters N/A N/A N/A N/A N/A -
Data Length 1-63 5 2 1-63 1-63 1-63
Min. width (pixels) n9+ 9+ Q 65 38 19(n+1) + Q 16(n+1)+9+Q N/A
Double width (pixels) 2(n9+ 9+ Q) 130 76 2(19(n+1) + Q) 2(16(n+1) + 9 + Q) N/A
Triple width (pixels) 3(n9+ 9+ Q) 195 114 3(19(n+1) + Q) 3(16(+1)n + 9 + Q) N/A
Quad width (pixels) 4(n9+ 9+ Q) 260 152 4(19(n+1) + Q) 4(16(n+1) + 9 + Q) N/A
Quintuple width (pixels) N/A N/A N/A N/A N/A N/A
FNC1 Char Set A N/A N/A N/A N/A N/A N/A
FNC2 Char Set A N/A N/A N/A N/A N/A N/A
FNC3 Char Set A N/A N/A N/A N/A N/A N/A
FNC4 Char Set A N/A N/A N/A N/A N/A N/A
FNC1 Char Set B N/A N/A N/A N/A N/A N/A
FNC2 Char Set B N/A N/A N/A N/A N/A N/A
FNC3 Char Set B N/A N/A N/A N/A N/A N/A
FNC4 Char Set B N/A N/A N/A N/A N/A N/A
FNC1 Char Set C N/A N/A N/A N/A N/A N/A


POSTNET, UCCEAN128, and Code93

Character & Data Set POSTNET UCCEAN128 Code93
Numerical digits 0-9 0-9 0-9
Alphanumeric characters N/A N/A All ASCII characters
Special characters N/A N/A All ASCII characters
Data Length N/A N/A N/A
Min. width (pixels) (n+3)*10 (n+4)*11 (n1+2*n2+4)*9+21
Double width (pixels) (n+3)*20 (n+4)*22 (n1+2*n2+4)*18+42
n1= # of characters from the general character set
n2 = # of characters from the extended character set
Triple width (pixels) (n+3)*30 (n+4)*33 (n1+2*n2+4)*27+63
Quad width (pixels) (n+3)*40 (n+4)*44 (n1+2*n2+4)*36+84
Quintuple width (pixels) N/A N/A N/A
FNC1 Char Set A N/A N/A N/A
FNC2 Char Set A N/A N/A N/A
FNC3 Char Set A N/A N/A N/A
FNC4 Char Set A N/A N/A N/A
FNC1 Char Set B N/A N/A N/A
FNC2 Char Set B N/A N/A N/A
FNC3 Char Set B N/A N/A N/A
FNC4 Char Set B N/A N/A N/A
FNC1 Char Set C N/A N/A N/A
Help Version 23.0.2024.8.27
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.