Barcode Reader API

4.8/5

(30+ reviews)

Barcode reader API that decrypts codes inside any document

Find and decode QR codes, Data Matrix, PDF417 and EAN barcodes on scans, PDFs and phone photos, in the same call as the printed fields. Each value comes back as text in structured JSON.

No credit card required

SOC 2 Type II & GDPR

Barcode reader API decoding the Data Matrix, barcode and QR code on a shipping label into JSON

Trusted by finance and product teams at

Why barcodes on documents get ignored

Labels, boarding passes, licenses and bills all carry a code, but most OCR tools only read text. Teams run a separate scanner library, then match its output back to the right document by hand.

Document received

Label, pass or bill with a code printed on it.

Separate scan

A barcode library run apart from the text OCR.

Friction

Two pipelines to build, run and keep in sync.

Manual matching

Decoded values tied back to the right document.

Friction

Damaged or blurry codes simply return nothing.

Retyping

Unreadable codes keyed in from the digits below.

Friction

Long codes are where typos creep in.

Record updated

Finally in the system, one code at a time.

RESULT

[X] minutes to reconcile each scanned code, and [X]% of documents where the code is never captured.

See how Mindee fixes it

QR code

ticket_qr

Data Matrix

parcel_datamatrix

PDF417

license_pdf417

EAN / UPC

product_ean

2D-DOC

proof_2ddoc

Printed fields

tracking_number, recipient_name, ship_date

response.json

{

"ticket_qr": { "value": "https://pay.example.com/i/INV-2026-0418" },

"parcel_datamatrix": { "value": "PKG-2026-77104-DE" },

"license_pdf417": { "value": "@ANSI 636015090002DL00410278…" },

"product_ean": { "value": "4006381333931" },

"proof_2ddoc": { "value": "DC04FR0000011E4E1F6A0101FR…" },

"tracking_number": { "value": "PKG-2026-77104-DE" }, "recipient_name": { "value": "Lena Müller" },

}

Ready to post, not just to read.

Each barcode returns its decoded content as a string and its position on the page. Turn on multiple items to capture every code on a document.

Built for codes on real paper, not test sheets

A QR code on a crumpled label, a PDF417 on the back of a worn license, a Data Matrix printed in the corner of a bill. The model finds the code first, then decodes it.

QR Code, Data Matrix, PDF417, 2D-DOC and EAN codes flowing through Mindee into decoded values

Every common format

QR Code, Data Matrix, PDF417, 2D-DOC, UPC and EAN are detected and decoded with the same barcode field.

Shipping label where the address and the barcode are extracted together in one call

Codes and text in one call

The decoded code comes back next to the printed fields, so a label's tracking number and address arrive together.

Packing list with three codes, returned as a list of three decoded values

Several codes per page

Turn on multiple items and every code on the document comes back as a list, with duplicates filtered out if you want.

Torn Data Matrix located on a label, with its position returned and the value flagged for review

Located, then decoded

Each code is found on the page first, so you know where it sits even when a damaged print cannot be decoded.

PDF / JPEG / PNG / WEBP / TIFF / HEIC, QR Code & Data Matrix, PDF417 & 2D-DOC, UPC & EAN, Multiple codes per page

Barcode reading you can check on every code

Every decoded value comes with a confidence score, so clean codes flow straight through and damaged ones go to a reviewer. Test it on your own documents in the free trial.

92.6%

Codes located on the page

QR, Data Matrix, PDF417, EAN

99.4%

Codes decoded to text

Clear, undamaged prints

0.5s

Median time per document

Single page, synchronous call

A confidence score on every field

Set your own threshold. Fields above it flow straight to your systems; anything below lands in a review queue, with the exact spot on the barcode highlighted. Définissez votre propre seuil. Les champs au-dessus partent directement dans vos systèmes ; les autres rejoignent une file de vérification, avec leur emplacement exact mis en évidence sur votre barcode. Define tu propio umbral. Los campos que lo superan pasan directamente a tus sistemas; los que quedan por debajo van a una cola de revisión, con la ubicación exacta resaltada en barcode.

