The ActiveBarcode API generates barcodes as SVG or PNG images, enabling compatibility with diverse applications. Use SVG for scalable, high-quality barcodes ideal for web and print applications requiring resizing without loss of clarity. Use PNG for fixed-size, raster-based images suitable for applications where broad compatibility with various platforms and software, including older systems, is needed.
SVG
https://api.activebarcode.net/v2/svg
PNG
https://api.activebarcode.net/v2/png
 |
OpenAPI Specification
You can also explore this API using the official OpenAPI specification: |
access
api.activebarcode.net/v2/svg?access=YOUR-KEY-HERE
You can evaluate the REST API by omitting the API key. The barcode is watermarked and intended for evaluation purposes only. Use the API key included in your order confirmation instead of the placeholder. Your API key will remain active until you cancel your subscription. |
text
api.activebarcode.net/v2/svg?text=ActiveBarcode api.activebarcode.net/v2/svg?text=Hello%20World! api.activebarcode.net/v2/svg?text=Hello<CR>World! api.activebarcode.net/v2/svg?text=Hello<TAB>World! api.activebarcode.net/v2/svg?text=(10)451214<FNC1>(37)20&typeno=108 Sets the text that you want to display as a barcode.This may be an article number or a text message like Hello World!. Make sure this parameter is URL-Encoded. You can enter control codes in human readable form like this: <CR>, <LF>, ... |
typeno
api.activebarcode.net/v2/svg?typeno=14 Barcode type as number that you want to use for encoding i.e.: 14 (=CODE128)
code
api.activebarcode.net/v2/svg?code=CODE128 Set barcode type as a human readable name that you want to use for encoding i.e.: CODE128
Select the barcode by typeno or code. The typeno parameter takes precedence and is shorter, but less memorable.
|
showtext
api.activebarcode.net/v2/svg?showtext=1 api.activebarcode.net/v2/svg?showtext=0 Select whether the human readable line is visible or not. (1=visible, 0=invisible).
|
width
api.activebarcode.net/v2/svg?width=250&backcolor=eeeeee api.activebarcode.net/v2/svg?width=600&backcolor=eeeeee Sets the width of the resulting image file. |
height
api.activebarcode.net/v2/svg?height=100&backcolor=eeeeee api.activebarcode.net/v2/svg?height=200&backcolor=eeeeee Sets the height of the resulting image file. |
rotate
api.activebarcode.net/v2/svg?rotate=0 api.activebarcode.net/v2/svg?rotate=90&height=200&width=150 api.activebarcode.net/v2/svg?rotate=180 api.activebarcode.net/v2/svg?rotate=270&height=200&width=150 Orientation (rotation) in degrees.Possible values: 0, 90, 180, 270
|
BorderWidth
api.activebarcode.net/v2/svg?BorderWidth=0&width=360&backcolor=eeeeee api.activebarcode.net/v2/svg?BorderWidth=50&width=460&backcolor=eeeeee Border left and right. (free space) |
BorderHeight
api.activebarcode.net/v2/svg?BorderHeight=0&backcolor=eeeeee api.activebarcode.net/v2/svg?BorderHeight=25&backcolor=eeeeee Border top and bottom. (free space) |
alignment
api.activebarcode.net/v2/svg?alignment=left&backcolor=eeeeee api.activebarcode.net/v2/svg?alignment=center&backcolor=eeeeee api.activebarcode.net/v2/svg?alignment=right&backcolor=eeeeee Alignment of the barcode within the area to be displayed:
alignment=left,
alignment=center,
alignment=right.
If the parameter is not specified, the barcode is centered.
Alternatively, numerical values can be used:
alignment=0 (left),
alignment=1 (center),
alignment=2 (right).
|
backcolor
api.activebarcode.net/v2/svg?backcolor=ff0000 api.activebarcode.net/v2/svg?backcolor=00ff00 api.activebarcode.net/v2/svg?backcolor=0000ff Background color as HTML color. E.g. ffffff = white, 000000 = black |
forecolor
api.activebarcode.net/v2/svg?forecolor=ff0000 api.activebarcode.net/v2/svg?forecolor=00ff00 api.activebarcode.net/v2/svg?forecolor=0000ff Foreground color as HTML color. E.g. ffffff = white, 000000 = black |
NotchHeightInPercent
api.activebarcode.net/v2/svg?NotchHeightInPercent=50&code=CODEEAN13&text=123456789012 api.activebarcode.net/v2/svg?NotchHeightInPercent=100&code=CODEEAN13&text=123456789012 Height of the notches (EAN-13, UPC-A/E and others) in percent. |
fontsize
api.activebarcode.net/v2/svg?fontsize=8 api.activebarcode.net/v2/svg?fontsize=28 Font size of the barcode clear text line. |