HomeAdler-32 Online Calculator

Adler-32 Online Calculator

Calculate Adler-32 checksums for text and files, a fast checksum algorithm widely used in zlib/gzip compression

Enter plain text (UTF-8 encoding)

About Adler-32

Adler-32 is a checksum algorithm invented by Mark Adler in 1995. It is used in the zlib compression library and is part of the widely used gzip file format. Adler-32 was designed to be faster than CRC-32 while maintaining reasonable error detection capabilities.

The algorithm produces a 32-bit (4-byte) checksum that is particularly efficient for short inputs. It is named after its creator, Mark Adler, who is also a co-author of the gzip and zlib compression programs.

Algorithm Principle

Adler-32 works by maintaining two running sums modulo 65521 (the largest prime number less than 2^16). The checksum is calculated as follows:

A = 1 + D1 + D2 + ... + Dn (mod 65521)
B = (1 + D1) + (1 + D1 + D2) + ... + (1 + D1 + ... + Dn) (mod 65521)
Adler-32 = (B << 16) | A

Characteristics

  • Output: 32-bit (4 bytes, 8 hexadecimal characters)
  • Speed: Faster than CRC-32, especially in software implementations
  • Modulo: Uses prime number 65521 for better distribution
  • Initial values: A=1, B=0 (empty string produces checksum 1)

Common Use Cases

  • zlib library - Data compression checksum
  • gzip file format - Integrity verification
  • PNG image format - Block integrity
  • Fast data verification where speed is prioritized over collision resistance

Examples

Input: "Hello, World!"

Adler-32: 1f9e046a (Hex) / 530858090 (Decimal)

Input: "" (empty string)

Adler-32: 00000001 (Hex) / 1 (Decimal)

Adler-32 vs CRC-32 Comparison

FeatureAdler-32CRC-32
SpeedFasterSlower
Error DetectionGoodBetter
Common Useszlib, PNG, gzipEthernet, ZIP, PNG

References

Data is processed locally in your browser by default and will not be uploaded to any server. Upload will be clearly indicated if required.

© 2026 See-Tool. All rights reserved. | Contact Us