Barcode generator and scanner

Generate a barcode or scan one from an image.

Generate Code 39 and EAN-13 barcodes or scan a barcode image with this free browser tool. Download SVG or PNG; your barcode data stays on your device.

Best for product labels and quick barcode checks

Free online barcode generator

Make a Code 39 label or an EAN-13 barcode from a number you already have.

5901234123457

The generator draws the barcode in this browser. It does not issue a GS1 company prefix or assign a product number.

Generate Code 39 and EAN-13 barcodes
Download a print-ready SVG or PNG
Scan barcode images or use a camera where supported

Barcode tool guide

Create or scan a barcode online

This free barcode generator and scanner gives you two browser-based tools in one place. Create a Code 39 barcode for an internal item code or asset label, or encode a 12- or 13-digit EAN-13 value. If you already have a printed barcode, switch to Scan barcode and choose an image or start a supported camera scan.

For example, a small shop might print ITEM-001 as a Code 39 label to identify a shelf item in its own inventory. The scanner reads the bars and returns that text. This is an internal label: it does not become a retail product number just because it has a barcode.

The generator only represents the value that you enter. It does not register a product, reserve a serial number, issue a GTIN or establish retail eligibility. If a marketplace or retailer requires a GS1 identifier, obtain the identifier through the appropriate GS1 organization before printing product packaging.

Choose a barcode format for the value

Code 39 for text and internal IDs

Code 39 supports uppercase letters A–Z, digits, spaces and the symbols hyphen, period, dollar, slash, plus and percent. Use it for inventory references, equipment IDs, shelf labels or other internal codes when your scanner is configured to read Code 39. For instance, entering TOOL-27 creates bars representing the text TOOL-27. This page adds the required start and stop markers automatically; an optional Mod 43 check character can add an error-checking character.

EAN-13 for numeric product identifiers

EAN-13 contains 13 digits, including a final check digit. Enter the first 12 digits and the tool calculates it; enter all 13 digits and the tool checks the last one. For the sample 590123412345, the weighted sum of the first 12 digits is 83, so the check digit is 7 and the complete example is 5901234123457. This demonstrates the calculation only; it does not verify assignment or retail eligibility.

Illustration of a product barcode label being read by a scanner
A barcode stores a value in a pattern of bars and spaces. A compatible scanner reads the pattern and returns the encoded value.

How to make a barcode label

  1. 1. Select a format

    Choose Code 39 for an internal text code such as TOOL-27. Choose EAN-13 when you already have a 12- or 13-digit number to encode.

  2. 2. Enter and validate the value

    For EAN-13, try the 12-digit example 590123412345: the tool adds check digit 7. If you enter 13 digits, it checks the last digit and explains when it does not match.

  3. 3. Set the print details

    Set bar height to suit your label and leave Print the value below the bars checked if people should be able to read the number without a scanner.

  4. 4. Download and verify

    Use PNG for common image workflows or SVG when you need a scalable vector file. Print one sample at its final size, then scan it with the device you plan to use before making a batch.

Tips for scanning and printing barcode images

Keep the full barcode visible

Avoid cropping the bars or removing the blank margin (quiet zone) around them. For example, leave white space at both ends instead of trimming the image tightly to the first and last bars.

Use clear contrast

Black bars on a plain white background are the safest default for ordinary printing. Avoid glossy glare, colored backgrounds, stretching, blur or text placed across the bars.

Check size on the actual label

A barcode that is reduced too far can become difficult to read. Print a sample at the intended size on the intended label stock, then scan it with the equipment used in your workflow.

Match the format to your scanner

A scanner or browser may support only certain formats. Confirm the device can read the chosen symbology before producing many labels.

For invoice UPI collection, add a QR payment method in the InvoiceWala invoice maker. QR codes suit links and payment details; linear barcodes suit product and inventory labels.

Barcode generator and scanner FAQs

Can I make a barcode for free?

Yes. Choose Code 39 or EAN-13, enter a value and download the barcode as SVG or PNG. For example, you can make a Code 39 label for ITEM-001 or preview the sample EAN-13 value 5901234123457. Generation happens in your browser.

What is the difference between Code 39 and EAN-13?

Code 39 can encode uppercase letters, digits, spaces and a small set of symbols, so it is useful for internal labels and asset IDs such as ITEM-001 or TOOL-27. EAN-13 encodes 13 digits and is used on many retail products; a check digit can confirm the number's arithmetic, but not that it was assigned to you.

Can this tool assign a GS1 barcode number?

No. It draws a barcode from a number you supply; it does not issue a GS1 company prefix, allocate a GTIN or confirm that a product number is valid for retail use. The sample 5901234123457 only demonstrates the EAN-13 format. Get product identifiers through the relevant GS1 organization before using them on retail packaging.

How do I scan a barcode online?

Open Scan barcode, choose a PNG, JPG or WebP image, or press Use camera. For example, upload a clear photo of a printed label with the complete bars and blank margins visible. Scanning requires a browser with the Barcode Detection API and supported barcode formats; availability varies by browser and device.

Are my barcode images or values uploaded?

No. Generation and image scanning are performed in your browser. Camera access starts only after you choose Use camera, and the image is not sent to InvoiceWala.

Why was no barcode found in my image?

The browser may not support barcode detection or that barcode type. A blurry, cropped, low-contrast or very small barcode can also be hard to read. Try a clear image showing the complete bars and quiet area.