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.
Ethernet → IPv4 → TCP · 74 byte
| Layer | Field | Offset | Bits | Hex | Value |
|---|---|---|---|---|---|
| Ethernet | Destination MAC | 0 | 48 | 020000000002 | 02:00:00:00:00:02 |
| Ethernet | Source MAC | 6 | 48 | 020000000001 | 02:00:00:00:00:01 |
| Ethernet | EtherType | 12 | 16 | 0800 | 0x0800 (IPv4) |
| IPv4 | Version | 14 | 4 | 45 | 4 |
| IPv4 | IHL | 14.4 | 4 | 45 | 5 (20 byte) |
| IPv4 | DSCP | 15 | 6 | 00 | 0 |
| IPv4 | ECN | 15.6 | 2 | 00 | 0 |
| IPv4 | Total Length | 16 | 16 | 003c | 60 |
| IPv4 | Identification | 18 | 16 | 1c46 | 0x1c46 |
| IPv4 | Flags | 20 | 3 | 40 | DF |
| IPv4 | Fragment Offset | 20.3 | 13 | 4000 | 0 (0 byte) |
| IPv4 | TTL | 22 | 8 | 40 | 64 |
| IPv4 | Protocol | 23 | 8 | 06 | 6 (TCP) |
| IPv4 | Header Checksum | 24 | 16 | 3224 | 0x3224correct |
| IPv4 | Source Address | 26 | 32 | c000020a | 192.0.2.10 |
| IPv4 | Destination Address | 30 | 32 | c6336414 | 198.51.100.20 |
| TCP | Source Port | 34 | 16 | c93a | 51514 |
| TCP | Destination Port | 36 | 16 | 01bb | 443 |
| TCP | Sequence Number | 38 | 32 | ea27ed28 | 3928485160 |
| TCP | Acknowledgment Number | 42 | 32 | 00000000 | 0 |
| TCP | Data Offset | 46 | 4 | a0 | 10 (40 byte) |
| TCP | Flags | 46.7 | 9 | a002 | SYN |
| TCP | Window | 48 | 16 | faf0 | 64240 |
| TCP | Checksum | 50 | 16 | 5a89 | 0x5a89correct |
| TCP | Urgent Pointer | 52 | 16 | 0000 | 0 |
| TCP | Options | 54 | 160 | 020405b40402080a… | MSS 1460, SACK permitted, TS 2867312901 0, NOP, WScale 7 |
Version 4IHL 4DSCP 6ECN 2Total Length 16Identification 16Flags 3Fragment Offset 13TTL 8Protocol 8Header Checksum 16Source Address 32Destination Address 32Each 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.
Similar tools
- Well-Known TCP/UDP Port Number & Service LookupSearch standard ports for MikroTik, SSH, CCTV RTSP, Proxmox, WireGuard & DB.
- HTTP Status Code (100–599) Meaning LookupSearch every HTTP response status code (200, 301, 403, 429, 502, 504, 530).
- File Extension ⇄ Content-Type MIME LookupLook up exact MIME Content-Type headers for web, video, fonts & JSON/YAML.
- Firewall TCP/UDP Port Range CompressorCollapse comma-separated TCP/UDP port numbers into compact contiguous firewall ranges.