⚠️ JavaScript is required to use Black Claaw Tools. Please enable it in your browser settings.
Skip to main content

Barcode Generator

Generate multiple barcode formats instantly from text or numbers. Create batch barcodes online and download them as high-quality images for free.

Enter multiple lines for batch generation.

2px
100px
Show Text Below Barcode
Live Preview
Output 0 Items

Advertisement

Choosing the Right Barcode Format Before You Print

Most barcode headaches start with picking the wrong format for the job. Someone needs warehouse shelf labels, selects UPC from a dropdown because the name sounds familiar, pastes an alphanumeric SKU like SHELF42A, and gets a Format Error immediately. Or a small brand designs retail packaging around a homemade number without realizing that retail checkout scanners expect valid GS1 check digits.

One dimensional linear barcodes encode short identifiers as alternating black bars and white spaces. A scanner measures the relative width of those bars and gaps rather than reading ink directly, then translates that timing pattern back into digits or text for inventory software or a point of sale register. This browser generator supports five common linear symbologies, lets you paste multiple lines to render a full batch at once, and exports individual PNG files or a clean print layout without sending your SKU list to any server.

Five Symbologies and What Each Accepts

Not every barcode standard accepts the same characters. Picking the right one depends on whether the code stays inside your building or goes onto a retail shelf scanned by third parties.

Format Allowed Input Length Rule Typical Use
CODE128 Full ASCII (letters, digits, symbols) Variable length Shipping labels, warehouse bins, asset tags
EAN-13 Digits 0 to 9 only 12 or 13 digits Global retail products outside North America
EAN-8 Digits 0 to 9 only 7 or 8 digits Tiny retail packages like cosmetics or gum
UPC-A Digits 0 to 9 only 11 or 12 digits Retail consumer goods in the US and Canada
CODE39 Digits, uppercase A to Z, and - . $ / + % space Variable length Automotive parts, defense, legacy badge scanners

For almost any internal inventory, library book, equipment tag, or parcel tracking sticker, CODE128 is the safest starting choice. It packs uppercase letters, lowercase letters, digits, and punctuation tightly into narrow bars, keeping labels compact even when your part numbers are 15 or 20 characters long.

CODE39 solves a different problem: compatibility with older industrial hardware and legacy systems that specifically require uppercase alphanumeric codes. Because every character in CODE39 takes more horizontal space than in CODE128, a 10 character CODE39 tag stretches noticeably wider on paper. Stick to uppercase letters if you choose CODE39, and avoid characters outside its small symbol set.

Why EAN and UPC Reject Certain Numbers

Notice that the retail formats list two valid lengths: 12 or 13 digits for EAN-13, 7 or 8 for EAN-8, and 11 or 12 for UPC-A. That extra final digit is not random data. It is a calculated check digit built using a modulo 10 weighting formula so a cash register can immediately catch misread digits or typos.

When you enter 12 digits in EAN-13 mode (or 11 digits in UPC-A mode), the generator computes the valid check digit automatically and appends it to the finished barcode. When you enter the full 13 digits (or 12 for UPC-A), the library validates that your last digit matches the formula. If a single digit was mistyped, you see a Format Error card instead of a broken barcode that would fail at checkout.

One crucial business detail: generating a mathematically valid UPC-A or EAN-13 image does not register that product number in global retail databases. If you plan to sell packaged goods through major supermarkets or marketplaces like Amazon, you need officially assigned GTIN prefixes from GS1 rather than invented numbers. For internal store pricing on products that never leave your own shop, local numbers work fine as long as they do not collide with manufacturer codes on items you stock.

Batch Generation, Bar Geometry, and Printing

Pasting a spreadsheet column into the input box generates one barcode per line in a responsive grid. Each card includes a Copy button that places a PNG image on your clipboard and a PNG download button named after the format and text value. If you need to print a sheet of asset stickers, clicking Print opens your browser print dialog while hiding page menus and action buttons.

Two sliders in the left panel directly govern whether a printed sticker scans on the first pass:

  • Bar Width (1px to 4px): This controls the thickness of the narrowest bar, known in print standards as the X dimension. On crisp 300 DPI thermal label printers, 2px usually produces clean edges. On older inkjet printers or absorbent paper stock, ink spreads outward slightly as it dries, making narrow spaces fill in. Bumping Bar Width to 3px or 4px prevents dark bars from bleeding together, though the overall label becomes wider.
  • Bar Height (40px to 200px): Taller bars do not store extra data. Instead, height gives handheld laser and camera scanners a larger vertical target so workers do not have to line up the beam perfectly perpendicular to the label. For narrow shelf edges, 50px to 70px may fit better; for shipping cartons scanned from a distance, 100px to 140px is far easier to hit quickly.

Leaving "Show Text Below Barcode" enabled is almost always smart for physical labels. Whenever a barcode gets scratched, wrinkled across a box seam, or smudged by moisture, the human readable numbers underneath let warehouse staff type the code manually instead of losing track of the item.

Advertisement

When a 1D Barcode Is the Wrong Tool

Linear barcodes work best for short lookup keys: a 12 digit product identifier, an 8 character employee badge ID, or a tracking number that points to a database record. Once you try to pack a full website URL, a WiFi password, or a multi line shipping address into CODE128, the graphic stretches so wide that ordinary handheld scanners cannot capture the entire width in one pass.

If you need to store links, contact cards, or longer text blocks that smartphones scan directly with a camera, switch to a two dimensional matrix code using the QR Code Generator instead. QR codes pack far more characters into a compact square and include built in error correction when corners get scuffed.

Why Printed Barcodes Fail to Scan

If your barcode looks crisp on screen yet refuses to beep under a scanner, the issue usually comes down to physics rather than encoding:

  • Crowded quiet zones: Scanners need blank white space on both the left and right ends of the bars so they can recognize where the pattern begins and ends. This tool adds a built in 10px white margin around every barcode, so avoid cropping the PNG tightly right against the outer black bars when placing it into a label design.
  • Resizing raster PNGs unevenly: Shrinking a downloaded PNG in a word processor by dragging a corner can blur sharp bar edges through resampling, turning crisp black steps into fuzzy gray borders. Generate the size you want with the Bar Width slider first, or keep print scaling near 100 percent.
  • Inverted or low contrast colors: Traditional red laser scanners rely on white paper reflecting red light while black ink absorbs it. Printing blue, red, or metallic ink, or putting white bars on dark packaging, often drops contrast to near zero under a red laser beam. Black bars on matte white labels remain the safest combination.
  • Scanning directly off a glossy screen: Older 1D laser scanners often struggle with backlit phone or monitor glass because the beam reflects poorly off LCD panels, whereas camera based imagers handle screens easily. Always test physical prints if your end users rely on laser guns.