Skip to main content
KalkuNet

IPv4, IPv6, TCP & UDP Packet Header Inspector — Decode Hex and Check Checksums

Explore RFC packet header field offsets, bit widths, flags and byte boundaries interactively.

Runs in your browserNetwork · Ports, Protocols & Infrastructure Utilities

Ethernet → IPv4 → TCP · 74 byte

LayerFieldOffsetBitsHexValue
EthernetDestination MAC04802000000000202:00:00:00:00:02
EthernetSource MAC64802000000000102:00:00:00:00:01
EthernetEtherType121608000x0800 (IPv4)
IPv4Version144454
IPv4IHL14.44455 (20 byte)
IPv4DSCP156000
IPv4ECN15.62000
IPv4Total Length1616003c60
IPv4Identification18161c460x1c46
IPv4Flags20340DF
IPv4Fragment Offset20.31340000 (0 byte)
IPv4TTL2284064
IPv4Protocol238066 (TCP)
IPv4Header Checksum241632240x3224correct
IPv4Source Address2632c000020a192.0.2.10
IPv4Destination Address3032c6336414198.51.100.20
TCPSource Port3416c93a51514
TCPDestination Port361601bb443
TCPSequence Number3832ea27ed283928485160
TCPAcknowledgment Number4232000000000
TCPData Offset464a010 (40 byte)
TCPFlags46.79a002SYN
TCPWindow4816faf064240
TCPChecksum50165a890x5a89correct
TCPUrgent Pointer521600000
TCPOptions54160020405b40402080a…MSS 1460, SACK permitted, TS 2867312901 0, NOP, WScale 7
Version 4
IHL 4
DSCP 6
ECN 2
Total Length 16
Identification 16
Flags 3
Fragment Offset 13
TTL 8
Protocol 8
Header Checksum 16
Source Address 32
Destination Address 32

Each layout row is 32 bits (4 bytes). IPv4, TCP, UDP, ICMP and ICMPv6 checksums are recomputed with the RFC 1071 algorithm, including the pseudo-header for TCP, UDP and ICMPv6.

When to use the IPv4, IPv6, TCP & UDP Header Bit/Byte Inspector

  • Paste hex from tcpdump or Wireshark

    tcpdump -xx output with offset columns, a Wireshark hex stream or plain hex is broken down into every field: Ethernet with 802.1Q VLAN tags, IPv4 or IPv6 with extension headers, then TCP, UDP, ICMP or ICMPv6.

  • Checksums recomputed

    IPv4, TCP, UDP, ICMP and ICMPv6 checksums are recomputed with the RFC 1071 algorithm, pseudo-header included, and the correct value is shown when the packet's checksum is wrong.

  • Offsets and bit widths

    Every field shows its byte offset, bit position, width and raw hex, so it is easy to match against the RFC diagrams or write BPF filters such as tcp[13] & 2.

  • TCP options decoded

    MSS, window scale, SACK and timestamp options are decoded, helping find MTU problems, router MSS clamping or windows that are too small.

Frequently asked questions

How do I get hex from tcpdump?

Run tcpdump -xx -c 1 and copy the lines starting with 0x0000:. The -xx option includes the Ethernet header, while -x starts at IP.

And from Wireshark?

Right-click the packet, choose Copy, then ...as Hex Stream, and paste it here.

Why is auto-detect wrong?

Truncated data can be ambiguous. Choose Starts at Ethernet or Starts at IP to set the starting point by hand.

Is the application payload decoded?

No. The tool stops at the layer-4 header and shows how many bytes of data follow.

Is my packet sent to a server?

No. Decoding runs in your browser, so the addresses and contents of your capture stay private.

Learn more