Barcode generator
barcode_generateGenerate 1D barcodes as SVG or PNG for Code 128, EAN-13, UPC-A, and Code 39, with single-value or batch file output for up to 1,000 values.
Instructions
Make 1D barcodes as SVG or PNG: Code 128 (any printable ASCII; digit runs packed with subset C automatically), EAN-13 (12 digits, check digit added; or 13, check digit verified), UPC-A (11 or 12 digits, same) and Code 39 (A-Z, 0-9, space, - . $ / + %, optional mod-43 check). Same encoders, quiet zones, guard bars and human-readable digits as the website. Give "value" for one barcode, or "values" (up to 1000) to write one file per value into a folder; invalid values are reported, not fatal. PNG text uses the system monospace font. Web version: https://s3eidat.github.io/barcode-gen/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | PNG only: pixel scale (1×, 2× default, 4×…). | |
| value | No | The value to encode (one barcode). | |
| format | No | Output format (default svg). | svg |
| height | No | Bar height in px, 30-220 (default 80). | |
| output | No | Where to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set). | |
| values | No | Or: many values; each becomes its own file in the output folder. | |
| barWidth | No | Narrow bar (module) width in px, 1-6 (default 2). | |
| showText | No | Print the human-readable text/digits under the bars. | |
| symbology | No | Barcode type (default code128). | code128 |
| background | No | Background colour, hex. | #ffffff |
| foreground | No | Bar colour, hex. | #000000 |
| code39Check | No | Code 39 only: append the mod-43 check character. | |
| returnBase64 | No | Also return the output as base64 in the result (only for small files). Default false. |