Barcode & QR Code Generator for Print
Make a barcode or QR code as a vector PDF in pure black (K100). Set the size in millimeters, check the warnings, and download. The code is built in your browser.
Loading the tool… it runs in your browser and needs JavaScript.
What the barcode generator does
This barcode generator makes a vector PDF for print: every bar, every module of a 2D code, the digits under the bars and the optional crop marks are filled shapes, written in pure black (K100). You choose the symbology, type the data, set the narrow-bar width (the X-dimension) in millimeters, and download a PDF whose page is the code plus its quiet zone at the exact size you set. The text is converted to outlines, so the PDF contains no fonts.
Other barcode files are often RGB images or RGB vector files. Converted to CMYK, their black can end up on all four printing plates, and thin bars printed from four plates blur when the plates are slightly out of register. A black-only vector file avoids that step. The tool also offers bar width reduction (BWR) for presses where ink spreads, warns when a size or quiet zone is below the usual minimum, and checks the check digit of retail and GS1 numbers. It does not test whether the printed code scans. A file that is built to the usual sizes is not a guarantee: only a printed sample checked with a barcode verifier shows whether the code meets a retailer's or GS1's grade.
How to make a print-ready barcode as a vector PDF
- Choose the barcode type and symbologyUnder Symbology, set Barcode type to Linear or 2D, then pick the symbology, for example EAN-13, GS1-128, QR Code or GS1 DataMatrix. The size fields change to the defaults for that symbology.
- Enter the dataType the number or text under Data. For a QR code, choose what it contains: Link, Text, Contact, Wi-Fi, WhatsApp or Email. A wrong check digit or an unsupported character is reported under the field, and no file is offered until it is fixed.
- Set the size in millimetersUnder Size, set X-dimension and, for linear codes, Bar height. EAN and UPC codes also have an EAN / UPC Magnification slider from 60% to 200%, where 100% is an X-dimension of 0.330 mm.
- Open Advanced prepress if your printer gave you a specAdvanced prepress holds BWR ink reduction, the four quiet zones, Rotation, Crop marks (outside quiet zone) and Human-readable text (HRI, outlined). Leave BWR at 0 unless your printer gave you a value.
- Check the preview and downloadRead any warnings next to the preview, check the size shown in millimeters, then click Download Vector PDF (K100). Download SVG and Download PNG (600 dpi) are also there, but both are RGB files meant for screen use.
What is in the PDF, and what the tool changes in your data
Black only
Bars, modules, digits and crop marks are filled with DeviceGray black (the PDF operator 0 g). Print workflows normally put that on the black plate alone. The PDF has no RGB objects and no ICC profile. The one exception is a QR code for which you choose a custom CMYK ink.
Vector shapes, no fonts
Bars and square modules are rectangles. The human-readable digits and the optional QR caption are outlines taken from the font, so nothing depends on a font being installed at the printer.
Exact size in millimeters
The page is the symbol plus its quiet zones, at the X-dimension and bar height you set. With crop marks on, 5 mm is added on every side for the marks. Place the PDF at 100%; scaling it changes the bar widths. Keep the quiet zone clear in your layout, and print the code on a white or light, even background.
Your number is completed, not rewritten
If you leave out the check digit of an EAN, UPC, ISBN or ITF-14 number, it is calculated and added. If you type it, it is verified, and a wrong one is reported as an error. A GTIN inside a GS1 code is padded with leading zeros to 14 digits.
BWR narrows bars, centers stay put
The BWR value is taken off the width of every bar, half from each side. In a 2D code each dark module shrinks on all four sides. Spacing between bar centers does not change.
A logo makes the file part image
A simple SVG logo in a QR code stays vector. A PNG or JPG logo is placed as a grayscale image, so the download button then reads Download PDF (K100, logo as K image) and the file is no longer vector-only.
Symbologies and how each handles the check digit
All 24 symbologies in the tool. "Calculated or verified" means: type the number without its check digit and it is added, type it with one and it is checked.
| Symbology | What you type | Check digit |
|---|---|---|
| EAN-13 | 12 or 13 digits | Calculated or verified |
| UPC-A | 11 or 12 digits | Calculated or verified |
| EAN-8 | 7 or 8 digits | Calculated or verified |
| UPC-E | 6, 7 or 8 digits | Calculated or verified |
| ISBN | 12 or 13 digits starting 978 or 979 | Calculated or verified |
| ISSN | 7 or 8 characters, or a 977 number of 12 or 13 digits | Calculated or verified |
| ITF-14 | 13 or 14 digits | Calculated or verified; bearer bars are drawn |
| GS1-128 | (AI)value pairs such as (01)…(10)…; data typed without parentheses is encoded as typed, unchecked | GTIN in (01) and (02) verified; SSCC in (00) calculated or verified |
| GS1 DataBar (Expanded) | (AI)value pairs | Data is checked by the encoder; errors are reported |
| Code 128 | Printable ASCII text | Symbol check character added automatically |
| Code 39 | 0–9, A–Z, - . $ / + % and space | Optional: tick Include Mod-43 check digit |
| Code 93 | ASCII text | Two check characters added automatically |
| Interleaved 2 of 5 | An even number of digits | None added |
| Codabar | 0–9 and - $ : / . + with A–D start and stop | None added |
| Pharmacode | A whole number from 3 to 131070 | None; no text is printed under it |
| QR Code | Link, text, contact, Wi-Fi, WhatsApp or email | Error correction L, M, Q or H |
| GS1 Digital Link QR | Resolver domain, GTIN, and optional lot, serial and expiry | GTIN verified |
| GS1 QR Code, GS1 DataMatrix | (AI)value pairs | GTIN in (01) and (02) verified; SSCC in (00) calculated or verified |
| Data Matrix (ECC 200) | Text; square or rectangular | Built-in error correction |
| Micro QR, rMQR, PDF417, Aztec | Text | Built-in error correction, level selectable |
Size, quiet zone and BWR controls
| Control | Range | Default |
|---|---|---|
| X-dimension | 0.1 to 5 mm | Set per symbology: 0.264 mm for EAN and UPC (80%), 0.25 mm for Code 128, 0.367 mm for GS1-128, 0.495 mm for ITF-14, 0.5 mm for QR Code and Data Matrix |
| EAN / UPC Magnification | 60% to 200% | 80%. Below 80% the tool shows a warning |
| Bar height | 1 to 150 mm | Full for EAN and UPC: 22.85 mm at 100% (18.23 mm for EAN-8), scaled with the magnification |
| BWR ink reduction | 0 to 0.5 mm | 0. A bar or module narrower than 0.10 mm after BWR is refused |
| Quiet zones (top, right, bottom, left) | 0 to 100 mm each | The usual minimum for the symbology, for example 11 and 7 modules left and right of an EAN-13, 4 modules around a QR Code |
| Rotation | 0°, 90°, 180°, 270° | 0° |
| Crop marks | On or off | Off |
When to use this tool, and when to use another
- Use this tool when you need one barcode or QR code as a small black-only vector PDF to place in a label, carton or cover layout.
- Use the Batch export panel when you have a list: paste up to 500 values, one per line or as data,filename, and get one PDF per value in a ZIP.
- To check the finished layout after the barcode is placed (bleed, image resolution, fonts, color), use Print-Ready. It checks the whole PDF and makes a version with bleed and crop marks.
- To see whether a barcode in an existing PDF sits on the black plate only, open the file in Ink Checker and look at the separations.
- To convert a whole RGB design to CMYK, use PDF to CMYK or Image to CMYK. Make the barcode here and place it afterwards, so it is not converted along with the artwork.
- For a brand color in CMYK values next to the code, use HEX to CMYK.
Frequently asked questions
What does K100 mean for a barcode?
K100 means the bars are printed with black ink only, at full strength, with no cyan, magenta or yellow. In the PDF from this tool the fill is written as DeviceGray black (the operator 0 g), which print workflows normally place on the black plate alone. Bars printed from one plate keep sharp edges even when the press is slightly out of register.
Will the barcode stay black-only after I place it in my layout?
Normally yes, but check. A color conversion on export, or placing the PDF in an RGB document, can turn the black into a mix of four inks. After you place the PDF, look at the separations of the final file: the bars should appear on the black plate only. The file from this tool does not set overprint, so the bars knock out whatever is behind them; put the code on a white or light, even background.
Why not just use an SVG or PNG barcode for printing?
The SVG and PNG from this tool, like those from most generators, are RGB files. When an RGB black is converted to CMYK for print, it often becomes a mix of all four inks, and four overlapping plates soften the edges of thin bars. A PNG also has a fixed pixel grid, so resizing it changes bar widths unevenly. The vector PDF avoids both problems.
What is bar width reduction (BWR) and what value should I use?
On press, ink spreads, so printed bars come out wider than drawn. Bar width reduction makes each bar narrower in the file to make up for it. The right value depends on the press, the plates and the material, so it should come from your printer. This tool accepts 0 to 0.5 mm; without a value from the printer, leave it at 0. If you do set one, tell your printer the file already includes it, because many printers apply their own in prepress and the two would add up.
Does the generator calculate the EAN-13 check digit?
Yes. Type 12 digits and the thirteenth is calculated and added. Type all 13 and the last digit is verified; if it is wrong, the tool shows the expected digit and offers no download. UPC-A, EAN-8, UPC-E, ISBN, ISSN and ITF-14 work the same way. The tool cannot tell whether the number is registered to your company.
What size should an EAN-13 or UPC barcode be?
At 100% magnification an EAN-13 has an X-dimension of 0.330 mm and bars 22.85 mm high. The GS1 range for retail point of sale is 80% to 200% (0.264 to 0.660 mm). This tool starts at 80% and warns when you go below 80% or shorten the bars below the full height. The slider goes down to 60% only for cases your customer has approved. Retailers and printers may set their own minimum, so ask before choosing a small size.
How do I make a GS1-128 barcode as a vector PDF?
Choose Linear, then GS1-128, and type the data as application identifiers in parentheses, for example (01)01234567890128(10)BATCH01. The tool adds the FNC1 characters, verifies the check digit of the GTIN in (01) and (02), and calculates or verifies the one in an SSCC (00). Beyond that it only checks the length of fixed-length identifiers: it does not check that an identifier exists, that a date is real, or that the whole string follows GS1 rules. Data typed without parentheses is not checked at all.
What size should a GS1-128 barcode be?
That depends on where it is scanned. This tool starts at an X-dimension of 0.367 mm and a bar height of 13.7 mm. A logistics label scanned in general distribution normally needs a larger symbol: the GS1 table this tool uses for ITF-14 in general distribution gives 0.495 mm as the minimum X-dimension there. The tool shows no X-dimension warning for GS1-128, because it cannot know which GS1 application applies. Follow the GS1 General Specifications and your customer's specification.
Can I make a GS1 DataMatrix or GS1 Digital Link QR code here?
Yes. GS1 DataMatrix and GS1 QR Code take application identifiers in parentheses, such as (01)…(17)…(10)…. GS1 Digital Link QR builds a web address from a resolver domain, a GTIN and optional batch or lot, serial number and expiry date, and shows the address before you download. The GTIN check digit is verified. The tool does not check that the domain resolves, that the GTIN is yours, or that the other identifiers and values follow GS1 rules. A code made here is not certified by GS1.
Is a QR code from this tool vector, and can I add a logo?
The QR code is vector: each module is a filled shape in the PDF. You can add a PNG, JPG or SVG logo up to 22% of the code's width; error correction is then fixed at level H. A simple SVG logo stays vector, while a PNG or JPG is placed as a grayscale image. Logos print in black only unless a one-color logo is set to match the code's ink. Test-scan a printed proof.
Does a QR code with a logo or styled modules still scan?
It can, but the margin is smaller. A logo covers part of the code and uses up some of its error correction; rounded or dot-shaped modules from the Style panel leave less dark area for the scanner to read. The tool limits the logo to 22% of the code's width and sets error correction to level H, but it does not test scanning. Print a proof at the final size on the final material and test-scan it with several phones before the run.
Can I print a QR code in a color other than black?
For QR Code and GS1 Digital Link QR you can choose Custom ink (CMYK) in the Style panel and type the four values. The PDF then uses those CMYK values instead of black. The tool refuses a color lighter than L* 45 (estimated for GRACoL 2013) and warns when the four values add up to more than 300%. The L* limit is a rough guard, not a scan test, so test a printed proof. All other symbologies are black only.
Is a colored QR code harder to scan than a black one?
Yes, it is a higher risk. A colored code is printed from two or more screened inks, so module edges are softer and depend on register. Red, orange and yellow tones give little contrast for scanners that read with red light. A dark color on a white or light background works more often than a light or warm one. No setting here replaces a test: print a proof and scan it.
Will the barcode scan after it is printed?
No generator can answer that from the file. Scanning depends on the printed result: ink spread, the material, the color behind the code, and the scanner. This tool builds the symbol to the sizes you set and warns about small sizes and narrow quiet zones. For retail and logistics codes it is general practice to test a printed proof with a barcode verifier before the full run.
Is the barcode data uploaded to a server?
No. The code is built by the page itself in your browser, and the PDF, SVG, PNG or ZIP is created on your computer. The data you type is not uploaded. The page sends anonymous usage statistics, such as which symbology was used and the length of the data, but not the data itself. Saved templates are kept in your browser's local storage.
How do I make many barcodes at once?
Open Batch export, paste one value per line, or two columns as data,filename, and click Generate Batch PDFs (ZIP). Up to 500 rows are accepted. Every row is checked first; rows with errors are listed with their line number and skipped, and the rest are exported as one PDF each with the current size and prepress settings.