A 17NAS account is created automatically on first sign-in
Tools
Online Barcode Generator
A free online barcode generator supporting CODE128, EAN-13 product codes, EAN-8, UPC-A, CODE39 and ITF-14. Type text to generate barcodes in real time, process them in batches and download high-resolution PNG / SVG - everything runs locally in your browser with nothing uploaded.
🔒 Privacy: barcode encoding and image export happen entirely in your browser (no third-party dependencies, no CDN requests). Your input is never uploaded and is cleared when you refresh the page.
Each 1D barcode format has its own best use: EAN-13/UPC-A for retail products, CODE128 for internal IDs and URL text, CODE39 for industrial labels and ITF-14 for outer cartons. The table below lists the six formats this site supports and their typical uses - pick one and generate instantly.
Format
Description
Typical use
CODE128
Digits, upper and lower case letters and common symbols (ASCII 32-127); variable length, switches automatically between code sets B and C
Internal IDs, logistics documents, asset tags, URL text
EAN-13
13-digit product barcode where the 13th digit is the check digit; entering 12 digits adds it automatically
Retail products (GS1 prefixes 690-699 in mainland China), book ISBNs
EAN-8
8-digit short product code for small packages; entering 7 digits adds the check digit automatically
Small packages, giveaway and sample packs
UPC-A
12-digit product code, the North American retail standard; entering 11 digits adds the check digit automatically
Retail products in North America and Canada
CODE39
Digits, uppercase letters and - . space $ / + %; self-checking and easy to print, less dense than CODE128
Industrial labeling, warehousing, medical and government documents
ITF-14
14-digit logistics carton code (Interleaved 2 of 5); the 14th digit is the check digit
Outer cartons, pallets, logistics handling labels
How to use: generate a barcode in three steps
Step 1 - Enter content: type the text or digits to encode, such as the internal ID SP20250916, the URL https://17nas.com or the 13-digit product code 6901234567892.
Step 2 - Choose a format: use EAN-13 for product codes (entering 12 digits adds the check digit and shows the full 13), CODE128 for internal IDs, CODE39 for industrial labels and ITF-14 for logistics cartons. The preview updates live and clearly warns you when a format is unsupported or the check digit is wrong.
Step 3 - Download or print: download PNG (2x/3x/4x high-resolution bitmaps) or SVG (vector, stays sharp when scaled and printed); you can also click “Print / Save as PDF” to output labels directly.
Batch barcode generation (Excel / CSV import)
Write one barcode per line in the input box and the tool generates them all, arranged in a grid according to “Items per row”.
Copy a column straight from Excel and paste it into the input box (comma-, semicolon- or tab-separated all work; only the first column is used). You can also click “Import CSV/TXT” to pick a local file.
Batch export: PNGs are merged into one long image (barcodes-sheet.png) and SVGs into a single file. To export just one barcode, click the PNG / SVG button at the bottom right of its card.
Download formats: PNG vs. SVG vector
PNG: a bitmap with the widest compatibility, ideal for chat, Word/PPT or direct printing. This site renders at 2x-4x so bars and spaces land on whole pixels and never blur into an unscannable code.
SVG: a vector format that scales losslessly, ideal for print layout, laser engraving and further editing in design tools (Illustrator / Figma) - the recommended choice when you need a “vector barcode generator”.
PDF: click “Print / Save as PDF” and choose “Save as PDF” in the print dialog - ideal for full-page labels and bulk output.
Frequently asked questions
Which barcode formats are supported?
Six formats: CODE128, EAN-13, EAN-8, UPC-A, CODE39 and ITF-14. Use EAN-13 for retail product codes (in mainland China they typically start with 690-699), CODE128 for internal IDs, logistics documents and URL text, CODE39 for industrial labels, ITF-14 for outer cartons and pallets, and UPC-A for North American retail products.
Does it support Chinese characters? Why do Chinese barcodes scan as garbled text?
No, and this is not a limitation of this site: the international standards for 1D barcodes such as CODE128, CODE39, EAN/UPC and ITF only define codewords for ASCII (digits, letters and common symbols). Chinese characters have no corresponding encoding, so no tool can produce a 1D barcode that a standard scanner reads back correctly as Chinese. So-called “Chinese barcodes” online simply stuff the GBK/UTF-8 bytes of the characters into the barcode; an ordinary scanner reads that as garbled text and only a custom-built system might match it. If you need to carry Chinese text, use a 2D code (QR code) instead.
How is the EAN-13 check digit calculated, and why am I told it is incorrect?
The 13th digit of EAN-13 is the check digit: weight the first 12 digits alternately by 1 and 3 from the left, sum them, then compute (10 - sum mod 10) mod 10. If the 13 digits you entered do not match that result, the tool tells you the correct check digit; if you enter only 12 digits it fills in the check digit and shows the full 13.
What is the difference between CODE128 and CODE39, and which should I choose?
The difference is character set and density. CODE128 covers all ASCII characters (including lowercase) and switches automatically between code sets B and C to compress runs of digits; CODE39 supports only digits, uppercase letters and - . space $ / + %, but it is simple and self-checking, and many older industrial devices read nothing else. Prefer CODE128 for new work and choose CODE39 only when a downstream device supports nothing else.
Why won't the generated barcode scan?
Four common causes: 1) the quiet zone was cropped - barcodes need blank margins on both sides (this site keeps them automatically); 2) the printed size is too small - module width should be at least 0.25mm; 3) the image was resized with interpolation and blurred - download the PNG (rendered on whole pixels) or use the SVG directly; 4) insufficient contrast between bars and background - keep dark bars on a light background and never invert. EAN/UPC product codes need wider quiet zones, so leave a blank margin when printing onto labels.
Can I generate barcodes in bulk? How do I import from Excel?
Yes, up to 200 barcodes per run. Enter one item per line and the tool validates each one and flags the problematic lines; copy a column from Excel and paste it directly (only the first column is used; commas, semicolons and tabs are all recognised), or click “Import CSV/TXT” to choose a local file. For batch export, PNGs are merged into one long image and SVGs into a single vector file.
Is barcode data uploaded to a server?
No. Encoding and image rendering happen entirely in your browser; the page loads no third-party barcode library or CDN, your input never reaches a server or a database, and refreshing the page clears it.