Format Code Now
/
Hash & generateAdler-32 Checksum Calculator Next: Random String Generator ›

Adler-32 Checksum Calculator

HG-18

Paste text to get its Adler-32 checksum in hex and decimal. The text Wikipedia gives 11e60398, and empty input gives 00000001.

Runs in your browser. Nothing is uploaded.

Text (checksummed as UTF-8)

Adler-32

How to use it

  1. Type or paste your text into the input box. Sample loads Wikipedia, a published example.
  2. The checksum appears as you type, in hex and in decimal.
  3. Tick UPPERCASE hex if you need capital letters.
  4. Copy the result, or download it as a .txt file.

How Adler-32 works

Adler-32 is defined in RFC 1950 for zlib streams. It keeps two 16-bit sums: A starts at 1 and adds every byte, and B adds up each new value of A. Both are taken modulo 65521, the largest prime below 65536. The result is B in the high 16 bits and A in the low 16 bits. The check for the text Wikipedia is 11e60398, and an empty input gives 00000001 because A starts at 1.

What it is good for

It is quick to compute, which is why zlib stores it at the end of a compressed stream to catch accidental damage. It is weaker than CRC32 for short input, because the sums barely change for a few small bytes, and it is not a security hash. Different data can be crafted to match, so use SHA-256 for anything an attacker could touch.

What gets checksummed

The text is encoded as UTF-8 and the checksum is taken over those bytes, so a trailing space or line break changes the result. It does not read binary files or a pasted list of hex bytes as bytes. For a file on disk, a command line tool or script is the right choice; zlib itself computes the checksum for a stream.

Questions people ask

How do I calculate an Adler-32 checksum online?

Type or paste your text and the Adler-32 appears in hex and in decimal. Tick UPPERCASE hex for capitals, then copy it or download it as a .txt file. It runs in your browser.

What is the Adler-32 of Wikipedia?

It is 11e60398 in hex, which is 300286872 in decimal. This is the standard worked example for Adler-32 and a good check for any implementation.

What is the Adler-32 of an empty string?

It is 00000001, or 1 in decimal. The A sum starts at 1 and B starts at 0, so with no bytes the result is 1 in the low half and 0 in the high half.

Is Adler-32 better than CRC32?

Adler-32 is faster in simple software, but it detects fewer errors, especially on short messages. CRC32 is the usual choice when error detection matters. Adler-32 is used where speed matters, as in zlib streams.

Where is Adler-32 used?

The zlib format stores an Adler-32 of the uncompressed data at the end of each stream. PNG images use zlib inside, though PNG chunks use CRC32 for their own checks. It is not meant to protect against deliberate tampering.

Why is my Adler-32 different from zlib?

Check the input bytes: a final newline, different line endings or another text encoding changes the sum. This page uses UTF-8 text and starts from 1, as RFC 1950 specifies. A binary file cannot be entered here.

About this tool

Adler-32 is the checksum defined in RFC 1950 and stored at the end of zlib streams: two 16-bit sums modulo 65521, starting from 1. The text "Wikipedia" gives 11e60398, and empty input gives 00000001. It is quick to compute but weak, especially on short inputs, and it is not a security hash. The text is checksummed as UTF-8, so a trailing space or line break changes the result. It checksums text typed or opened here, not whole files of arbitrary bytes.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.