1. Introduction to Code 39 Barcode |
Code 39, also known as Code 3 of 9, is one of the earliest and most widely adopted barcode standards. It encodes alphanumeric data using a set of 43 characters, including numbers, uppercase letters, and a few special symbols. |
The code is a variable-length, discrete barcode that is used in many applications, such as labeling inventory, tracking assets, and tagging shipping products. |
Each character in Code 39 is made up of nine elements, comprising five bars and four spaces, with three wide elements and six narrow elements, hence the name 'Code 3 of 9.' |

|
2. Define the Data to Encode |
Identify the content you want to encode. Code 39 can encode 43 characters (0-9, A-Z, and a few special characters: -, $, %, +, . (period), /, and space). |
Determine if you need to add a start/stop character. Code 39 uses an asterisk (*) as a start and stop character, which should be added at both ends of the data string. For example, to encode 'ABC123,' you would format it as *ABC123*. |
Some applications may also require custom or check-sum characters. However, Code 39 does not have a mandatory checksum, so consider whether to add a Mod 43 check digit if increased accuracy is required. |

|
3. Choose the Right Size and Aspect Ratio |
The barcode's width and height are crucial factors for readability, especially if scanned from varying distances or by different types of scanners. |
Narrow Bar Width: This is the width of the narrowest bar in the barcode and usually defined in mils (1 mil = 0.001 inch). A typical width is between 7.5 to 10 mils for general-purpose scanning. |
Wide-to-Narrow Ratio: Code 39 uses two bar widths (narrow and wide). The ratio between these widths usually ranges from 2.0:1 to 3.0:1. Common ratios are 2.0:1 or 2.5:1. |
Barcode Height: Barcode height is generally determined by the application requirements. For instance, in retail, a barcode height of around 0.5 inches (12.7 mm) is common, but larger sizes are preferred for industrial applications. |

|
4. Setting the Quiet Zone (Clear Area) |
Code 39 requires a quiet zone (clear space) on both the left and right sides of the barcode to ensure reliable scanning. The quiet zone is essential to distinguish the barcode from surrounding text or graphics. |
The minimum quiet zone should be at least 10 times the width of the narrow bar, but a safe quiet zone width is typically 0.25 inches (6.35 mm) on each side. |
Ensure that this quiet zone is respected during printing and labeling to avoid interference. |

|
5. Select the Font and Text Position for the Human-Readable Text |
Most Code 39 barcodes display a human-readable text below the barcode. This text allows users to interpret the barcode's content without scanning. |
Choose a legible, sans-serif font such as Arial, Helvetica, or Verdana, and ensure the text is large enough to read. |
Place the text below the barcode and align it centrally. Ensure there is adequate spacing between the barcode and the text to avoid interference during scanning. |

|
6. Define Print Quality and Resolution Requirements |
Barcode readability is highly dependent on print quality and resolution, especially if the label is to be scanned multiple times or exposed to various environments. |
The standard print resolution for barcodes is 300 DPI (dots per inch) or higher. Higher resolutions produce clearer barcodes and help ensure accurate scanning. |
Test the print quality by scanning a sample label to confirm the code is readable across various scanners. |

|
7. Barcode Software Tools and Digital Design |
Use specialized barcode generation software such as BarTender, NiceLabel, or open-source tools like Zint to create and design Code 39 barcodes. |
Ensure the software allows for customization of barcode dimensions, font selection, human-readable text position, and start/stop character inclusion. |
Export the barcode as a high-quality image file (e.g., PNG, SVG) or directly to a label printer, depending on the design requirements. |

|
8. Printing the Code 39 Barcode Label |
Select a printer that matches the label's material and intended usage. Thermal transfer and direct thermal printers are commonly used for barcode printing due to their high resolution and durability. |
Consider the durability of the printed barcode. For environments where labels are exposed to harsh conditions, thermal transfer printing with durable materials like polyester or vinyl is recommended. |
If you're using a laser or inkjet printer, ensure the label stock is compatible and test the barcode quality before final production. |

