---
title: Barcode Generator — Code 128, EAN-13, UPC-A, SVG & PNG
url: https://varstatt.com/toolkit/barcode
description: Generate Code 128, EAN-13, UPC-A, and more barcodes online. Customize bar width, height, and font. Download as SVG or PNG.
section: Developer Toolkit (https://varstatt.com/toolkit)
tags: images
related: Barcode (https://varstatt.com/toolkit/barcode), QR Code (https://varstatt.com/toolkit/qr)
---
# Barcode Generator

Generate Code 128, EAN-13, UPC-A, and more barcodes online. Customize bar width, height, and font. Download as SVG or PNG.

## How It Works

1. **Enter data and pick a format** — Type the value and select the barcode format (Code 128, EAN-13, UPC-A, etc.).
2. **Customize appearance** — Adjust bar width, height, font size, and toggle text display.
3. **Download** — Download as PNG for print or SVG for scalable graphics.

## FAQ

### Which format should I use?

Code 128 for general text/numbers, EAN-13 for retail products, UPC-A for North American retail, Code 39 for industrial use.

### Why does my barcode show an error?

Each format has specific requirements. EAN-13 needs 12-13 digits, UPC-A needs 11-12 digits. Check the format requirements.

### Are the barcodes scannable?

Yes. All generated barcodes follow the official specifications and are scannable by standard barcode readers. For URLs or WiFi credentials, a [QR code](https://varstatt.com/toolkit/qr) is usually more practical.

## Usage

This tool runs entirely in the browser — visit the URL above to use it.

## Related Tools

- [Barcode](https://varstatt.com/toolkit/barcode)
- [QR Code](https://varstatt.com/toolkit/qr)
