Developer · Checksums

Checksum calculator.

CRC-32, Adler-32, Fletcher-16 and Fletcher-32 of any text or file. Everything runs in your browser — nothing is uploaded.

How to calculate a checksum

  1. Type or paste text, or choose a file. A chosen file is used instead of the text.
  2. Press Calculate.
  3. Copy the CRC-32, Adler-32, Fletcher-16 or Fletcher-32 value you need. Load 123456789 fills in the standard test string.

Testing against known values

The standard way to check any checksum implementation is the ASCII string 123456789. CRC-32 of that string is CBF43926, and Adler-32 is 091E01DE. Press Load 123456789 and compare. The CRC-32 here is the ISO-HDLC variant used by zip, gzip and PNG files. Adler-32 is the checksum used inside zlib, and the Fletcher sums are simple error-detecting codes used in some protocols and file formats.

Checksums detect accidental corruption such as a flipped bit during a transfer. They are not designed to stop deliberate tampering, because it is easy to craft different data with the same value. For security, use a cryptographic hash such as SHA-256 instead; the hash generator on this site produces them.

Calculated on your device

The calculator runs in your browser, inside an isolated frame on this page that has no network access. Your file is read and written back by your own device, so it is not uploaded to TNAADO or anyone else, and nothing is stored. The advertising on this page sits outside the frame and cannot see what you choose. Text and files are processed in memory and are not uploaded.

What these checksums are

CRC-32 here is the CRC-32/ISO-HDLC variant (used by zip, gzip and PNG): polynomial 0x04C11DB7, initial value 0xFFFFFFFF, reflected input and output, final XOR 0xFFFFFFFF. Its published check value for the ASCII string 123456789 is CBF43926.

Adler-32 (zlib) keeps two sums modulo 65521, starting at 1 and 0, and outputs s2 × 65536 + s1. For 123456789 it is 091E01DE.

Fletcher-16 sums bytes modulo 255; Fletcher-32 sums 16-bit little-endian words modulo 65535 (an odd final byte is padded with zero). Both start at 0 and output sum2 in the high half. Published vectors: Fletcher-16 of abcde is C8F0, Fletcher-32 of abcde is F04FC729.

Sources: Catalogue of parametrised CRC algorithms (CRC-32/ISO-HDLC); RFC 1950 section 8.2 (Adler-32); Fletcher's checksum (test vectors).

Frequently asked questions

Are my files uploaded?

No. Files are read locally in your browser and never leave your device.

Why does my CRC-32 differ from another tool?

CRC-32 has many variants. This tool uses CRC-32/ISO-HDLC (the common zip/gzip/PNG one); other variants such as CRC-32C or CRC-32/BZIP2 give different values for the same input.

Are checksums secure?

No. They detect accidental corruption only and are trivial to forge. Use SHA-256 or stronger for integrity against tampering.

Error detection, not security

CRC and Fletcher/Adler sums catch accidental changes to data. They provide no protection against deliberate modification.

Advertisement
Advertisement