FM Barcode

Code 128 barcode API

Compact 1D barcode for letters, digits and symbols, used on shipping labels, inventory tags and asset stickers.

Code 128 barcode for ABC-12345

What Code 128 is for

Code 128 packs the full ASCII character set into a dense linear barcode, which is why it is the usual choice for shipping labels, warehouse bins, asset tags and order paperwork. Any modern scanner reads it.

Make one from a URL

Send the text and get the image back. Your API key goes in a header.

curl
curl "https://barcode.fmdeploy.com/v2/barcode/code128?text=ABC-12345&label=true" \
  -H "Authorization: Bearer bc_live_your_key" -o code128.png

Add &output=svg for a vector image that stays sharp at any print size.

From FileMaker

Insert from URL
Insert from URL [ Select ; With dialog: Off ; Target: Items::Barcode ;
  "https://barcode.fmdeploy.com/v2/barcode/code128?label=true&text=" & GetAsURLEncoded ( Items::Code ) ;
  cURL options: "--header \"Authorization: Bearer " & $$BARCODE_KEY & "\"" ]

What it accepts

Any ASCII text of any length. The check character is added for you. Example: ABC-12345

If the text can’t be encoded, the API answers with a clear message instead of a broken image.

Options

Set the bar width with scale, the bar height with thickness, and turn the text under the bars on with label. You can also choose the label font and size, rotate the image in quarter turns, set the DPI stored in a PNG, or ask for SVG. The documentation lists every parameter and its default.

Related formats

Try Code 128 with a free key

200 barcodes free every month. No card needed.