Adler32 Checksum Calculator
Calculate Adler-32 checksums for text and files instantly. Verify data integrity with RFC 1950 compliant Adler32 hash computation online.
About
Adler-32 is a checksum algorithm defined in RFC 1950, used internally by zlib and gzip for fast data integrity verification. It operates on two 16-bit accumulators, A and B, reduced modulo 65521 (the largest prime below 216). Compared to CRC-32, Adler-32 trades collision resistance for computation speed - roughly 5-8× faster on typical hardware. This makes it suitable for streaming compression but insufficient for cryptographic or archival deduplication tasks where collision probability matters.
Miscalculating a checksum during data transfer or archive validation can silently pass corrupted payloads. This tool computes Adler-32 for arbitrary text (UTF-8 encoded) and binary files, processing in optimized blocks of 5552 bytes to defer modulo operations. Note: Adler-32 has a known weakness with short messages (under 128 bytes) where collision rates exceed CRC-32. For cryptographic integrity, use SHA-256 instead.
Formulas
The Adler-32 checksum is computed from two 16-bit sums over the input byte sequence. Given a byte stream D1, D2, …, Dn:
Where A = running byte sum initialized to 1. B = running sum of all intermediate A values. Di = the i-th byte of input data. 65521 = the largest prime less than 216, chosen to keep intermediate sums within 32-bit integer range. The block size of 5552 bytes allows deferring modulo: the maximum possible value of A after 5552 iterations of adding 255 is 5552 × 255 = 1,415,760, well within 32-bit range.
Reference Data
| Algorithm | Output Size | Speed (Relative) | Collision Resistance | Standard | Use Case |
|---|---|---|---|---|---|
| Adler-32 | 32 bit | Very Fast | Low | RFC 1950 | zlib, gzip streams |
| CRC-32 | 32 bit | Fast | Moderate | ISO 3309 | Ethernet, ZIP, PNG |
| CRC-32C | 32 bit | Fast (HW) | Moderate | RFC 3720 | iSCSI, ext4 |
| Fletcher-16 | 16 bit | Very Fast | Low | RFC 1146 | Legacy protocols |
| Fletcher-32 | 32 bit | Very Fast | Low | - | Embedded systems |
| MD5 | 128 bit | Moderate | Broken | RFC 1321 | Legacy file verification |
| SHA-1 | 160 bit | Moderate | Broken | FIPS 180-4 | Git (legacy), TLS (deprecated) |
| SHA-256 | 256 bit | Slow | Strong | FIPS 180-4 | TLS, Bitcoin, code signing |
| SHA-512 | 512 bit | Slow | Strong | FIPS 180-4 | High-security applications |
| xxHash32 | 32 bit | Extremely Fast | Low | - | Hash tables, dedup |
| xxHash64 | 64 bit | Extremely Fast | Moderate | - | Large-scale dedup |
| MurmurHash3 | 32/128 bit | Extremely Fast | Low | - | Hash tables, Bloom filters |
| FNV-1a | 32/64 bit | Fast | Low | - | Hash tables, DNS |
| BLAKE2b | 256 bit | Fast | Strong | RFC 7693 | Password hashing, file integrity |
| CityHash | 64/128 bit | Extremely Fast | Moderate | - | Google internal systems |