IDAutomation.com, Inc.

Your Source for Quality Symbology

[Back to IDAutomation.com Home Page]

Free Linear Barcode Image Generator

Generate free linear barcode images with this online Java Barcode Servlet. Generates UPC, EAN, Code 128, Code 39, ITF and other linear barcodes. This Webpage is also a demonstration of how our Java Barcode Servlets can be used. In this example, the resulting page is dynamically generated with JavaScript and the barcode is an image created by inserting an <IMG> tag. When the page is viewed in the browser, the barcode image is retrieved from the barcode servlet.

Enter data to encode and choose your options in the form below. Press the Create Barcode button to create a new window with the barcode. Then, you may choose File - Print from your browser (or CTRL-P in Windows) to print the page or right-click on the image to download it to your PC.

Data to encode: *
Barcode symbology:
Symbology Specific Options:
Add check digit: (Not required for Code 39, Interleaved 2 of 5 or Codabar, required for all others)
Add check digit to text: (Not applicable to Code 128, UPC or EAN)
Show text below barcode:
Text Margin (The space between the barcode and the human readable text in centimeters; default = 0.3)
Code 128 character set: (0=Automatic; For EAN/UCC-128 in automatic mode, enter ~202 as the FNC1 before each AI. more about this...)
Size and Orientation:
X dimension: (Size of narrow bar in CM; adjustable within .03CM (12mil) increments. More about this...)
Barcode bar height: (Height of barcode in CM)
Rotation
White bar increase (Percentage of the XDimension to increase the white bars; default = 0)
Bearer bars (Width of the bearer bars surrounding the barcode; default = 0)
Character Grouping (The number of digits to group together in the human readable text; default=0, valid options are 0, 3, 4, and 5)
Documentation:
User Guide
API Documentation
 

Some symbology selections have been enhanced for UCC/EAN-128:

  • CODE128: Code 128 is a full ASCII barcode type. This barcode selection will always calculate the mandatory check character (modulus 103). Code 128 has several capabilities when the character set is "0" for automatic (the default setting), these include:

    UCC/EAN-128 Encoding:
    to encode alpha-numeric UCC/EAN128, the character set must be "0" or "AUTO" for automatic (the default setting). ASCII 202 or character string ~202 is recognized as the FNC1 before each AI. When a barcode begins with an AI, the required start C is included automatically. When using the servlet, the character string of ~202 must be used to represent the FNC1 because certain characters are reserved in HTML. For example, the UCC number of (8100) 712345 (21) 12WH5678 should be entered as: ~2028100712345~2022112WH5678.
    • This symbology option is used for encoding alpha-numeric data.
    • In the event that this component fails to determine the correct number of digits in the AI, enter the following extended ASCII character as the FNC1 for the correct number of digits in your AI:
      ASCII 212 or ~212 = 2 digits
      ASCII 213 or ~213 = 3 digits
      ASCII 214 or ~214 = 4 digits
      ASCII 215 or ~215 = 5 digits
    • For example, to encode 128(1234)5678, you would enter 128~21412345678 using this servlet.

    Process Tilde Options - when the symbology is Code 128, the character set is AUTO and processTilde is enabled (the default settings), the following options are available:

    • Encode ASCII characters: the format ~ddd may be used to specify the ASCII code of the character to be encoded. For example, if you enter the following text in the Data field: 128~029TEST you will actually be encoding 128GSTEST where GS is a delimiter ASCII 29 character. Other commonly used ASCII codes are ~032 the space, ~202 the FNC1, ~197 the FNC2, ~009 the tab and ~013 which is a return function. For encoding other functions, please refer to our ASCII chart.
    • Create a Mod 10 Check digit: to create a Mod 10 check digit for xx number of characters add the following to the DataToEncode: ~mnn (where nn is a 2 digit number representing the number of characters preceding the tilde in which to base the Mod 10 calculation). The additional MOD 10 check digit is commonly used in UCC or EAN barcode types. For example, setting the DataToEncode property to ~2134021234567890123456~m16, will cause a mod 10 check digit to be created based on all 16 characters before the tilde. The human readable text and scanned data will display as (402)12345678901234560. The final 0 is the mod 10 check digit and replaces ~m16.
      Review the Code 128 Data Sheet and FAQ for more information on this barcode type.
       
  • UCC128: When the symbology is UCC128, the first FNC1 is automatically added. This symbology option is the easiest to use for encoding SSCC-18, SCC-14 and EAN14.

* Some barcode symbologies require a fixed length value:

  • EAN13: 13 or 12 digit number.
  • EAN8: 8 or 7 digit number.
  • UPCA and UPCE: 12 or 11 digit number.
  • ONECODE: 20, 25, 29, or 31 digit numer.
  • Add-Ons - append the +2 and +5 add-on codes to the end of the string.
  • If the check digit is added, it will be ignored and regenerated to ensure that the code can be scanned. If you rotate the barcode by 270, you may need to increase the top margin.

For more information please visit the Java Barcode Package page.

Copyright © IDAutomation.com, Inc. All rights reserved. All trademarks mentioned are the property of their respective owners.