---
title: "Barcode Decoder – Decode Barcode Image to Text"
description: "Free barcode decoder. Upload a barcode image to get its text, type, raw bytes in hex, GS1 Application Identifiers, check digit and QR error correction level."
url: https://barcodejar.com/barcode-decoder
source: BarcodeJar (free barcode tools)
---

# Barcode Decoder

Decode a barcode image to text and see exactly what is inside: the value, the symbology, the raw bytes in hex, GS1 Application Identifier fields, UPC/EAN check digit validity and the QR version and error correction level. Everything runs in your browser.

_Interactive tool: open https://barcodejar.com/barcode-decoder to use it in your browser. It is free with no sign-up._

_Interactive tool: open https://barcodejar.com/barcode-decoder to use it in your browser. It is free with no sign-up._

## How to decode a barcode image

1.  Drop a photo or screenshot of the barcode onto the upload box, or paste it with Ctrl+V.
2.  Read the decoded text and the barcode type at the top of the result.
3.  Check the details: raw bytes in hex, symbology identifier, check digit and, for GS1 codes, each Application Identifier with its meaning.
4.  Copy the text or any single field, or open the generator to recreate the barcode.

**Quick answer:** a barcode decoder turns the bars back into the text they encode. Add an image above and you get the text, plus the technical details a plain scanner hides: barcode type, raw bytes, GS1 fields and check digit.

## What the decoder shows

-   **Decoded text:** the value as a scanner would type it, ready to copy.
-   **Symbology:** the exact type, such as UPC-A, GS1-128 or Data Matrix, and the ISO/IEC 15424 symbology identifier.
-   **Raw bytes:** the data as hexadecimal bytes, useful for spotting hidden control characters, tabs or the GS (`1D`) separator.
-   **Check digit:** for UPC-A, UPC-E, EAN-13, EAN-8 and ITF-14, the expected check digit and whether the code matches.
-   **GS1 fields:** each Application Identifier with its meaning, with dates written out and weights shown with the decimal point in place.
-   **2D details:** QR version and error correction level, Data Matrix symbol size, and the error correction share for PDF417 and Aztec. Links, WiFi and contact data are shown in readable fields too.

## Common GS1 Application Identifiers

GS1-128, GS1 DataBar Expanded and GS1 DataMatrix codes carry several fields in one barcode. Each field starts with an AI. The most common ones:

| AI | Meaning | Format |
| --- | --- | --- |
| `(00)` | SSCC (pallet or carton serial) | 18 digits |
| `(01)` | GTIN of the trade item | 14 digits |
| `(10)` | Batch or lot number | up to 20 characters |
| `(11)` | Production date | YYMMDD |
| `(15)` | Best before date | YYMMDD |
| `(17)` | Expiration date | YYMMDD |
| `(21)` | Serial number | up to 20 characters |
| `(30)` | Variable count of items | up to 8 digits |
| `(310n)` | Net weight in kg, n decimal places | 6 digits |
| `(37)` | Count of trade items in a logistic unit | up to 8 digits |
| `(400)` | Customer purchase order number | up to 30 characters |
| `(410)` | Ship to / deliver to GLN | 13 digits |

A date with day `00`, such as `(17)271100`, means the end of that month. To build a GS1-128 code, use the [GS1-128 generator](https://barcodejar.com/gs1-128-barcode-generator); for SSCC pallet codes, the [SSCC generator](https://barcodejar.com/sscc-generator).

## Symbology identifiers

Scanners can prefix the data with a three-character symbology identifier. The decoder shows it for every read:

| Identifier | Barcode type |
| --- | --- |
| `]C0 / ]C1` | Code 128 / GS1-128 |
| `]E0` | EAN-13, UPC-A, UPC-E |
| `]E4` | EAN-8 |
| `]A0` | Code 39 |
| `]F0` | Codabar |
| `]I0 / ]I1` | Interleaved 2 of 5 (\]I1 = check digit validated, e.g. ITF-14) |
| `]e0` | GS1 DataBar |
| `]Q1 / ]Q3` | QR Code / GS1 QR Code |
| `]d1 / ]d2` | Data Matrix / GS1 DataMatrix |
| `]L2` | PDF417 |
| `]z0` | Aztec Code |

