Generators

Barcode Generator

Generate standard linear barcodes in formats such as Code 128, UPC-A, and EAN-13 as base64 PNG images with custom sizing and text visibility.

Run tool

Generate standard linear barcodes directly from your text or numeric input as PNG images. The tool supports common symbologies such as Code 128, Code 39, EAN-13, EAN-8, UPC-A, and ISBN. When preparing retail codes, enter the required numeric sequence; the generator strips non-digit characters and automatically computes the trailing check digit where necessary. You can customize the image layout by adjusting width between 100 and 2000 units and height between 40 and 600 units, while keeping human-readable text enabled or disabled beneath the bars. The generator scales the output proportionally to maintain clean, scannable bar widths across standard barcode scanners. If an unsupported format name is entered or insufficient digits are supplied for fixed-length retail standards, the interface displays an informative notice so you can adjust your settings. Use the rendered barcode image for product labeling, inventory management tags, warehouse tracking, or print asset preparation.

Instructions

  1. Enter the string, serial number, or product code into the Data field.
  2. Specify the desired barcode standard in the Format field (such as Code 128, EAN-13, or UPC-A).
  3. Adjust the image dimensions by specifying Width (100 to 2000) and Height (40 to 600).
  4. Check or uncheck Write Text to toggle the human-readable text line beneath the barcode.
  5. Click Generate to render the barcode image.

Examples

  • Generate a product tag: Enter 012345678905 in the Data field, set Format to UPC-A, set Width to 400 and Height to 100, and leave Write Text checked to create a standard UPC-A barcode with label text.
  • Create an inventory label: Enter INV-2026-X88 into Data, set Format to Code 128, set Width to 500 and Height to 120, and uncheck Write Text to produce clean Code 128 bar graphics without bottom text.

FAQ

Which barcode formats are supported by this generator?

The generator supports popular formats including Code 128, Code 39, EAN-13, EAN-8, UPC-A, and ISBN. Format names are normalized automatically by removing spaces or hyphens.

Do I need to calculate the check digit for EAN-13 or UPC-A manually?

No. When you provide the required primary digits (such as 12 digits for EAN-13 or 11 digits for UPC-A), the barcode generator computes and appends the correct check digit automatically.

What happens if I submit an empty Data field or invalid format?

When the data input is empty or the format name is not recognized, the tool displays an informative message rather than an image so you can update your input.

Are the rendered PNG dimensions guaranteed to match the exact pixel width and height entered?

Width and height inputs are normalized between 100-2000 and 40-600 respectively to keep bar ratios scannable. The resulting PNG image scales proportionally rather than locking to exact pixel bounds.

Embed this tool

Add this working SmartPlusLab tool to your website with the code below.