Barcode API
Welcome to the Barcode API. This service supports generating several widely used barcode types, such as UPC-A, EAN-13, Code-128, and datamatrix.
Users can create barcodes by making HTTP requests with specific parameters to customize the output.
Base URL
https://quickchart.io/barcode
To generate a barcode, append parameters to the base URL as query strings. Here is a basic example:
https://quickchart.io/barcode?type=datamatrix&text=foo
Supported Parameters
Parameter | Required | Description | Options |
---|---|---|---|
type | Yes | Specifies the type of barcode to generate (see list below). | |
text | Yes | The data or text you want to encode in the barcode. | |
width | No | Desired width of the barcode in pixels. | |
height | No | Desired height of the barcode in pixels. | |
scale | No | A scaling factor for the barcode, affecting both width and height. | |
includeText | No | If set, includes human-readable text (if supported by the barcode type). | true , false |
rotate | No | Controls the rotation of the barcode. | N (Normal), R (Right), L (Left), I (Inverted) |
Note on width
and height
The width
and height
parameters are approximate for some barcode types due to specifications and drawing methods. The service aims to match the specified size as closely as possible, but the resulting barcode may be marginally larger or smaller.
Usage Examples
Basic Datamatrix Barcode
To generate a basic datamatrix barcode with the text "Hello, World!":
https://quickchart.io/barcode?type=datamatrix&text=Hello, World!
Custom Size Barcode
To create a barcode with a specific width and height:
https://quickchart.io/barcode?type=datamatrix&text=Custom Size&width=200&height=200
Barcode with Text and Rotation
To generate a barcode that includes human-readable text and is rotated 90 degrees clockwise:
https://quickchart.io/barcode?type=upca&text=12345678900&includeText=true&rotate=R
QR codes
We have a dedicated QR code API.
Supported Barcode Types
Barcode Type | Description |
---|---|
auspost | AusPost 4 State Customer Code |
azteccode | Aztec Code |
azteccodecompact | Compact Aztec Code |
aztecrune | Aztec Runes |
bc412 | BC412 |
channelcode | Channel Code |
codablockf | Codablock F |
code11 | Code 11 |
code128 | Code 128 |
code16k | Code 16K |
code2of5 | Code 25 |
code32 | Italian Pharmacode |
code39 | Code 39 |
code39ext | Code 39 Extended |
code49 | Code 49 |
code93 | Code 93 |
code93ext | Code 93 Extended |
codeone | Code One |
coop2of5 | COOP 2 of 5 |
daft | Custom 4 state symbology |
databarexpanded | GS1 DataBar Expanded |
databarexpandedcomposite | GS1 DataBar Expanded Composite |
databarexpandedstacked | GS1 DataBar Expanded Stacked |
databarexpandedstackedcomposite | GS1 DataBar Expanded Stacked Composite |
databarlimited | GS1 DataBar Limited |
databarlimitedcomposite | GS1 DataBar Limited Composite |
databaromni | GS1 DataBar Omnidirectional |
databaromnicomposite | GS1 DataBar Omnidirectional Composite |
databarstacked | GS1 DataBar Stacked |
databarstackedcomposite | GS1 DataBar Stacked Composite |
databarstackedomni | GS1 DataBar Stacked Omnidirectional |
databarstackedomnicomposite | GS1 DataBar Stacked Omnidirectional Composite |
databartruncated | GS1 DataBar Truncated |
databartruncatedcomposite | GS1 DataBar Truncated Composite |
datalogic2of5 | Datalogic 2 of 5 |
datamatrix | Data Matrix |
datamatrixrectangular | Data Matrix Rectangular |
datamatrixrectangularextension | Data Matrix Rectangular Extension |
dotcode | DotCode |
ean13 | EAN-13 |
ean13composite | EAN-13 Composite |
ean14 | GS1-14 |
ean2 | EAN-2 (2 digit addon) |
ean5 | EAN-5 (5 digit addon) |
ean8 | EAN-8 |
ean8composite | EAN-8 Composite |
flattermarken | Flattermarken |
gs1-128 | GS1-128 |
gs1-128composite | GS1-128 Composite |
gs1-cc | GS1 Composite 2D Component |
gs1datamatrix | GS1 Data Matrix |
gs1datamatrixrectangular | GS1 Data Matrix Rectangular |
gs1dldatamatrix | GS1 Digital Link Data Matrix |
gs1dlqrcode | GS1 Digital Link QR Code |
gs1dotcode | GS1 DotCode |
gs1northamericancoupon | GS1 North American Coupon |
gs1qrcode | GS1 QR Code |
hanxin | Han Xin Code |
hibcazteccode | HIBC Aztec Code |
hibccodablockf | HIBC Codablock F |
hibccode128 | HIBC Code 128 |
hibccode39 | HIBC Code 39 |
hibcdatamatrix | HIBC Data Matrix |
hibcdatamatrixrectangular | HIBC Data Matrix Rectangular |
hibcmicropdf417 | HIBC MicroPDF417 |
hibcpdf417 | HIBC PDF417 |
hibcqrcode | HIBC QR Code |
iata2of5 | IATA 2 of 5 |
identcode | Deutsche Post Identcode |
industrial2of5 | Industrial 2 of 5 |
interleaved2of5 | Interleaved 2 of 5 (ITF) |
isbn | ISBN |
ismn | ISMN |
issn | ISSN |
itf14 | ITF-14 |
japanpost | Japan Post 4 State Customer Code |
kix | Royal Dutch TPG Post KIX |
leitcode | Deutsche Post Leitcode |
mailmark | Royal Mail Mailmark |
mands | Marks & Spencer |
matrix2of5 | Matrix 2 of 5 |
maxicode | MaxiCode |
micropdf417 | MicroPDF417 |
microqrcode | Micro QR Code |
msi | MSI Modified Plessey |
onecode | USPS Intelligent Mail |
pdf417 | PDF417 |
pdf417compact | Compact PDF417 |
pharmacode | Pharmaceutical Binary Code |
pharmacode2 | Two-track Pharmacode |
planet | USPS PLANET |
plessey | Plessey UK |
posicode | PosiCode |
postnet | USPS POSTNET |
pzn | Pharmazentralnummer (PZN) |
qrcode | QR Code |
rationalizedCodabar | Codabar |
raw | Custom 1D symbology |
rectangularmicroqrcode | Rectangular Micro QR Code |
royalmail | Royal Mail 4 State Customer Code |
sscc18 | SSCC-18 |
swissqrcode | Swiss QR Code |
symbol | Miscellaneous symbols |
telepen | Telepen |
telepennumeric | Telepen Numeric |
ultracode | Ultracode |
upca | UPC-A |
upcacomposite | UPC-A Composite |
upce | UPC-E |
upcecomposite | UPC-E Composite |