## Check digits explained

UPC, EAN, ITF-14, GTIN and SSCC numbers all end in a GS1 mod 10 check digit. Take the digits before it, multiply them from the right by 3, 1, 3, 1 and so on, and add the results. The check digit is whatever brings that sum up to a multiple of 10. For `952012345678` the weighted sum is 102, so the check digit is 8 and the full EAN-13 is `9520123456788`. A decoded barcode has passed this check already, so the decoder mainly confirms the math. To test numbers you typed in, use the [barcode validator](https://barcodejar.com/barcode-validator).

## Frequently asked questions

### How do I decode a barcode?

Upload, drop or paste an image of the barcode above, or switch to the camera tab. The decoder shows the text the barcode contains, its symbology, the raw bytes in hexadecimal and, where it applies, the GS1 fields and check digit.

### How do I convert a barcode to text?

Decode it here and click **Copy** next to the value. The text is exactly what a hardware scanner would type, except that GS1 data is shown with each Application Identifier in brackets so it is easier to read.

### What are GS1 Application Identifiers?

They are 2 to 4 digit prefixes that say what the following data means, written in brackets on the label. For example (01) is the GTIN, (17) the expiry date as YYMMDD, (10) the batch or lot number and (21) the serial number. The decoder splits GS1-128, GS1 DataBar, GS1 DataMatrix and GS1 QR codes into these fields.

### How is a UPC or EAN check digit calculated?

Starting from the rightmost digit before the check digit, multiply the digits alternately by 3 and 1, add them up, and the check digit is the number that brings the total to the next multiple of 10. The decoder shows whether the scanned digit matches. You can also use the [check digit calculator](https://barcodejar.com/check-digit-calculator).

### What is a symbology identifier?

A short code such as `]C1` or `]Q1`, defined in ISO/IEC 15424, that scanners can send before the data to say which barcode type was read and how. `]C1` means GS1-128, `]E0` EAN or UPC, and `]d2` GS1 DataMatrix.

### Why does the decoded number differ from the one printed under the bars?

Usually it doesn’t; check for a dropped leading zero. A UPC-A is 12 digits but is the same code as a 13-digit EAN starting with 0. A UPC-E (8 digits) is a compressed UPC-A, and the decoder shows the full 12-digit form it expands to.

### Can it show the QR code version and error correction level?

Yes. For QR codes the decoder shows the version (1 to 40, or M1 to M4 for Micro QR) and the error correction level (L, M, Q or H). For Data Matrix it shows the symbol size, and for PDF417 and Aztec the share of error correction codewords.

## Related free tools

[**Scan Barcode From Image**Upload a photo or screenshot and read every barcode in it.](https://barcodejar.com/scan-barcode-from-image)[**Online Barcode Scanner**Scan any barcode with your phone or webcam camera.](https://barcodejar.com/barcode-scanner)[**QR Code Scanner**Read QR codes from camera or image, no app needed.](https://barcodejar.com/qr-code-scanner)[**Check Digit Calculator**GS1 check digits for UPC, EAN, GTIN, SSCC and ISBN.](https://barcodejar.com/check-digit-calculator)[**Barcode Validator**Check whether a UPC, EAN, GTIN or ISBN is valid.](https://barcodejar.com/barcode-validator)[![GS1-128 Generator example](/thumbs/gs1-128.svg)**GS1-128 Generator**Create GS1-128 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/gs1-128-barcode-generator)[**Barcode Country Codes**Which country is a barcode from? GS1 prefix lookup.](https://barcodejar.com/gs1-country-codes)[**How to Read a Barcode**What the bars and numbers actually mean.](https://barcodejar.com/guides/how-to-read-a-barcode)
