Utilo

Barcode Generator

Create barcodes in CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, MSI and Pharmacode formats. Customize size and colors and download PNG or SVG.

What this barcode generator does

One-dimensional barcodes are still the backbone of retail, warehousing and libraries. This generator creates CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, MSI, Pharmacode and Codabar symbols, validates check digits where the symbology requires them, and exports PNG or vector SVG. You control bar width, height, colours and whether the human-readable text is printed underneath.

How to use it

  1. Select a Format. The value field fills with a valid sample for that symbology.
  2. Replace the value with your own data. An error appears immediately if a character or check digit is not allowed.
  3. Adjust Bar width (the width of the narrowest bar in pixels) and Height.
  4. Toggle the text below the barcode and pick line and background colours.
  5. Download SVG for labels and print or PNG for documents and web pages.

Practical examples

  • Internal asset tags: CODE128 encodes all 128 ASCII characters compactly, so LAPTOP-0042 fits on a small label.
  • Retail product: EAN-13 (or UPC-A in North America) requires a number assigned by GS1. Enter all 13 digits and the generator verifies the final check digit.
  • Shipping cartons: ITF-14 encodes the 14-digit GTIN printed on outer cases and tolerates low-quality corrugated print.
  • Library cards and blood banks: Codabar is still common in these legacy systems; values start and end with A, B, C or D.

Tips and edge cases

  • Print at 100% scale. Resizing a PNG in a word processor can make bar widths uneven; SVG avoids this.
  • Leave a clear quiet zone on both sides of at least ten times the narrow bar width.
  • Black bars on a white background are the safest choice. Red bars are invisible to most laser scanners because they use red light.
  • CODE39 only supports uppercase letters, digits and a few symbols; use CODE128 if you need lowercase.
  • For EAN and UPC, you may enter the number without the last digit and many scanners still expect the full code, so always print the complete value.

Frequently asked questions

Which barcode type should I use?

For internal use, CODE128 is the best general-purpose choice. For products sold in shops, you need EAN-13 or UPC-A numbers licensed from GS1. For outer cartons, use ITF-14.

Can I make my own EAN-13 numbers?

You can generate the image for any valid number, but retailers only accept numbers from your GS1 company prefix. Made-up numbers may collide with real products.

Why does the generator say my value is invalid?

Either a character is not part of the symbology (letters in EAN, lowercase in CODE39) or the check digit does not match the preceding digits. Remove the last digit to see what it should be.

Is SVG better than PNG?

For printing, yes. SVG scales without blurring, so bars remain exact at any size. PNG is convenient for embedding in emails or slides.

Can phones scan these barcodes?

Most phone barcode apps and camera apps that support product lookups read CODE128, EAN and UPC reliably. Older symbologies such as MSI and Pharmacode usually need dedicated scanners.

Yes. All processing happens directly in your browser using JavaScript, Web Workers and Web APIs. Nothing you type, paste or upload is sent to our servers.