How to use this calculator
Compute the 16-bit one’s-complement Internet checksum for a sequence of bytes supplied in hexadecimal.
- Enter Hexadecimal byte sequence. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Internet checksum from hexadecimal bytes explained
The IPv4-style Internet checksum adds 16-bit words in network byte order, folds any end-around carry back into the sum, then complements every bit. If the byte sequence has odd length, the final byte occupies the high-order half of a zero-padded word.
Inputs and units
- Hexadecimal byte sequence
- Whole bytes in network order, spaces are allowed.
Formula and method
Sum 16-bit network-order words with end-around carry, then take the one’s complement. Pad an odd final byte on the right with zero.
A worked example
Hexadecimal byte sequence = 0001f203f4f5f6f7.
- 16-bit Internet checksum: 0x220D
The inputs above are an illustrative scenario. Display values are rounded after the calculation.
Assumptions and special cases
Only the entered bytes are included. Protocol pseudoheaders, omitted checksum fields, and packet coverage must be assembled correctly by the user.
CRC-16 uses a polynomial remainder. Internet checksum uses one’s-complement addition and is a different algorithm.
Frequently asked questions
Do I include the existing checksum field?
Set it to zero when generating a new checksum for the covered data.
How is an odd last byte treated?
It is the high byte of a word whose low byte is zero.
Does this build a UDP pseudoheader?
No. Supply all required covered bytes yourself.
How do I use the Internet checksum from hexadecimal bytes calculator?
Enter Hexadecimal byte sequence. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Internet checksum from hexadecimal bytes?
Hexadecimal byte sequence = 0001f203f4f5f6f7. 16-bit Internet checksum: 0x220D The inputs above are an illustrative scenario. Display values are rounded after the calculation.
Method reference: RFC 1071 Internet checksum (checked October 15, 2026).
See our calculation methodology.