Toolstia / Fletcher checksum calculator
Fletcher checksum calculator
The Fletcher checksum is a simple error detecting code used in network protocols and embedded systems. Enter text or hex bytes and get Fletcher-16, Fletcher-32 and Fletcher-64 at once.
Fletcher-16 adds up bytes, Fletcher-32 uses 16 bit words and Fletcher-64 uses 32 bit words, all with two running sums. Words are read in little endian order and short data is padded with zero bytes. The text abcde gives C8F0, F04FC729 and C8C6C527646362C6.
How it works
- Choose whether your input is text or hex bytes.
- Type or paste the data.
- Read the three checksums and copy the one you need.
How it works
Two running sums are kept. The first adds up the data words and the second adds up the first sum after every word, which makes the result sensitive to the order of the bytes.
Word sizes
Fletcher-16 reads bytes, Fletcher-32 reads 16 bit words and Fletcher-64 reads 32 bit words. Words are little endian and short data is padded with zero bytes.
Check values
The text abcde gives C8F0 for Fletcher-16, F04FC729 for Fletcher-32 and C8C6C527646362C6 for Fletcher-64.
Fletcher or Adler
Adler-32 is a close relative that uses a prime modulus. Fletcher uses 255, 65535 and 4294967295.
Questions
Is the input uploaded?
Everything happens in your browser, and nothing you enter is sent anywhere.
Is Fletcher the same as CRC?
No. A CRC detects more kinds of errors, but Fletcher is cheaper to compute on simple processors.
Why does hex input need an even number of digits?
Each byte is two hex digits, so a missing digit would change the data.