XTools Logo
XTools
Blog
/
QR Code GeneratorBarcode GeneratorQR & Barcode ScannerAir-Gap QR TransferWheel of Names & Random PickerMind Map MakerInvoice GeneratorMic & Camera Test

© 2026 XTools. All rights reserved.

Privacy PolicyContact Us

    Barcode Generator

    Make Code 128, EAN-13, UPC, Code 39, Data Matrix, PDF417, and more
    • Files never leave your device
    • Runs in your browser
    • Free, no sign-up, no watermark

    1D barcodes

    2D codes

    QR Code →Open the QR code generator

    Code 128

    Letters, digits and symbols (ASCII). Picks the most compact encoding automatically.

    Preview

     

    Appearance

    Width of the thinnest bar. 2–3 px suits screens; 4+ for print.

    Blank space scanners need around the code. Use at least 10 for 1D barcodes.

    Related tools

    • QR Code Generator
    • QR & Barcode Scanner
    • Air-Gap QR Transfer
    • Wheel of Names & Random Picker
    • Mind Map Maker
    • Invoice Generator
    • Mic & Camera Test

    How to use Barcode Generator

    Create 1D barcodes such as Code 128, GS1-128, EAN-13, UPC-A, ITF-14, Code 39 and Codabar, or 2D Data Matrix, PDF417 and Aztec codes. Check digits are validated or added for you, the preview is scan-tested, and batch mode turns a list of values into a ZIP of images.

    1. 1

      Choose the Barcode type; the hint below shows what values it accepts.

    2. 2

      Type the value, or click Sample to see a valid example.

    3. 3

      Under Appearance, set Human-readable text, module width, bar height, quiet zone, colors and rotation.

    4. 4

      To make many codes, turn on Batch mode and paste one value per line.

    5. 5

      Choose PNG or SVG and click Download or Copy image; batch mode downloads a ZIP.

    Frequently asked questions

    Can this tool give me an EAN or UPC number for my product?

    No. It draws the barcode for a number you already have. Retail EAN and UPC numbers come from your GS1 member organization.

    Do I need to calculate the check digit?

    No. Enter 12 digits for EAN-13 (or 11 for UPC-A) and the check digit is added. If you enter the full number, the tool checks it and tells you the correct digit when it is wrong.

    Can I encode lowercase letters or Chinese text?

    For lowercase in Code 39 or Code 93, turn on Full ASCII. Code 128 holds plain ASCII only; for Chinese and other Unicode text, use Data Matrix, PDF417 or Aztec.

    What settings work best for printing?

    Export SVG, or use a module width of 4 px or more for PNG. Leave a quiet zone of at least 10 modules around 1D barcodes.

    How do I make a QR code?

    Use the QR Code Generator, which handles links, Wi-Fi, contacts and logos.

    Are my values uploaded?

    No. Barcodes are drawn and scan-tested in your browser.