Why Aspose.Barcode for Java?

The barcode library supports various settings to scan and decode damaged or distorted barcodes. It allows successfully reading barcode images with various defects, such as Gaussian noise, inverted colors, white spots, visual artifacts, colored background, and missing bars. To improve barcode readability, the API enables special methods and mechanisms, including median filtering, ‘salt-and-paper’ filtering, reducing image size, and others. Moreover, the barcode library benefits from advanced methods to decode industrial Data Matrix barcodes, read severely damaged QR codes, and even restore some data from incorrect barcodes.

Standards? Covered.

Aspose.BarCode for Java Aspose.Barcode supports all major image formats, including vector formats like SVG and EMF, as well as PDF. Use our API to recognize files from scanners or cameras with ease. Here are all supported barcode symbologies, including 1D, 2D, postal, and composite types. Each one can be generated and recognized across all supported platforms.

Matrix / 2D Codes

  • QR Code, MicroQR, rMQR
  • Data Matrix, Industrial Data Matrix (DPM)
  • Aztec
  • Han Xin
  • MaxiCode
  • DotCode

Linear / 1D Codes

  • UPCA, UPCE
  • EAN13, EAN14, EAN8
  • Code 128
  • DataBar
  • ITF
  • Postal

Industry & Composite Codes

  • GS1
  • ECI
  • Composite barcodes
  • HIBC
  • SwissQR
  • Royal Mailmark

Cross-platform Java Support

Aspose.Barcode for Java is a cross-platform API that runs on any system with a Java Virtual Machine — including Windows, Linux, and macOS. Whether you build desktop, web, or server-side applications, the library fits seamlessly into Java SE and Java EE environments.

Microsoft Windows
Linux
Android
Android Studio
Gradle
macOS
IntelliJ IDEA
Eclipse
Apache Maven
GitHub

Live Code Demo

Paste text → get a barcode. Drop a file → get decoded data. Both examples come with auto-generated sample code so you can copy straight into your project.


// Initialize BarcodeGenerator BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.QR, "1234567"); // Set generation parameters gen.getParameters().getBarcode().getXDimension().setPixels(7); gen.getParameters().getBorder().setColor(new Color(0xff000000, true)); gen.getParameters().getBorder().getWidth().setPixels(7); // Generate and save Barcode image gen.save("image.png", BarCodeImageFormat.PNG);

// Initialize BarCodeReader BarCodeReader reader = new BarCodeReader("image.png", DecodeType.QR); // Set recognition quality reader.setQualitySettings(QualitySettings.getHighPerformance()); // Recognize barcodes and output results BarCodeResult[] res = reader.readBarCodes(); System.out.printf("Recognized %d barcode(s)%n", res.length); for (BarCodeResult result : res) { System.out.printf("%s: %s%n", result.getCodeTypeName(), result.getCodeText()); }

Barcode Power for Every Java Project

Aspose.Barcode for Java brings robust and flexible barcode features to any Java-based system. It’s designed for developers who need to integrate barcode functionality into enterprise applications, document management systems, or automated workflows. With high accuracy and a wide format range, it works equally well in on-premise and cloud-hosted Java applications.

With complete control over barcode logic and design, you can:

  • Generate and recognize more than 60 barcode types
  • Read barcodes from raster images, PDFs, and streams
  • Handle rotated, skewed, or noisy barcode images
  • Customize size, resolution, colors, and text labels
  • Implement GS1, ECI, and postal barcode standards

Features and capabilities

Aspose.BarCode for Java is a powerful development library to generate & recognize 1D & 2D barcodes from various image types at any angle. This API allows exporting generated barcodes to different high-quality image formats, enables modifying the appearance of generated barcodes and their parameters, such as background color, bar color, rotation angle, x-dimension, image quality, resolution, captions, size, and many others. It also provides rich barcode detecting and reading functionality and supports over 60 barcode types.

Feature icon

Save barcode labels in various formats

Feature icon

Recognize from stream or file

Feature icon

Encode & decode characters (non-english) in 2D types

Feature icon

Rotate barcode images at any angle

Feature icon

Scan barcodes from multi-page TIFF

Feature icon

Support for linear, 2D and postal symbologies