Search for a tool
Checksum

Tools to calculate a checksum, verify the integrity of text, files or messages, and detect errors with different algorithms.

Results

Checksum -

Tag(s) : Checksum

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Checksum' tool for free! Thank you!

Checksum

Check Digit Calculator

A check digit is a form of redundancy check used for error detection. dCode offers dedicated pages for the generic mathematical algorithms and formulas used to calculate a check digit and detect transcription errors:

⮞ Go to: Luhn Number Checksum

For specific check digit implementations, dCode has dedicated pages for common standards and encoding schemes:

⮞ Go to: ISBN Book Code — Barcode Generator — IBAN Number — CRC-32

The checksum can also be used to verify data integrity, often via hash functions available on dCode:

⮞ Go to: MD5 — SHA-1 — Hash Function

Answers to Questions (FAQ)

What is a checksum? (Definition)

A checksum is a value computed from a block of data (number, message, file) using a deterministic function. This value accompanies the data during storage or transmission to detect certain alterations, particularly accidental ones: a flipped bit, a misread digit, etc.

The principle is based on redundancy: adding to the data information computed from that same data.

Recomputing the checksum on arrival and comparing it with the received value makes it possible to detect certain errors.

What mathematical principle does a checksum rely on?

A checksum algorithm transforms data into a value called a checksum according to a deterministic rule.

The methods used vary depending on the algorithm. They can be based on modular arithmetic, XOR (exclusive OR), or even polynomial algebra.

How does the parity bit, the ancestor of checksums, work?

The parity bit is one of the simplest forms of error checking: applying XOR to all bits of a message makes it possible to determine an additional bit to transmit.

For even parity, the added bit is chosen so that the total number of bits set to 1 is even. For odd parity, it is chosen so that this number is odd.

Example: 1010101 has 4 bits set to 1, so its parity is even

Any modification affecting an odd number of bits flips the parity and is therefore detected. In contrast, a modification affecting an even number of bits can remain invisible, for example when two bits are flipped.

This mechanism illustrates the fundamental trade-off of error-detecting codes: adding very little redundancy makes it possible to detect some errors, but not all.

What are common checksum algorithms?

— The parity bit (1 bit) is used to detect certain errors in binary data.

— The Luhn formula (1 check digit) is used in particular for certain bank card numbers, SIREN/SIRET numbers and IMEIs. It is mainly used to detect common input or transmission errors.

— The Internet checksum (16 bits) is used in particular by IPv4, TCP and UDP. It is based on one's complement addition.

— Fletcher checksums use cumulative modular additions that take into account the position of the data.

— CRC-32 based on the polynomial used by IEEE 802.3 is notably used for error detection in Ethernet and in several file formats, including PNG and ZIP.

— CRC-32C, also called Castagnoli, uses a different polynomial and is notably used by iSCSI and in several modern systems and protocols.

— Adler-32, used in particular by zlib, is fast to compute but has less favorable detection properties than some CRCs, particularly for certain small data.

— CRC-8, CRC-16 and CRC-64 exist in many variants adapted to different protocols and formats.

How to quantify the risk of collision between two contents?

A collision occurs when two different contents produce the same check value.

For an N-bit function, the probability that a random modification produces a given value is approximately 1/(2^N).

For a deliberate collision search in an ideal N-bit hash function, the birthday paradox reduces the generic complexity to about 2^(N/2).

A classic checksum is therefore not designed to resist an adversary actively searching for a collision. Cryptographic hash functions are designed to make such searches computationally difficult.

What is the difference between detecting an error and correcting it?

A checksum belongs primarily to error detection mechanisms: when corruption is detected, the system can request a retransmission or reread the data from another medium.

Error-correcting codes add more redundancy to allow reconstruction of damaged data without retransmission. Hamming codes can correct certain binary errors, Reed-Solomon codes are notably used in QR codes and some optical media, while LDPC codes are used in many modern communication systems.

The two approaches can be combined: a system can use an error-correcting code to repair certain errors and a checksum to detect residual corruption.

What is a hash function, and how does it differ from a checksum?

A hash function transforms variable-length data into a fixed-size value designed to resist intentional collisions (unlike checksums). To achieve this, hashing uses the avalanche effect, where a small change in the input causes a large change in the output.

How to turn a simple integrity check into an authenticity guarantee?

A checksum published alongside the data does not protect against an attacker capable of modifying both the data and the checksum. To achieve authentication, secret information or a private key must be involved.

A first solution is HMAC (Hash-based Message Authentication Code), which combines a cryptographic hash function and a shared secret key. Only a holder of the key can normally produce a valid HMAC. HMAC thus provides message integrity and authentication, but not confidentiality.

A second solution is digital signature, for example with RSA, ECDSA or EdDSA. The sender signs with a private key and the recipient verifies with the corresponding public key. This approach is notably used to authenticate software, updates or digital documents.

To also obtain confidentiality, encryption is required. Authenticated encryption modes (AEAD) combine encryption and authentication to provide both confidentiality and data integrity.

Source code

dCode retains ownership of the "Checksum" source code. Any algorithm for the "Checksum" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Checksum" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Checksum" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Checksum" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).

Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).

To cite dCode.fr on another website, use the link: https://www.dcode.fr/checksum

In a scientific article or book, the recommended bibliographic citation is: Checksum on dCode.fr [online website], retrieved on 2026-11-12, https://www.dcode.fr/checksum

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Checksum' tool for free! Thank you!


https://www.dcode.fr/checksum
© 2026 dCode — The ultimate collection of tools for games, math, and puzzles.
â–˛  
Feedback