Barcode Generator

Generate valid CODE 128, CODE 39, EAN-13, EAN-8, UPC-A and ITF barcodes! :)

Barcode Settings

Live preview

Your barcode appears here
Uniitools · Tool guide

Everything You Need to Know About This Tool

Encode an existing product or inventory identifier as a barcode. Encode identifiers into machine-readable bars.

Select a topic below to explore the guide.

About this tool

Encode an existing product or inventory identifier as a barcode.

A practical use case: Labelling inventory with an existing identifier.

How to use — step by step
  1. Choose the barcode format.
  2. Enter the identifier.
  3. Adjust width and margins.
  4. Test the preview with a scanner.
Key features & benefits

Encode identifiers into machine-readable bars.

Example workflow: Labelling inventory with an existing identifier.

Tips for best results

Test the printed barcode with a scanner. Creating a barcode does not allocate an official GS1 product number.

Frequently asked questions

Does this allocate a retail product number?

No. Obtain any required official identifier separately.

What should I check before using the result?

Test the printed barcode with a scanner. Creating a barcode does not allocate an official GS1 product number.

```[cite: 21] --- ### 2. `style.css` ```css body, input, select, textarea, button, .chip, .btn { font-family: 'Comic Neue', 'Chalkboard SE', 'Marker Felt', cursive, sans-serif !important; } .tool-center-container { display: flex; justify-content: center; align-items: flex-start; width: 100%; } .main-tool-card { width: 100%; max-width: 1000px; } .tool-head { margin-bottom: 22px; } .tool-head h2 { font-size: 32px; font-weight: 600; margin-bottom: 6px; } .tool-layout { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 24px; align-items: start; } .panel { background: var(--card-bg); border: 2px solid var(--card-border); border-radius: 12px; padding: 22px; box-shadow: 4px 4px 0 rgba(0,0,0,.15); } .panel h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; } .panel + .panel { margin-top: 20px; } .field { margin-bottom: 14px; } .field > label, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; } .field input[type=text], .field select { width: 100%; padding: 10px 12px; border: 2px solid #000; border-radius: 8px; font-size: 14px; background: #fff; color: var(--text-main); outline: none; } .field input:focus, .field select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2); } .field input[type=color] { width: 48px; height: 38px; border: 2px solid #000; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; } .field input[type=range] { width: 100%; accent-color: #2563eb; } .row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1; min-width: 120px; } .inline { display: flex; align-items: center; gap: 8px; font-size: 14px; } .hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 2px solid #000; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; background: #2563eb; color: #fff; box-shadow: 3px 3px 0 rgba(0,0,0,.25); } .btn.ghost { background: #fff; color: #000; } .btn.green { background: #16a34a; } .btn.red { background: #dc2626; } .btn.sm { padding: 6px 12px; font-size: 12px; } .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; } .preview { background-color: #fff; background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%), linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%); background-size: 20px 20px; border: 2px solid #000; border-radius: 12px; min-height: 260px; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; } .empty { color: var(--text-muted); text-align: center; font-size: 14px; background: #fff; padding: 14px 18px; border-radius: 10px; } .empty i { font-size: 34px; display: block; margin-bottom: 8px; color: #94a3b8; } .alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; border: 2px solid; display: none; line-height: 1.45; } .alert.show { display: block; } .alert.err { background: #fef2f2; border-color: #dc2626; color: #991b1b; } @media(max-width:900px) { .tool-layout { grid-template-columns: 1fr; } }