Barcode Generator
Updated Free mock REST & WebSocket APIs
Create a scannable barcode in seconds. Choose Code 128, EAN-13, UPC-A, EAN-8 or Code 39, type your data and download a crisp SVG or PNG — check digits are calculated and verified for you.
Encoded MOCKFOX-2026 · Code sets B + C · check value 84 · 14 symbols · 352×122px
Size, text and colors
🔒 Encoded and drawn in your browser — no uploads, no watermark, free for commercial use.
How to make a barcode
- Pick the barcode type: UPC-A or EAN-13 for retail products, Code 128 for shipping and inventory labels, Code 39 for older industrial systems.
- Type the data. Invalid characters or wrong check digits are flagged with an exact fix.
- Adjust bar width, height, text and colors — the preview updates instantly.
- Download SVG for print and design tools, or PNG at 1×–8× resolution.
Which barcode type do I need?
| Type | Encodes | Used for |
|---|---|---|
| UPC-A | 12 digits | Retail products in the US and Canada |
| EAN-13 | 13 digits | Retail products worldwide, books (ISBN) |
| EAN-8 | 8 digits | Small packages with no room for EAN-13 |
| Code 128 | All 128 ASCII characters | Shipping labels, inventory, asset tags, GS1-128 |
| Code 39 | A–Z, 0–9, 7 symbols | Automotive, defense, older industrial systems |
Printing barcodes that scan
- Keep the quiet zone — the blank margin on each side (10× the narrowest bar for Code 128/39; about 11 and 7 modules for EAN-13). Scanners need it to find the start.
- Dark bars on a light background. Black on white is best; red bars are invisible to most laser scanners.
- Don't stretch a PNG. Use SVG for print, or export PNG at the final size so every bar keeps a whole number of pixels.
- Test before printing a batch with a phone scanner app or the scanner you'll actually use.
Related tools
Embed this tool on your site
Browse all embeddable tools →Free for blogs, HR, payroll and contractor sites: copy one snippet — the widget sizes itself and matches your colors.
Get the embed code
Frequently asked questions
Are these barcodes free to use commercially?
Yes. There's no watermark, sign-up or licence — the images are yours. Note that a retail UPC or EAN number itself must be licensed from GS1; the image is free, the number is not.
Do I need to calculate the check digit?
No. For UPC, EAN-13 and EAN-8, enter the number without its last digit and the check digit is added; enter it with the check digit and it's verified.
SVG or PNG?
SVG is vector, so it stays razor-sharp at any size — best for print, Illustrator, Figma or label software. PNG is best for documents, spreadsheets and web pages.
Why won't my barcode scan?
Most often: too little quiet zone, low contrast, bars blurred by scaling a small PNG, or the scanner isn't configured for that symbology. Try a larger bar width and SVG.
Is anything sent to a server?
No. Everything is generated by JavaScript in your browser, so nothing you type or generate is uploaded, logged or stored. It keeps working offline once the page has loaded.
Your business here? Sponsor this tool from $16/week. See placements