Tested tool guide
Tested browser tools
Checked August 16, 2026
What IP Header Decoder does, with a checked example
Turn an IP header written as hexadecimal bytes into readable IPv4 or IPv6 fields. The decoder separates packed bits and multi-byte values to expose addresses, lengths, fragmentation information, TTL or Hop Limit, and the protocol identifier. The important surprise is that a Protocol or Next Header value describes what the header says should follow. It does not prove that the corresponding TCP, UDP, extension, or other header is present in the pasted data.
Worked example
A concrete input and expected output from the current implementation.
Input
45 00 00 14 12 34 40 00 40 06 3c 79 c0 00 02 01 c6 33 64 02
->
Expected output
Version: 4
Header length: 20 bytes
DSCP: 0
ECN: 0
Total length: 20 bytes
Identification: 4660 (0x1234)
Flags: DF set, MF clear
Fragment offset: 0
TTL: 64
Protocol: 6 (TCP)
Header checksum: 0x3c79
Source: 192.0.2.1
Destination: 198.51.100.2
The leading 0x45 contains version 4 and an Internet Header Length of five 32-bit words, or 20 bytes. The total length is also 20, while 0x40 gives TTL 64, 0x06 identifies TCP, and the final eight address bytes convert to the two dotted-decimal addresses shown. The IPv4 header checksum reconciles to 0xffff when included in the one's-complement sum.