Barcode Generation and Recognition API for Java
Barcode in Java, Ready in a Few Lines
More showcases >// Create instance of BarcodeGenerator
BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.QR, "ASPOSE");
// Set barcode x-dimension in pixels
gen.getParameters().getBarcode().getXDimension().setPixels(4);
// Generate barcode and Save to PNG
gen.save("QRCode.png", BarCodeImageFormat.PNG);
> compile(group: ‘com.aspose’, name: ‘aspose-barcode’, version: ‘25.6’)
Why Aspose.BarCode for Java?
In production, barcodes often come from scanners, mobile cameras, and PDFs. This SDK is built to keep decoding reliable when input is noisy, low-contrast, skewed, or partially damaged. Use QualitySettings presets to balance speed and tolerance, and apply targeted options when you need more resilience on difficult images.
Standards? Covered.
Aspose.BarCode for Java 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 runs on any operating system that supports Java. It is compatible with JDK/JRE 1.8 and above, and fits common Java stacks for desktop apps, services, and web applications.
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.
Barcode Power for Every Java Project
Aspose.BarCode for Java adds reliable barcode generation and recognition to Java systems of any size. It works well for enterprise apps, document workflows, and backend automation where you need consistent results and broad symbology coverage across environments.
With full control over barcode creation and decoding, you can:
- Generate and recognize more than 80 barcode types
- Read barcodes from raster images, PDFs, and streams
- Handle rotated, skewed, and noisy images with configurable recognition settings
- Customize size, resolution, colors, captions, and text rendering
- 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 80 barcode types.
Save barcode labels in various formats
Recognize from stream or file
Encode & decode characters (non-english) in 2D types
Rotate barcode images at any angle
Scan barcodes from multi-page TIFF and PDF files with Aspose.PDF
Support for linear, 2D and postal symbologies