Barcode
The Barcode tool generates barcodes in various formats and standards.
Supported Types
ean13— EAN-13ean12— EAN-12ean8— EAN-8itf14— ITF-14code128— Code 128gs1_128— GS1-128
Output Formats
svg, png, jpg, pdf
Web Interface
Accessible from /tools/barcode. Select the barcode type, enter the code, and click Generate.
API
Endpoint: POST /api/v1/tools/modes/{mode}/barcode
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
type |
string | Yes | Barcode type (ean13, ean12, ean8, itf14, code128, gs1_128) |
code |
string | Yes | Code to encode |
format |
string | Yes | Output format (svg, png, jpg, pdf) |
width_factor |
integer | No | Width factor (1-10, default: 2) |
height |
integer | No | Height in pixels (20-500, default: 80) |
Example:
POST /api/v1/tools/modes/direct/barcode
{
"type": "ean13",
"code": "5901234123457",
"format": "svg"
}