|
9. Label Material Selection |
Paper Labels: Suitable for indoor use and general inventory management. Not recommended for high-moisture or high-wear environments. |
Polyester or Vinyl Labels: More durable and resistant to environmental factors like moisture, UV light, and chemicals. Ideal for industrial use. |
Specialty Labels: Use tamper-evident or metalized labels if security or asset protection is a priority. |
Ensure that the chosen material is compatible with the printer type and application environment to prevent smearing, tearing, or fading. |

|
10. Applying Additional Features: Logos, Colors, and Graphics |
Although Code 39 is generally printed in black for readability, some applications might allow for minimal use of colors if it does not interfere with scanning. |
Add logos or additional text on the label if required, but place them outside the quiet zones and barcode area to avoid interference. |
For best results, keep the barcode itself in black on a white or light-colored background for maximum contrast. |

|
11. Quality Control and Testing |
Conduct a thorough test scan of the barcode after printing to ensure readability. Test with multiple types of barcode scanners if possible to verify compatibility. |
Use a barcode verifier, if available, to assess barcode quality. A verifier will analyze elements like bar width, contrast, and quiet zone compliance, assigning a grade to the barcode's quality. |
Consider conducting stress tests if the barcode will be exposed to physical wear or environmental factors. Check that it remains readable after the application's expected wear and tear. |

|
12. Label Placement and Adhesion |
Place the label on a flat, smooth surface for best scanning results. Avoid applying labels over seams, ridges, or heavily textured areas. |
Ensure proper adhesion based on the material. For example, use stronger adhesives for labels applied to curved or irregular surfaces, or to items that will be handled frequently. |
If placing the label on a curved surface (e.g., a bottle), adjust the barcode width and height to fit within the scanner's focus area without significant curvature distortion. |

|
13. Complying with Industry Standards |
Depending on the industry, there may be specific standards for Code 39 barcode labels. Refer to standards such as: |
ANSI MH10.8.2: This standard provides barcode data identifiers for general industrial and retail applications. |
ISO/IEC 16388: Specifies the bar width, aspect ratio, and quiet zone requirements for Code 39 barcodes. |
Ensure compliance with these standards where required to ensure that the barcode label meets regulatory and interoperability requirements. |

|
14. Security and Anti-Counterfeiting Features |
In some applications, particularly for high-value items, adding security features to the barcode label is beneficial. |
Consider adding watermarks, holograms, or microtext outside the barcode area if enhanced security is needed. |
Use tamper-evident labels to prevent unauthorized removal or tampering. These labels will leave a 'void' mark or other indicator if removed, which can help in asset protection and inventory control. |

|
15. Maintenance and Reprinting |
Periodically inspect barcode labels in environments where wear and tear are common. Reprint labels that are damaged or faded to maintain scanning accuracy. |
If using reusable labels (e.g., for shelf or bin tracking), use protective laminate coatings to extend label life and prevent damage. |
Maintain a record of the data associated with each barcode, ensuring that reprinted labels have accurate and up-to-date information. |

|
16. Consider Future Scalability |
Evaluate whether your current barcode design and system can support future expansions. This includes accommodating additional data fields or integrating with an enterprise resource planning (ERP) or warehouse management system (WMS). |
Consider integrating dynamic barcode generation if you foresee the need to print variable data, which can be managed through databases or ERP software. |
Plan for future changes in label design, such as the possibility of transitioning to 2D barcodes like QR Codes if more data storage is required. |

|
17. Final Review and Approval |
After designing and testing the Code 39 barcode label, conduct a final review with all stakeholders. Verify that the label design, data accuracy, and durability meet application requirements. |
Document the design specifications, including bar width, label dimensions, quiet zone size, and any custom features, for future reference or replication. |
If required, have the label approved by relevant regulatory bodies or quality assurance teams to ensure compliance with industry standards. |
This comprehensive guide outlines the entire process, from defining data to compliance, ensuring that the final Code 39 barcode label is well-designed, readable, and fit for the intended application. By following these steps, you can create effective barcode labels that meet both functional and industry requirements. |

