Skip to content
PrivBay

Barcode generator for linear labels

Make one barcode with a readable label and quiet zones. Choose a format, enter the data and export as SVG or PNG.

Up to 80 characters. Code 128 uses printable ASCII. Code 39 uses uppercase letters, numbers and a few symbols.

2 px
16 px

Keep the white space on both sides when you place or print the barcode.

Enter data to preview one barcode.

Barcode preview

What to do next

  • SVG to PNG Turn SVG files or code into PNG, JPG or WebP images.
  • JPG to PDF Combine JPG, PNG and WebP images into one PDF, with one image per page.

How to generate a barcode in SVG or PNG

  1. Select a Barcode format, such as Code 128 for text or EAN-13 for an assigned product number.
  2. Enter Barcode data and check Encoded data in the preview, including the final check digit for retail formats.
  3. Adjust Module width and Label font size, then select Download SVG or Download PNG.

Compare Code 128, Code 39, EAN-13, EAN-8 and UPC-A formats

Use this barcode generator and barcode maker to create one-dimensional (1D) linear barcodes for inventory tags, warehouse bins and retail packaging. For retail GS1 formats (EAN-13, EAN-8 and UPC-A), you can enter either the body digits so the tool calculates the final modulo-10 check digit automatically, or paste the complete code to verify its check digit while preserving leading zeros:

Barcode format Allowed characters Input length Common use case
Code 128 Printable ASCII (1–80 chars) Variable Shipping labels, SKUs, asset and serial tags
Code 39 A–Z, 0–9, space, - . $ / + % Variable Industrial badges, automotive and defense IDs
EAN-13 Digits 0–9 12 digits (+1 check) or 13 digits Global retail product packaging
UPC-A Digits 0–9 11 digits (+1 check) or 12 digits US and Canadian retail checkout
EAN-8 Digits 0–9 7 digits (+1 check) or 8 digits Small retail packages with limited space

Preserve quiet zones and choose module width

Every exported barcode includes the required left and right white quiet zones so laser and camera scanners can detect where the bars begin and end. Do not crop into that margin when placing the label. Adjust Module width to widen the narrowest bar for low-resolution label printers, and set Label font size so the human-readable digits underneath remain clear.

Export vector SVG or raster PNG labels

Download SVG when placing the barcode into Illustrator, Inkscape or print layout software where crisp vector scaling matters, or Download PNG for Word, spreadsheets and label templates. For 2D square codes that store URLs, Wi-Fi credentials or long text, use the QR code generator or bulk QR code generator, and test existing QR images with the QR code scanner.

Frequently asked questions

Which barcode formats are available?

Code 128, Code 39, EAN-13, EAN-8 and UPC-A are supported.

Can you calculate my retail check digit?

Yes. Enter the digits before the check digit and the tool adds it. If you supply a full number, the tool checks the final digit.

Which characters can I enter for Code 39?

Use uppercase A to Z, digits, spaces and the characters hyphen, period, dollar sign, slash, plus and percent.

Which download format works best for printing?

SVG scales cleanly in design software. PNG works in software that expects a bitmap. Keep its aspect ratio when resizing.

Does the tool assign a retail product number?

Use a number assigned to your product. The tool checks the digits and draws their bars.

Last updated November 11, 2026