Inventory and asset labels
Label shelves, boxes, tools or laptops with a Code 128 or Code 39 barcode so stock counts and check-outs take one scan.
Type a value, choose a barcode type, and get a scannable barcode instantly. EAN and UPC check digits are calculated for you, and you can change the size, quiet zone and colours before downloading a PNG or a sharp, scalable SVG. Everything is drawn in your browser, so the values you enter never leave your device.
Choose the right barcode format, understand check digits, and print codes that scan first time.
A barcode turns a short piece of data into a pattern of bars and gaps that a scanner can read in a fraction of a second. The scanner measures how wide each bar and gap is, converts the widths back into characters, and passes the text to whatever app is listening, such as a till, a stock system or a library desk.
This generator draws six common linear formats directly in your browser: Code 128, Code 39, EAN-13, UPC-A, EAN-8 and Interleaved 2 of 5. Pick a type, type your value and the barcode updates as you go. You can download it as a PNG for documents and labels, or as an SVG that stays sharp at any size. If you are converting numbers by hand while you work, the Binary to Decimal Converter may also help.
Barcodes show up anywhere a person would otherwise have to type or read a code by eye.
Label shelves, boxes, tools or laptops with a Code 128 or Code 39 barcode so stock counts and check-outs take one scan.
Put an order number, member ID or voucher code on a printed or on-screen pass that staff can scan at the door.
Mock up EAN or UPC barcodes on packaging designs, print ITF codes for cartons, or create test data for a scanner app.
Each format has its own character set and length rules. If you are not sure, use Code 128: it handles almost any text and is compact.
| Type | What it encodes | Typical length | Common use |
|---|---|---|---|
| Code 128 | Printable ASCII: letters, digits, punctuation | Any, short is best | Shipping labels, inventory, IDs |
| Code 39 | 0-9, A-Z, space and - . $ / + % | Any, but wide | Industry, defence and automotive labels |
| EAN-13 | Digits only | 12 digits + check digit | Retail products worldwide |
| UPC-A | Digits only | 11 digits + check digit | Retail products in the US and Canada |
| EAN-8 | Digits only | 7 digits + check digit | Small retail packages |
| ITF | Digits only, in pairs | Even number of digits | Cartons and cases |
The final digit of an EAN or UPC number is a check digit. It is calculated from the other digits so that a scanner can reject a code that was misread or mistyped. This tool adds it for you, or verifies it if you enter the full number.
Code 128 uses a different method. Its checksum is a weighted sum of the symbol values, taken modulo 103, and is encoded as an extra symbol before the stop pattern. Code 39 has an optional mod-43 check character, which you can switch on under Size and colours.
Every barcode needs empty space on both sides of the bars so the scanner can tell where it starts. Keep at least 10 modules (the width of the thinnest bar) for most types, and 9 for EAN and UPC. Never crop it off.
Retail EAN and UPC symbols are specified around a 0.33 mm module at 100% size and may be scaled between 80% and 200%. At 300 dpi, that is roughly 4 pixels per module. Smaller than that and cheap scanners start to struggle.
Use dark bars on a light background. Black on white is best. Light bars on a dark background (inverted) and low-contrast colour pairs are the most common reason a barcode will not scan.
PNG is fine for documents and web pages. SVG is a vector file: it can be scaled to any size without blur, which is what print shops and label designers want.
Your value is converted into a list of bar and gap widths using the standard encoding table for the chosen type. The page draws those widths as an SVG image in your browser. A PNG is produced by painting that same SVG onto a canvas at twice the size.
Everything is generated in your browser. The value you type is never sent to our server and no image is uploaded. Only your size and colour choices are remembered in your browser, so they are ready next time; the value itself is not saved.
Only linear (1D) barcodes are supported, not QR codes. Code 128 supports printable ASCII only, not control characters. The tool cannot guarantee that a given scanner will read a code, so test a printed copy. It does not issue or register product numbers.
Code 128 is the best general-purpose choice because it encodes any printable text and stays compact. Choose EAN-13 or UPC-A only for retail products that have an official number, Code 39 if a system specifically requires it, and ITF for cartons of digits.
Yes. It is free, needs no account and has no watermark. The images you download are yours to use, for example on labels, tickets or packaging mock-ups.
For testing and mock-ups, yes. For products you sell in shops, no. Retail numbers are issued through GS1 member organisations, and an invented number may already belong to another product.
For EAN and UPC, the digits are weighted 3, 1, 3, 1 from the right, added up, and the check digit brings the total to the next multiple of 10. Enter one digit fewer than the full length and the tool adds it for you, or enter the full number to have it verified.
You entered the full length of digits and the last one does not match the calculated check digit. The message shows the digit it should be. If you only have the first digits, leave off the last one and the correct check digit is added.
The usual causes are low contrast, inverted colours, a missing quiet zone, a printout that is too small or blurry, or stretching the image. Use dark bars on a white background, keep the empty margin, print at a larger size and test again.
Use PNG for Word documents, slides and web pages. Use SVG when you need to resize without losing sharpness, or when a printer or label designer asks for a vector file.
Not in standard Code 39. The tool converts lowercase letters to capitals and tells you when it does. If you need lowercase, use Code 128.
No. The barcode is generated entirely in your browser and the value is never sent to our server. Only your size and colour settings are saved in your browser for next time.
Yes. Add ?type=ean13&value=590123412345 to the page address. The type can be code128, code39, ean13, upca, ean8 or itf.
The homepage features dozens more free tools that don't require an API key.
Convert text to uppercase, camelCase, title case, snake_case and more.
Open toolEliminate extra spaces and clean up messy line spacing.
Open toolCompare two texts line by line to see what has changed.
Open toolRemove repeated lines from any list or block of text.
Open toolNo matching question.
Share your thoughts on this tool with other visitors.