Choose a barcode type
Select Code 128, EAN-13, UPC-A or EAN-8. Code 128 is selected by default.
Create Code 128, EAN-13, UPC-A and EAN-8 barcodes in your browser. Enter a value, check the preview, and download the barcode as PNG, JPG, SVG or PDF.
Choose the barcode type you want to create.
Printable ASCII characters, up to 80 characters. Spaces are kept as typed.
Choose how the barcode appears in the preview and in downloads.
The preview shows the barcode at its module geometry. Test printed barcodes with the scanner you plan to use.
Enter a value to see the barcode here.
PNG and SVG keep bar edges sharp. JPG is a compression format, offered for compatibility. Use PNG where crisp edges matter.
Select Code 128, EAN-13, UPC-A or EAN-8. Code 128 is selected by default.
For EAN-13, UPC-A and EAN-8 you can enter the digits without the check digit, and it is calculated for you. A complete number is verified instead.
The status line below the value confirms whether a check digit was calculated or verified, or explains what needs correcting.
Show or hide the value under the bars, choose PNG, JPG, SVG or PDF, and download the file. Where your device supports it, you can also share the PNG.
The generator supports four barcode types and four download formats. Everything runs in your browser.
Code 128 for general text, EAN-13 and UPC-A for product numbers, and EAN-8 for small products.
EAN-13, UPC-A and EAN-8 calculate the check digit from the body digits, or verify it in a complete number. A mismatch is reported and never repaired silently.
Show the encoded value as text under the bars, or hide it for a bars-only graphic.
Raster and vector files built from the same barcode geometry. PDF keeps the bars as vector shapes.
On browsers and devices with file sharing, the PNG is passed to the system share sheet. fourwww does not upload it.
Each type has its own input rules. Choose the type that matches the system that will read the barcode.
A general-purpose barcode for letters, digits and common symbols, using Code Set B. This generator accepts printable ASCII text up to 80 characters.
A 13-digit barcode used to identify retail products. Enter 12 digits to calculate the check digit, or 13 digits to verify it.
A 12-digit barcode used on retail products. Enter 11 digits to calculate the check digit, or 12 digits to verify it.
An 8-digit barcode for small products where a longer code does not fit. Enter 7 digits to calculate the check digit, or 8 digits to verify it.
Two technical details explain most barcode results: the check digit, and the way bars are drawn from modules.
A check digit is calculated from the other digits. It helps a system detect many single-digit entry errors. It does not show that a number is registered or belongs to you.
Every bar and space is a whole number of modules, the narrowest element. The preview and downloads keep these proportions, so the barcode is never stretched to fill a frame.
Each barcode type needs clear space on its left and right. The generator adds the minimum quiet zones around the bars, and they are kept in every export.
The value can be printed under the bars so people can read it. The text is placed below the bars and never overlaps them.
The check digit confirms the digits you entered, not where the number came from. Use only numbers you are entitled to use.
Scanning depends on print quality, contrast, size, the scanner and the lighting. These checks help avoid common problems.
Do not place text, lines or images close to the left and right edges of the barcode.
Dark bars on a light background work best. Print in a single dark colour and avoid light colours that weaken the bars.
Keep the file proportions. Scaling it unevenly can make bars too narrow or too wide to read.
Use SVG when the barcode must scale. Use PNG for sharp raster output. JPG is lossy and can soften bar edges, so prefer PNG or SVG where scanning matters.
Print the barcode at the size you will use and scan it with the device and software your workflow relies on.
No. The generator encodes the number you supply. It does not allocate, register or verify a GTIN, UPC or EAN with GS1.
Entering 12 digits for EAN-13 adds the 13th digit. Entering 13 digits checks the last digit. An incorrect check digit is shown as an error, and the value is not changed.
PNG and SVG keep the bars sharp, and SVG scales without loss. JPG is offered for compatibility, and PDF is useful for documents. Test the result before relying on any format.
Where your browser and device support file sharing, Share PNG opens the system share sheet with the PNG file. The value is not included as text.
No. Scanning depends on print quality, size, contrast, the scanner and the lighting. The generator creates the barcode from your input, but it cannot test it in your workflow.