Skip to content
OfflineWebTools
Tools

Tcpdump to Scapy Converter

Paste output from tcpdump (or plain hex bytes) and convert each packet into Scapy Python code that rebuilds it layer by layer, a clean hex string, or a Python bytes literal. Layers like Ethernet, VLAN, IPv4, IPv6, TCP, UDP, ICMP, ARP, VXLAN, MPLS, and GRE are detected and reconstructed so bytes(pkt) matches the original. Everything runs offline in your browser.

Status: beta

tcpdump input

Scapy Python

How it works

Paste output from tcpdump -x, -xx, -X, or -XX, or plain hex bytes. The tool strips offsets and the ASCII column and decodes each packet.

Scapy Python reconstructs each layer (Ether, IP, IPv6, TCP, UDP, ICMP, ARP, VXLAN, MPLS, GRE) and attaches any leftover payload as Raw(load=...) so bytes(pkt) matches the original.

Hex emits a continuous lowercase hex string per packet. Raw bytes (Python) emits a b'...' literal with printable ASCII kept as characters.

Everything runs in your browser. Nothing is uploaded.

Related search terms

Related terms