adler-32 | checksum | zlib

> adler-32 | checksum | calculator <

Calculate the Adler-32 checksum of text, hex bytes or a file. See the hex and decimal result plus the internal A and B sums.

HEX: —
DECIMAL: —
A (sum): —
B (sum of sums): —
BYTES: —

[01]

Text, Hex or Files

Checksum UTF-8 text, raw bytes pasted as hex, or a whole file picked from your device.

[02]

Shows A and B

See the two 16-bit sums that make up the result, handy for learning the algorithm or debugging.

[03]

Private

All calculation happens locally in your browser. Nothing you type or select is uploaded.

// ADLER-32 TECHNICAL INFO

How It Works:

Adler-32 keeps two sums over the data bytes, A = 1 + sum of bytes and B = sum of every intermediate A, both modulo 65521. The 32-bit checksum is B shifted left 16 bits, OR-ed with A. It is stored big-endian at the end of a zlib stream.

Example:

Wikipedia → A = 0x0398, B = 0x11E6 → Adler-32 = 11E60398

Why Use This Tool:

  • >Verify the trailer of a zlib or PNG data stream
  • >Check an Adler-32 implementation against known values
  • >Learn how the algorithm builds its two sums
  • >Quickly checksum a file without installing anything

>> frequently asked questions

Q: What is Adler-32?

A: Adler-32 is a 32-bit checksum invented by Mark Adler. It is used at the end of zlib streams (RFC 1950) to detect corruption. It is faster than CRC-32 but weaker on short inputs.

Q: How is Adler-32 calculated?

A: Two 16-bit sums are kept: A starts at 1 and adds every byte, B starts at 0 and adds each running value of A. Both are taken modulo 65521 (the largest prime below 65536). The result is (B << 16) | A.

Q: What is the Adler-32 of "Wikipedia"?

A: It is 0x11E60398 (300286872 in decimal). This is the standard test vector, and you can paste "Wikipedia" into the tool to verify it.

Q: How is Adler-32 different from CRC-32?

A: CRC-32 uses polynomial division and detects burst errors very reliably; Adler-32 uses simple addition and is faster in software but gives poor results for messages shorter than a few hundred bytes. Use CRC-32 when you need strong error detection.

Q: Where is Adler-32 used?

A: The zlib format ends every stream with an Adler-32 of the uncompressed data. It is therefore present in PNG image data, Git objects, many HTTP/2 and network tools, and the rsync algorithm uses a related rolling checksum.

Q: Is Adler-32 secure?

A: No. It is an error-detection checksum, not a cryptographic hash. It is trivial to forge. For integrity against tampering use SHA-256 or HMAC.

Q: Can I checksum raw bytes or files?

A: Yes. Switch the input type to Hex bytes, or choose a file. Files are read locally in your browser and never uploaded.

// OTHER LANGUAGES

Adler-32 Checksum Calculator Online — Base64.sh

Adler-32 Checksum Calculator Online | Free Adler32 Tool

Free online Adler-32 checksum calculator. Compute the Adler32 of text, hex bytes or files in hex and decimal and see the A and B sums. Runs in your browser.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Check known checksums for the empty string, Wikipedia and 123456789.
Comparison reference
Explicit Adler-32 expected vectors.
Verification scope
These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.