|
Here are practical examples across different industries, demonstrating how a Code 39 barcode label can be applied and customized to meet specific needs: |
1. Inventory Management for Retail Stores |
Scenario: A retail store wants to label each product with a Code 39 barcode to track stock levels and monitor sales. |
Data Encoding: Each product is assigned a unique SKU (Stock Keeping Unit), such as 12345AB. The barcode might display *12345AB*. |
Label Size: A small barcode label (e.g., 1x0.5 inches) that fits on a price tag. |
Barcode Specifications: |
Narrow bar width of 10 mils to allow close-range scanning at checkout. |
Wide-to-narrow ratio of 2.0:1 for readability. |
Additional Features: |
Human-readable text printed below the barcode to help staff verify the SKU. |
Quiet zone maintained at 0.125 inches on each side to ensure compatibility with various POS scanners. |
Polyester material for durability, especially if the label might get smudged or scratched. |
Outcome: Staff can scan the labels for quick price checks, inventory counts, and restocking notifications. |

|
2. Asset Tracking for a Manufacturing Facility |
Scenario: A manufacturing company uses Code 39 barcodes to track tools and machinery. Each asset has an ID, and the barcode labels are scanned during regular maintenance. |
Data Encoding: Asset IDs, like MACHINE-123, encode information about the machine type and number. |
Label Size: A medium-sized label (e.g., 2x1 inches), allowing scanning from a moderate distance. |
Barcode Specifications: |
Wide bars are set at 3.0:1 to enhance readability at slightly longer distances (up to 1-2 feet). |
Printed at 300 DPI resolution for clear, durable barcodes. |
Additional Features: |
Tamper-evident vinyl labels are used so unauthorized label removal will show evidence of tampering. |
Barcode text below with large font, aiding in quick visual identification if scanners are unavailable. |
Outcome: Technicians can quickly check and update maintenance logs by scanning labels, preventing downtime and ensuring that each piece of equipment is serviced as scheduled. |

|
3. Library Book Labeling System |
Scenario: A library labels its collection of books with Code 39 barcodes, encoding unique catalog numbers for each book. Barcodes are scanned during checkout, return, and inventory management. |
Data Encoding: Each book is assigned a catalog number, such as FIC12345, representing genre (e.g., fiction) and a unique identifier. |
Label Size: Small labels (around 1x0.75 inches) that fit inside book covers without taking up much space. |
Barcode Specifications: |
Narrow bar width of 8 mils to allow for compact labels. |
Wide-to-narrow ratio of 2.5:1 to balance label compactness and scanner readability. |
Additional Features: |
The library uses waterproof laminate covers to prevent barcode wear from handling. |
Human-readable text printed on the label includes the book title for quick identification by staff. |
Outcome: Staff and patrons use barcodes for efficient self-checkout, while librarians conduct inventory checks seamlessly by scanning each book, making library management faster and more organized. |

|
4. Product Identification for a Warehouse |
Scenario: A warehouse requires Code 39 barcode labels on pallets for organizing and tracking shipments. |
Data Encoding: Each pallet is given a batch code, like BATCH4567, that references the production line and date of packaging. |
Label Size: Larger labels (e.g., 4x2 inches) that are visible on pallet edges. |
Barcode Specifications: |
Larger narrow bar width (e.g., 15 mils) to ensure readability from a distance. |
Ratio of 2.5:1 for compatibility with warehouse-grade, long-range scanners. |
Additional Features: |
Labels are printed on adhesive-backed synthetic material, preventing peeling in a high-moisture or cold storage environment. |
A QR code may be added alongside the Code 39 for enhanced scanning compatibility with mobile devices. |
Outcome: Warehouse operators can scan pallets from forklifts and manage inventory in real time, reducing human errors and enhancing logistics efficiency. |

|
5. Patient ID Bands in a Hospital |
Scenario: A hospital uses Code 39 barcodes on patient ID wristbands to track patient information securely and efficiently. |
Data Encoding: Patient ID numbers, such as PAT123456, allowing access to medical records without revealing personal information. |
Label Size: Small, compact wristband label (e.g., 1x0.5 inches) attached securely to a wristband. |
Barcode Specifications: |
Narrow bar width of 7.5 mils for close-up scanning by medical devices. |
Wide-to-narrow ratio of 2.0:1 for high-density barcodes that don't compromise wristband space. |
Additional Features: |
Use of high-quality thermal printing for smudge-resistant barcodes. |
Latex-free adhesive ensures comfort and durability. |
Outcome: Medical staff scan wristbands to quickly confirm patient identity, access medical records, and reduce manual data entry errors, ensuring safer patient care. |

