Barcode FAQ & Tutorial
- What is a Barcode Video
- Barcode History
- Barcode Educational Guide PDF
- Barcode Types, Symbologies, and Standards
- Choosing the Best Barcode Symbology
- Choosing the Best Barcode Type
- Reading Barcodes
- Barcode Area Efficiency
- Barcode Accuracy and Misreads
- How to Identify a Specific Barcode Symbology
- Video Training Tutorials
- Conversion Table and Specifications for MILS, CM, and Inches
- Barcode FAQ
History of Barcodes
The industrial use of barcodes can be traced back as far as the 1960s, in some cases as a means to identify railroad cars. Common linear barcodes started appearing on grocery shelves in the early 1970s with the UPC barcode to automate the process of identifying grocery items. Today, barcodes are just about everywhere and are used for identification in almost all fields of business. When barcode technology is utilized in business processes, procedures are automated to increase productivity and reduce human error. Barcoding should be used whenever there is a need to accurately identify or track something physical.
Barcode Types, Symbologies & Standards
The type of barcode that should be used may depend on several variables, including the following:
- Standards and mandates
- Purpose and use
- Data encoded
- Printing and/or decoding methods
There are several different types of barcode standards for different purposes – these are called symbologies. Each type of symbology (or barcode type) is a standard that defines the printed symbol and how a device, such as a barcode scanner, reads and decodes the printed symbol.
If an industry standard has already been established for the intended implementation, the standard should be implemented. If a standard does not exist for the chosen implementation, several symbologies are available to choose from.
Industry standards are usually established when multiple parties or companies are involved in the ID process. The standard is not necessarily the same as the barcode symbology. Barcode standards define how to use the barcode symbology in a particular situation. For example, the two standards to create ISBN barcodes for books and generate ISSN barcodes for periodicals both use EAN-13 to encode data into the barcode, but have different methods depending on the specific ISBN & ISSN standards.
One of the most common barcode types for point of sale (POS) in the USA is the UPC. UPC is a very old barcode type from the 1970s that encodes GTIN-12. DataBar is a smaller and more capable barcode type that may be used instead of UPC. IDAutomation recommends using DataBar instead of UPC when possible.
IDAutomation also offers a list of several popular barcode types and how to identify them.
Choosing the Best Barcode Type
When using Barcode Components or Applications for printing a certain number of characters, the following is suggested:
- When encoding uppercase and/or lowercase letters, numbers, punctuation, any letter or symbol appearing on the standard U.S. keyboard and lower ASCII functions such as returns and tabs, up to about 40 digits, use Code128. All of IDAutomation’s barcode components and applications support Code 128 as the default barcode type.
- When encoding several lines of data of any type over 40 characters, it is suggested to use the PDF417, QR Code, or Data Matrix barcodes.
When using Barcode Fonts, the following is suggested:
- When encoding only numbers, up to about 30 digits, choose Codabar Barcode Fonts. Codabar is the densest, self-checking (easy-to-use) symbology.
- When encoding uppercase letters, numbers, and these symbols (- . $ / + %), up to about 20 digits, choose Code 39 Barcode Fonts. Code 39 is also a dense self-checking (easy-to-use) alphanumeric symbology.
- When it is necessary to encode uppercase and lowercase letters, numbers, punctuation, and ASCII functions such as returns and tabs, up to about 40 digits, use Code 128 Barcode Fonts or the Universal Barcode Fonts.
- When encoding any data of any type over 40 characters, use the PDF417, QR Code, or Data Matrix barcodes.
When barcodes are scanned from the screen of a mobile device or sent via fax, the following is suggested:
- After evaluating several popular barcode types, Data Matrix is the most dependable for the smallest amount of space. Compared to Code 39 encoding the same data, Data Matrix is approximately 30 times smaller in symbol size. This comparison may be seen visually in the Barcode Symbology Evaluation and Test Sheet.
- QR Code is also a very popular symbol. The QR stands for “Quick Response”, which was important when it was designed in the 1990s. However, today decoding processors are much faster, and all barcode types decode at about the same speed, which seems instantaneous.
- If a Data Matrix or QR Code barcode cannot be implemented, it is suggested to print the chosen barcode at the largest X Dimension (or size) possible, which will usually allow the symbol to be read by a scanner.
- When printing to thermal 203 DPI printers, special care must be taken to create accurate barcodes. Several knowledge base articles exist for the proper use of thermal printers:
When Barcode Applications are used, the following is suggested:
- To create barcode images individually, save the images to a file, or easily paste barcodes into other Windows applications, consider IDAutomation’s Barcode Image Generator. This application is commonly used to create barcode image files for Photoshop, Paint Shop Pro, Quark, CorelDraw, Word, and other word processors and graphic applications, where a single image can be printed several times without change.
- To print barcode labels dynamically from a database or list with a label design application compatible with Windows, consider IDAutomation’s Barcode Label Software.
When encoding photos, arrays, binary data, Unicode, international or double-byte characters, the following is suggested:
A two-dimensional symbology (2D barcode) such as Data Matrix and QR Code should be used to encode this type of data. 2D barcodes encode this type of data when the encoding mode is set to BASE256 or BINARY, which encodes all data, byte-by-byte, and supports UTF-8. When scanning the data, the barcode scanner must be able to read all 256 bits of each byte. Most USB and keyboard wedge barcode scanners do not support extended characters above ASCII 128, so they cannot dependably decode binary data. The scanner manual or vendor may need to be consulted for this type of implementation. Alternatively, the data may be converted to Base64 when encoded in the barcode and then back again when read. However, this requires additional programming and will create a symbol that is larger than it would be with BASE256 or BINARY encoding. Base 64 encoding is used for invoicing in some Arabic countries for this purpose.
Reading Barcodes
One of the most common tools for reading barcodes is the hand-held barcode scanner. The barcode scanners recommended and sold by IDAutomation all have built-in decoders that can read several different barcode symbologies. Most USB barcode scanners receive their power from the PC keyboard or USB port, so no external power supply is required. When a barcode is scanned, the data is sent to the PC as if typed on the keyboard. To learn more about scanning barcodes, review how to scan barcode data into applications.
Most barcode scanners can read common linear symbologies such as Code 39, UPC, EAN, Code 128, and Codabar by default. Some scanner manufacturers ship new barcode scanners with most symbologies disabled; therefore, if a particular barcode cannot be read, make sure it is enabled in the scanner’s firmware. Not all scanners read barcodes that are printed at small X dimensions (the X dimension is the width of the narrow bar in the code,) so it is advisable to check the barcode scanner manual to make sure the scanner can read the small X dimensions.
The low-priced IDAutomation Plug ‘n Play USB Barcode Scanner performs similarly to a laser scanner and reads very small barcodes. Barcodes of 4 to 32 mils in size and up to 4.2″ in width are easily read from a distance of 4 to 8 inches with this scanner.
Barcode Area Efficiency
Many situations may exist where the space a barcode occupies becomes a concern. The barcodes below all encode the same data of “BARCODE12345678” with the same narrow bar width or X dimension of .03CM or 12 mils. When creating small barcodes, the scanner must also be able to read them dependably. For example, the IDAutomation Plug ‘n Play USB Barcode Scanner reads both Code 128 and Code 39 at 6 points and above. The barcodes below may be printed from IDAutomation’s Symbology Test Sheet for testing purposes.
| Linear and 2D Barcode Symbology Evaluation Chart | |
| Code 39 without check digit: | Code 128 Auto: |
| Aztec: | Data Matrix ECC200 with ASCII encoding mode: |
| PDF417 in Text encoding mode: | QR-Code with Error Correction L |
As seen in the examples above, the Data Matrix barcode is the most compact of the symbologies evaluated. However, it requires a 2D Barcode Imager or Image Reader to read the symbol. Several Imagers can easily read small symbols, such as IDAutomation’s 2D USB Barcode Scanner, which can read Data Matrix barcodes printed with the Data Matrix Font as small as 2.5 points, which is an X dimension of about .02CM or 8 mils. Data Matrix is also one of the most accurate barcode symbologies.
Barcode Accuracy & Misreads
The accuracy and amount of misreads of several different barcode symbologies were evaluated in a study at the Ohio University Center for Automatic Identification. Studies indicate that a well-trained data entry operator will usually make a data entry error once every 300 keystrokes. Therefore, implementing even the least accurate barcode symbology is a huge step forward in increasing production and reducing data entry errors.
| Barcode Type | Worst Case Accuracy | Best Case Accuracy |
| DataMatrix | 1 error in 10.5 million | 1 error in 612.9 million |
| PDF417 | 1 error in 10.5 million | 1 error in 612.4 million |
| Code 128 | 1 error in 2.8 million | 1 error in 37 million |
| Code 39 | 1 error in 1.7 million | 1 error in 4.5 million |
| UPC | 1 error in 394 thousand | 1 error in 800 thousand |
Conversion Table & Specifications
Specifications are provided by many types of barcode implementations. In some cases, the specifications of the barcode sizing parameters are given in inches but need to be calculated in centimeters (CM) in the barcode tool. To convert inches to CM, multiply the value in inches by 2.54. To convert mils to CM, multiply the MILS (1 mil equals .001 inches) value by .00254.
Below is a chart that contains many common barcode dimensions:
| Inches | MILs | CM |
| .004 | 4 | .01 |
| .006 | 6 | .015 |
| .008 | 8 | .02 |
| .010 | 10 | .0254 |
| .012 | 12 | .03 |
| .014 | 14 | .035 |
| .016 | 16 | .04 |
| .02 | 20 | .05 |
| .04 | 40 | .1 |
| .4 | 400 | 1 |
| .5 | 500 | 1.27 |
| .75 | 750 | 1.9 |
| 1.00 | 1000 | 2.54 |
| 1.25 | 1250 | 3.175 |
Frequently Asked Questions (FAQ)
What is a barcode and how does it work?
A barcode is a machine-readable representation of data in a visual pattern. Most commonly, barcodes encode numbers or alphanumeric characters in a series of parallel lines (1D) or 2D matrix patterns. A barcode scanner or imager reads the pattern and translates it into the original data such as a product ID or serial number. Barcodes work by encoding data into bars and spaces (for 1D) or modules (for 2D) with varying widths or arrangements. Scanners interpret contrast (dark = bar, light = space) and decode it using the symbology’s algorithm.
What are barcode symbologies / types, and how do I choose one?
Symbology refers to the “language” or standard used to encode data into a barcode. Common types include UPC / EAN for retail point-of-sale systems, Code 39 and Code 128 for alphanumeric encoding, GS1-128 and GS1 DataBar for supply chain standards, and QR Code, Data Matrix, or PDF417 for high-capacity 2D barcodes. When choosing, consider data type, available space, scanner type, required standards such as GS1, and print quality. For most new projects, Code 128 or QR Code is a reliable choice.
What is the “X dimension” / narrow bar width, and why does it matter?
The X-dimension is the width of the narrowest bar or module in a barcode. It determines the overall barcode size and readability. Too small can cause unreadable codes; too large wastes space. Many standards define minimum X dimensions depending on printing and scanning methods.
Can I scan barcodes from a screen or print?
Yes. 2D barcodes like QR Code and Data Matrix scan reliably from screens and printed materials because they tolerate reflections and low contrast. 1D barcodes are less reliable on screens. Always test scanning in your real-world environment.
What common barcode scanning problems occur, and how can I prevent them?
Common problems include unreadable codes due to low contrast or poor print quality, wrong data from dirt or glare, unsupported symbologies because of scanner settings, and distortion from curved surfaces. Improve results by increasing contrast, cleaning labels, ensuring proper quiet zones, enabling the right symbologies in scanners, and using flat areas or 2D barcodes when possible.
What about encoding Unicode or binary data?
To encode Unicode or binary data, use a 2D barcode like QR Code, Data Matrix, or PDF417. These support byte-level encoding and international characters. Ensure your generator supports ECI or BASE256 modes for proper decoding.
What are barcode standards like GS1 or UDI?
Barcode standards define how data should be formatted for consistent interpretation. Examples include GS1 for global supply chains, ISBN / Bookland for publishing, and UDI for medical devices. Learn more at GS1.org and BarcodeFAQ.com.
How accurate are barcodes in real-world use?
When printed correctly, barcodes are extremely accurate—error rates are typically less than 1 in 1 million. Most scanning issues result from poor printing, low contrast, or physical damage to labels.
Should I use barcode fonts or image generation?
Both barcode fonts and image generation methods are valid. Barcode fonts are ideal for Word, Excel, and BI Publisher reports, while image generation is preferred for automated systems or complex encoding. See IDAutomation Barcode Fonts for easy font-based solutions.
Where should I place a barcode on my label or product?
Place barcodes on flat, smooth surfaces with adequate quiet zones around them. Avoid edges, folds, or curves, and orient horizontally for easier scanning and consistent results.
How do I test if my barcode is scannable?
Use a barcode verifier or the same scanner used in production. Test under different lighting, distances, and angles. Adjust barcode size, print density, and contrast until consistent readability is achieved.
Where can I learn more about barcoding?
For more information, explore the full Barcoding for Beginners Guide on BarcodeFAQ.com, review official GS1 standards, or visit IDAutomation.com for barcode generation tools and fonts.


