Plain 8-bit sum
S = Σb mod 256. Sent as-is by simple sensors and serial protocols.
8-bit checksum of a byte list: sum mod 256, two's complement checksum, carry and overflow.
Enter your values below to get started.
Paste an Intel HEX line without the colon to check its checksum in Verify mode.
Decimal mode accepts signed bytes from −128 to 127; −1 is stored as 255 (0xFF).
ASCII text sums the character codes: A = 65 = 0x41.
Open the Table tab to see CF and V for every single addition.
An 8 bit sum calculator adds a list of bytes and keeps only the lowest 8 bits of the total (the sum mod 256), the value used for simple checksums. Enter bytes in hex, decimal or as ASCII text to get the 8-bit sum, the two's complement checksum used by Intel HEX files, the one's complement, the carry (CF) and signed overflow (V) flags, and a byte-by-byte running sum, or switch to Verify to test a record that ends with its checksum.
An 8 bit sum is the total of a list of bytes reduced modulo 256, so the result always fits in 1 byte (0 to 255, or 0x00 to 0xFF). The bytes of "Hello" (72, 101, 108, 108, 111) add to 500, and 500 mod 256 = 244 = 0xF4.
An 8-bit register in a microcontroller such as the Intel 8051 or the Atmel AVR computes this sum for free: every carry out of bit 7 is dropped. That is why the 8-bit sum is the oldest and cheapest checksum, used in Intel HEX files, Motorola S-records and many serial protocols.
The 8 bit sum calculator reads each byte, adds it to an 8-bit accumulator, records the carry and overflow flags of every addition, and then derives the one's and two's complement checksums from the final sum. The full sum is kept as well, so the number of wraparounds equals ⌊total ÷ 256⌋.
Hex 00–FF, decimal 0–255 (or −128 to 127), or ASCII characters with codes up to 255.
Running sum = (running sum + byte) mod 256, with CF = 1 when the add passes 255.
Each byte is read a 2nd time as a signed value (−128 to 127); V = 1 when the signed sum leaves that range.
One's complement = 255 − S; two's complement = (256 − S) mod 256.
There are 3 formulas behind an 8-bit checksum: the sum S = Σb mod 256, the one's complement 255 − S, and the two's complement (256 − S) mod 256. The two's complement checksum has a useful property: the data bytes plus the checksum always sum to 0x00.
For "Hello", S = 0xF4, so C1 = 0x0B and C2 = 0x0C. Check: 0xF4 + 0x0C = 0x100, whose low byte is 0x00.
There are 4 common types of 8-bit checks: the plain 8-bit sum, the two's complement checksum, the XOR longitudinal redundancy check (LRC) and the 8-bit cyclic redundancy check (CRC-8). The 2 sum-based checks catch any single-bit error but miss swapped bytes; CRC-8 catches both.
S = Σb mod 256. Sent as-is by simple sensors and serial protocols.
(256 − S) mod 256. Intel HEX and many bootloaders use it; the receiver checks that all bytes sum to 0x00.
All bytes combined with exclusive OR. Each bit column has even parity; used in Modbus ASCII as an LRC variant and in NMEA 0183 sentences.
Polynomial division (x8 + x2 + x + 1 for poly 0x07). Detects byte swaps and burst errors up to 8 bits; used on SMBus as the Packet Error Code (PEC).
To calculate an 8 bit sum by hand, convert each byte to decimal, add them, divide the total by 256 and keep the remainder; the two's complement checksum is 256 minus that remainder. Here is "Hello":
Every 8-bit addition sets 4 status flags: carry (CF), overflow (V or OF), zero (ZF) and sign (SF). CF = 1 when the unsigned total passes 255; V = 1 when 2 signed bytes with the same sign give a result with the other sign.
0x64 + 0x32 (100 + 50 = 150) sets V = 1 and CF = 0: the unsigned result is fine, but 150 is outside the signed range −128 to 127. 0xC8 + 0x64 (200 + 100) sets CF = 1 and V = 0: the signed sum −56 + 100 = 44 is correct.
To use the 8 bit sum calculator, paste the bytes, pick hex, decimal or ASCII text, choose Compute or Verify, and press Calculate. The result card shows the 8-bit sum with both checksums and the flags; the tabs show the steps, a running-sum chart and a byte table.
From a hex dump, a protocol spec or a text string.
Hex (00–FF), Decimal (0–255) or ASCII text.
Compute returns the checksum; Verify treats the last byte as the checksum and checks that everything sums to 0x00.
CF and V for the last add, plus totals across all additions.
8-bit sums protect small blocks of data where a full CRC costs too much. There are 5 common uses:
Byte lists with their 8-bit sum and two's complement checksum.
| Bytes | 8-bit sum | Two's complement checksum | Calculator |
|---|---|---|---|
| 48 65 6C 6C 6F ("Hello") | 0xF4 (244) | 0x0C | |
| 01 02 03 | 0x06 (6) | 0xFA | |
| FF FF | 0xFE (254), CF = 1 | 0x02 | |
| 03 00 30 00 02 33 7A | 0xE2 (226) | 0x1E | |
| 200, 100 (decimal) | 0x2C (44), CF = 1 | 0xD4 | |
| 80 80 | 0x00 (0), CF = 1, V = 1 | 0x00 | |
| Verify 03 00 30 00 02 33 7A 1E | 0x00 → valid | 0x1E ✓ |
Work each one out, then reveal the answer or check it in the calculator.
Find the 8-bit sum and two's complement checksum of 12 34 56 (hex).
Find the 8-bit checksum of the ASCII text "ABC".
Add the decimal bytes 250 and 10 in an 8-bit register. What is left, and is CF set?
Add 7F and 01. Which flag is set?
Is the record 10 20 30 A0 (last byte = checksum) valid?
Find the checksum of the Intel HEX record bytes 10 01 00 00 21 46 01 36 01 21 47 01 36 00 7E FE 09 D2 19 01.
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
An 8 bit sum calculator is an online tool that adds a list of bytes modulo 256 and returns the 1-byte result. This 8 bit sum calculator gives the two's and one's complement checksums, the carry and overflow flags, and can verify a record that ends with its checksum.
Add all the bytes, keep the remainder after dividing by 256, then subtract that remainder from 256 for the two's complement checksum. For "Hello": 500 mod 256 = 244, and 256 − 244 = 12 = 0x0C.
The one's complement checksum is 255 − S (all bits inverted), and the two's complement checksum is 256 − S (inverted plus 1). Data plus a two's complement checksum sums to 0x00; data plus a one's complement checksum sums to 0xFF.
Yes, the 8 bit sum calculator verifies Intel HEX lines. Pick Verify, paste the bytes after the colon, and the calculator checks that all bytes including the checksum sum to 0x00.
255 + 1 in 8 bits is 0 with the carry flag set. 0xFF + 0x01 = 0x100, and an 8-bit register keeps only the low byte 0x00.
An 8-bit sum sets the overflow flag when 2 bytes with the same sign bit produce a result with the opposite sign bit. 0x7F + 0x01 (127 + 1) gives 0x80, which reads as −128, so V = 1.
No, an 8-bit checksum cannot detect every error. It catches all single-bit errors but misses swapped bytes and any set of changes that cancel out modulo 256; about 1 in 256 random corruptions passes unnoticed.
No, an 8-bit sum is not the same as CRC-8. The sum adds bytes; CRC-8 divides the message by a polynomial such as 0x07, which detects reordered bytes and burst errors.
An 8 bit sum adds bytes and keeps the total modulo 256, and the 8 bit sum calculator turns that sum into the one's and two's complement checksums with the carry and overflow flags. Use Compute to build a checksum for a record, Verify to test a line from an Intel HEX file, and the flag rows to debug 8-bit arithmetic on a microcontroller.
Not sure which 8-bit check your format uses? Answer the questions below.