Auto-approve the barcodes you can trust Aprueba automáticamente barcodes de confianza Validez automatiquement les barcodes fiables

Send only real exceptions to a human

Document AI features, better than OCR

Prepare, classify and extract. Mindee delivers high-accuracy extraction for every document format, so you can automate workflows with speed and high reliability.

Prototype in minutes, go live with the API

Start with a no-code workflow to prove the value on your own barcodes, then move the same model into your product. Commencez par un workflow no-code pour prouver sa valeur sur vos propres barcodes, puis intégrez le même modèle dans votre produit.

What teams build with barcode reading

The same API powers very different products. Here is where it usually starts.

Rated 4.8/5 by developers and operations teams

4.8

on G2

4.9

on Capterra

quote

Mindee works reliably and delivers good performance. The OCR data is accurate, and the API is stable. It works like a charm.

on Capterra

quote

Mindee is a web based tool that help us in scanning and reading different type of documents like identity cards, invoices, proposal plans etc and extract all the information with its AI and then it provides all the information and data associated with these documents a structured way.

on G2

quote

I like the easiness and how to use it. Also the price model is very fair. Good with space for improvement

on Capterra

FAQ about Mindee's Barcode Reader API

Can't find what you're looking for? Our team answers within one business day.

About barcode OCR À propos de l’OCR pour les barcode

Which barcode formats can the barcode reader API decode?

The barcode field detects 1D barcodes such as UPC and EAN and 2D codes such as QR Code, Data Matrix, 2D-DOC and PDF417, then attempts to decode their content as text. Add it to the data schema of any extraction model, and turn on multiple items when a document carries more than one code.

What information is in the barcode on the back of a US driver’s license?

Most US and Canadian driver’s licenses carry a PDF417 barcode on the back, encoded according to the AAMVA standard. It typically contains the same data as the front of the card: full name, date of birth, address, license number, issue and expiry dates, sex, height and eye color. Mindee extracts this information from an image of the license and returns it as structured JSON. This way you get standardized data whatever the issuing state, without building and maintaining state-by-state parsing rules.

About Mindee

Is my data secured and protected during the conversion process?

Yes, your data is highly secured and protected during the entire conversion process. As an enterprise-grade OCR solution, Mindee takes data privacy very seriously. Here are the key security measures in place:

  • Certified compliance: Mindee's infrastructure is SOC 2 Type II certified and fully GDPR compliant, ensuring strict industry standards for data protection.
  • Encryption: All documents and extracted data are fully encrypted both in transit (during the API call) and at rest.
  • Data localization: You have control over where your data is processed, with the option to host and process your data on either EU or US servers.
  • Strict privacy: Mindee respects data confidentiality. Your processed documents are not shared with third parties, and your private data is not used to train global AI models.

In short, your sensitive documents are processed in a secure, isolated environment and remain completely under your control.

Is Mindee's OCR API free to use?

We provide a 14 days free trial so you can fully test any of our OCR models — no credit card required. After this, we offer different pricing tiers depending of the volume of pages processed and the features you might need. See the pricing page for more information.

What file formats are supported for JSON conversion?

The supported document formats are:

  • PDF (application/pdf) – While technically a document format rather than an image, it is natively supported for all extraction models.
  • JPEG / JPG (image/jpeg)
  • PNG (image/png) – Must be non-animated.
  • WebP (image/webp)
  • TIFF / TIF (image/tiff) – Both single-page and multi-page TIFFs are supported and processed similarly to PDFs.
  • HEIC (image/heic) – Apple's High-Efficiency Image Container format.

‍

📌 Important technical limitations to keep in mind:

To ensure the OCR pipeline runs smoothly and successfully returns your JSON, make sure your files adhere to the following constraints:

  • Maximum file size: 100 MB per file.
  • Maximum page count: Up to 200 pages per document.
  • File state: The files cannot be encrypted, and PDFs must not be password-protected.

Ready to read barcodes and text in one call?

Add a barcode field to any extraction model and get decoded values next to the printed data, with a team of document processing engineers behind it.

14-day free trial

No credit card required