Create a barcode online by choosing a supported 1D format, entering the value it must encode, and downloading the resulting SVG from the Barcode Generator. The free tool covers Code 128, EAN-13, UPC-A, and Code 39, so you can make a shipping label, retail product code, or internal inventory marker without sending the value to a server. You enter the data in your browser, the barcode renders as you type, and one click saves a vector SVG. Nothing is uploaded, so product codes, SKUs, and tracking numbers stay on your device; no account is required. For a retail barcode, the workflow also handles the final check digit: provide 12 digits for EAN-13 or 11 for UPC-A, or paste the full code and the tool will verify the digit already included. Code 128 and Code 39 encode text directly and need no check-digit setup. The result fits label templates, packaging artwork, spreadsheets, and design files. This guide explains how to select the correct format, complete each field accurately, and move the finished SVG into a printing workflow while keeping its edges sharp.

Choose the barcode format for its job
Start with where the barcode will be scanned and what data it must carry. These options are 1D linear barcodes rather than square QR codes, so they are designed for labels, packages, tags, and inventory markers read with a barcode scanner.
| Format | Value to enter | Best fit | Important detail |
|---|---|---|---|
| Code 128 | Any ASCII text, including letters, digits, and symbols | Shipping, logistics, tracking labels, and SSCC pallet codes | Compact, high-density encoding |
| EAN-13 | 12 digits, or a full 13-digit code | Retail products worldwide | The final check digit is added or verified |
| UPC-A | 11 digits, or a full 12-digit code | Retail products in the United States and Canada | The final check digit is added or verified |
| Code 39 | Alphanumeric text | Internal inventory and rugged industrial tags | No check digit is required |
Code 128 is the flexible logistics choice because it packs letters, digits, and symbols into a compact, high-density code; carriers and warehouses also use it for SSCC pallet codes. EAN-13 and UPC-A are fixed-length retail formats, so choose EAN-13 for products sold worldwide and UPC-A for products sold in the United States or Canada. Code 39 is an older but rugged alphanumeric format used in automotive, defense, and internal inventory systems. It remains useful when a simple industrial code is enough. Do not swap formats casually: the scanner or checkout system must expect the same symbology you generate.
Create the barcode online
- Choose a barcode format. Select Code 128 for logistics or a value containing text, EAN-13 or UPC-A for retail products, and Code 39 for inventory.
- Type the value to encode. For Code 128, enter letters, digits, or ASCII symbols. For Code 39, enter an alphanumeric value. For EAN-13, enter 12 digits or a full 13-digit code. For UPC-A, enter 11 digits or a full 12-digit code.
- Review the rendered barcode. The barcode appears instantly as you type. If an EAN-13 or UPC-A check-digit mismatch is flagged, correct the number before using the output.
- Download the finished file. Click Download SVG to save a print-ready vector file containing the barcode.
Before moving on, confirm that the visible barcode represents the intended value and that its format matches the destination. If you change the input, allow the preview to update and download the new version so the saved SVG corresponds to the final data.
Handle retail check digits correctly
EAN-13 and UPC-A both end with a check digit. It is a modulo-10 checksum calculated from the preceding digits. When a scanner reads the code, it can recompute that value and compare it with the final digit to catch misreads and typographical errors.
For a new EAN-13, enter the first 12 digits and the generator calculates the correct 13th digit. For a new UPC-A, enter the first 11 digits and it calculates the 12th. If you paste a complete 13-digit EAN-13 or 12-digit UPC-A, the generator verifies the included check digit and flags a mismatch when it is incorrect.
Enter only digits for EAN-13 and UPC-A, without spaces or extra characters. Code 128 and Code 39 encode their text directly and require no separate check-digit setup. This distinction matters because a retail barcode with a correct check digit still needs the correct EAN-13 or UPC-A format.
Keep the SVG sharp from screen to label
Every generated barcode is delivered as SVG, a vector format that stays sharp when resized. That matters because reliable scanning depends on clean, exact bar edges. A raster PNG or JPEG can blur when enlarged, potentially making the barcode harder or impossible to scan. An SVG can move from the generator into artwork or a label template without being rebuilt as a low-resolution image.
- Keep the original SVG. Download the vector file rather than taking a screenshot of the preview.
- Place it into the destination. Add the SVG to a label template, packaging artwork, spreadsheet, or compatible design file.
- Convert only when necessary. If a downstream application requires PNG, convert the downloaded SVG in that workflow; the generator’s native download is SVG.
- Test the printed result. Make a test copy at the intended dimensions and scan it with the reader that will be used in practice.
For a spreadsheet-specific placement workflow, this guide to generate barcodes in Google Sheets without add-ons shows how to fit barcode work into a Google Sheets document.
Keep product data on your device
Generation runs entirely in your browser with JavaScript. The value you type never leaves your device, so SKUs, product codes, and tracking numbers are not uploaded to a server. The page also works offline once it has loaded, which keeps the creation workflow available without a connection. There is no sign-up requirement, no watermark, no usage limit, and no account to manage.
This local processing makes the tool suitable for confidential internal references as well as ordinary retail and shipping labels. The file is generated on the page, and you decide when to save the SVG through your browser.
Run a final preflight before production
A correct-looking preview is only one part of a usable barcode. Use this checklist before releasing a label or packaging file:
- Confirm the symbology. Make sure the receiving scanner, inventory system, or checkout system expects Code 128, EAN-13, UPC-A, or Code 39 as appropriate.
- Check the exact payload. Review every letter and digit, and remove unintended spaces from EAN-13 and UPC-A entries.
- Resolve flagged issues. If the generator identifies a retail check-digit mismatch, correct the number before printing.
- Use the downloaded vector. Keep the SVG as the source artwork instead of replacing it with a blurred screenshot or enlarged raster copy.
- Scan a test label. Check the final printed output at the size and through the scanner intended for the workflow.
For product packaging and label production, this focused guide explains how to generate barcodes for products and print them right while preserving the sharp edges required for scanning.