Task path / input to outcome
How to generate a barcode
- 01
Pick the symbology
Choose one of 21 symbologies; switching formats supplies a valid example. 1–64. CODE128 / CODE128A / CODE128B: Printable ASCII; CODE128A: ASCII 32–95; CODE128C / ITF: An even number of digits; CODE39 / CODE93: Uppercase letters, digits and standard punctuation. EAN13: 12/13; EAN8: 7/8; UPC: 11/12; ITF14: 13/14; UPCE: 6/8. EAN2/EAN5: 2/5; Supplemental symbol; use beside an EAN/UPC symbol. MSI / MSI10 / MSI11 / MSI1010 / MSI1110: Digits; the selected MSI check digits are added automatically. Pharmacode: Integer from 3 to 131070. Codabar: Digits and - $ : . + /; optional A–D start and end.
- 02
Enter the value
Type the data into Value, up to 64 characters. CODE128 accepts 1–64 printable ASCII characters, letters, digits, and symbols included. For EAN-13 enter the 12 data digits, for UPC-A the 11 — the checksum digit is calculated automatically, and if you paste the full 13- or 12-digit value including a checksum, that digit is verified and a mismatch names the expected number. Bar width (px): 1–4 px; Height (px): 40–240 px; Show human-readable value; Bar color; Background. Scanner support varies. Supplemental, MSI and Pharmacode symbols need a compatible reader.
- 03
Style the barcode
Outer margins grow with bar width: at least 12 narrow modules on each side. Keep the full margin when placing the image. Use dark marks on a light background. The 3:1 contrast check is only an initial filter, not a scan guarantee. This is a size estimate, not embedded DPI metadata or print certification. Keep integer scaling, preserve quiet zones and test the final output with the intended scanner. Scanner support varies.
- 04
Generate and export
Press Generate barcode; the renderer loads into this tab on demand. The validated PNG preview and SVG encode the normalized value, including a computed EAN-13 or UPC-A check digit. The human-readable value appears beneath the bars only when Display value is enabled; the bars still encode the same value when the text is hidden. Download toolars-barcode.png or toolars-barcode.svg, or use Copy SVG for the vector markup. Preview the exact PNG and download the same local bytes. SVG. Encoded value.