Sviluppo Web
Barcode Generator
Generare un codice a barre lineare (CODE128, EAN-13, UPC, CODE39 e altri) da testo o numeri.
A linear barcode encodes data as bars of varying width, read by a single laser beam in a scanner. Unlike a QR code, most formats are limited to digits or ASCII text, but in exchange they're readable by virtually any retail scanner.
How to use it
- Pick a format (CODE128, EAN-13, UPC, CODE39, and more) and enter text or digits — the barcode is generated instantly.
- For fixed-length formats (EAN-13, UPC-A), the check digit is calculated automatically.
- Download the finished image to print on a label or paste into a document.
Common uses
- Creating a barcode for a homemade product or internal warehouse inventory.
- Printing test barcodes to check a scanner or POS system before going live.
- Generating CODE128 for internal identifiers (order numbers, batch numbers) that don't need to meet a strict retail standard.
Things to keep in mind
EAN-13 and UPC-A are official retail standards — selling a product in stores requires a real, registered GTIN, not an arbitrarily generated one.
No common linear barcode format supports non-Latin scripts or other Unicode characters directly — use a QR code for that kind of text.
Articolo su questo strumento: Codici a barre: in cosa Code 128 differisce da EAN-13
Domande frequenti
Perché dice che i miei dati non si adattano al formato selezionato?
Ogni formato di codice a barre ha i propri vincoli — ad esempio EAN-13 richiede esattamente 12 o 13 cifre e CODE39 supporta solo un set di caratteri limitato — quindi i dati devono corrispondere alle regole del formato scelto.
Quale formato dovrei usare per testo arbitrario?
CODE128 supporta l'intero set di caratteri ASCII, incluse lettere, cifre e simboli, rendendolo la scelta più flessibile quando i tuoi dati non sono puramente numerici.
Generare un codice a barre carica i miei dati?
No, l'immagine del codice a barre viene renderizzata interamente nel tuo browser con la libreria jsbarcode — nulla viene inviato a un server.
In cosa differisce UPC-A da EAN-13?
UPC-A è un formato a 12 cifre storicamente usato in Nord America, mentre EAN-13 è uno standard internazionale a 13 cifre; UPC-A è in realtà un sottoinsieme di EAN-13 (aggiungere uno zero all'inizio lo trasforma in un EAN-13 valido), quindi la maggior parte degli scanner riconosce entrambi i formati senza differenze.
Si possono codificare testi non latini o altri caratteri Unicode in un codice a barre?
La maggior parte dei formati di codice a barre comuni, come EAN-13 o UPC-A, supporta solo cifre, e Code 128 è limitato al set di caratteri ASCII — nessuno di essi supporta direttamente testo non latino o altri caratteri Unicode, quindi per questo tipo di testo serve un codice QR.