How to make a barcode PNG
- Choose the barcode type and type your data. The preview updates as you type.
- Open Customize to set bar height, colors and the download size (2× to 14×).
- Click Download PNG, or Copy image to paste it straight into a document.
- Scan-test the image with our online barcode scanner before printing.
PNG download sizes
The download size multiplies the width of the narrowest bar in pixels, so every bar is a whole number of pixels and edges stay sharp.
| Setting | Narrow bar | Good for |
|---|---|---|
| Small (2×) | 2 px | Websites, email, on-screen use |
| Medium (4×) | 4 px | Office documents and labels printed at normal size |
| Large (8×) | 8 px | Large labels and high-resolution print |
| Extra large (14×) | 14 px | Posters and big signage |
Tips for barcode images
- Resize proportionally. Stretching only the width changes the bar ratios a scanner relies on.
- Avoid enlarging a small PNG; generate a bigger one, or use SVG for packaging.
- Keep dark bars on a light background and leave the white margins (quiet zones) around the code.
- For many images at once, the bulk barcode generator downloads a ZIP of PNGs named after each value. To print on label sheets, use the barcode label generator.
Frequently asked questions
How do I download a barcode as a PNG?
Enter your data above, pick the barcode type, choose a download size under Customize and click Download PNG. The image is made in your browser and saved straight to your device.
What PNG size should I use for printing?
Choose Medium (4×) or larger for print. Place the image at its intended size and keep the effective resolution at 300 dpi or more; if you need to enlarge it a lot, use the SVG download instead.
Can the PNG have a transparent background?
Yes. Tick "Transparent background" under Customize, or use the transparent barcode generator, which has it switched on.
PNG or JPG for barcodes?
PNG. It is lossless, so bar edges stay crisp. JPG compression blurs edges with artifacts that can make small barcodes harder to scan.
Can I paste the barcode into Word or Google Docs?
Yes. Click Copy image and paste it, or insert the downloaded PNG. Don't stretch it in only one direction.
Is it free?
Yes. Free, no sign-up, no watermark, and every barcode type is available.