|
6. Laboratory Sample Identification |
Scenario: A laboratory labels test samples with Code 39 barcodes, which are scanned during processing to prevent sample mix-ups. |
Data Encoding: Each sample has a unique code, such as SAMPLE-7890, representing the test type and sample number. |
Label Size: Tiny labels (e.g., 0.5x0.5 inches) to fit on small containers or test tubes. |
Barcode Specifications: |
Very narrow bar width (e.g., 5 mils) for compact labeling. |
Ratio of 2.5:1 to ensure readability despite the small size. |
Additional Features: |
Use of cryogenic-resistant labels that withstand freezing temperatures, especially for labs that store samples at ultra-low temperatures. |
Human-readable text may be included on larger sample labels but omitted for small test tubes to save space. |
Outcome: The lab's sample tracking process becomes more accurate, as barcodes ensure each sample remains identifiable even through various stages of testing and storage. |

|
7. Shipping Labeling in E-commerce |
Scenario: An e-commerce business uses Code 39 barcodes on shipping labels to track orders and manage returns efficiently. |
Data Encoding: Order numbers such as ORD98765, representing unique identifiers for each shipment. |
Label Size: Standard shipping label (4x6 inches) for placement on packages. |
Barcode Specifications: |
Moderate narrow bar width (e.g., 10 mils) for typical package scanning. |
Ratio of 2.5:1 for high-contrast readability. |
Additional Features: |
Labels include human-readable text with customer address and order details. |
Tamper-evident adhesive ensures that any tampering attempt is visible to the customer. |
Outcome: Scanning the barcodes at different checkpoints keeps customers updated on delivery status, and scanning returned items helps streamline the returns process for efficient inventory management. |

|
8. Vehicle Part Tracking for Automotive Manufacturing |
Scenario: An automotive manufacturing company labels parts with Code 39 barcodes to track them through various assembly stages. |
Data Encoding: Part numbers, such as PARTX1234, identifying the type, batch, and specification of each part. |
Label Size: Medium-sized labels (2x1 inches) attached to parts or packaging. |
Barcode Specifications: |
Wider bar width (15 mils) for readability from several feet away. |
Ratio of 3.0:1 to ensure distinct bars and spaces, even if exposed to grease or dust. |
Additional Features: |
Synthetic labels with oil-resistant coating to withstand exposure to automotive environments. |
High-contrast black-and-white printing for clarity, even if labels accumulate dirt. |
Outcome: Efficient tracking of each part's location and production stage improves accuracy, reduces assembly errors, and facilitates quicker recalls if necessary. |

|
9. Medical Sample Labeling in Pharmaceuticals |
Scenario: A pharmaceutical company uses Code 39 to label medication samples for tracking during clinical trials. |
Data Encoding: Sample codes such as MED-TRIAL-00123 to identify the trial type and sample batch. |
Label Size: Small labels (e.g., 1x0.5 inches) that fit on sample containers. |
Barcode Specifications: |
Compact bar width (7 mils) for easy scanning in a lab environment. |
Ratio of 2.0:1 to maximize barcode data density within a compact space. |
Additional Features: |
Use of high-durability labels resistant to solvents, which might be applied to samples. |
Batch-specific color coding (not on barcode) to aid quick visual identification by researchers. |
Outcome: Barcode labels help researchers maintain strict tracking of sample identification, ensuring that samples are reliably cataloged and reducing risks of mix-up during trials. |
Each of these examples demonstrates how Code 39 barcode labels are customized to meet industry needs, incorporating factors like label size, barcode specifications, material choice, and environmental durability. Whether for inventory management, asset tracking, or sample identification, these labels contribute to improved workflow efficiency, accuracy, and organization across different sectors. |