Get Media $2.00 / 1,000 calls

Decoded barcode

What this tool does

This tool reads any non-QR barcode from an image: linear codes (EAN-13, UPC-A, Code128, Code39, ITF, Codabar and more) and the 2D family DataMatrix, PDF417 and Aztec. It returns the payload of every code found, with its symbology and position.

When to use it

  • Reading the EAN/UPC of a product photo.
  • Extracting a Code128 label from a shipping document.
  • Reading a DataMatrix or PDF417 from a ticket, invoice or boarding pass.
  • Checking that a printed barcode matches the expected value.

What to expect

You get the first value in result and the full inventory in codes, each with its symbology, EC level and bounding box. QR codes are intentionally ignored: use get-qr-decoded for those.

Limitations

  • The image must be sharp and reasonably cropped.
  • QR codes are not returned; result is empty with reason no_barcode.
  • Very small or rotated codes may need a higher-resolution image.

When it fails

  • The image URL is blocked by the SSRF guard or cannot be downloaded.
  • No non-QR barcode is present in the image.
  • The formats filter excludes the code that is present.

Good to know

  • Use formats to require a specific symbology (for example ean13).
  • Reading a QR? Use get-qr-decoded, the complementary tool.
  • Generation is available in get-barcode-encoded.

Input data

Parameter Required Example Description
url Yes https://public.downloads.uproc.io/samples/sample-barcode.png Public URL of the image with the barcode. Example: 'https://example.com/label.png'.
formats No ean13 Symbologies to accept, comma separated. Default is all (every non-QR code).

Output data

Field Description
result Payload of the first barcode found. Empty when no non-QR code is present.
count Number of matching barcodes found.
codes List with value, format, format_id, ec_level, orientation and bbox for every code.
reason Short reason when nothing is found ('no_barcode').