Input
Scapy Python: Code
How it works
Convert network packets between five formats. Paste data in any supported input format and get the output in your chosen format.
Input formats:
- Tcpdump — output from
tcpdump -x,-xx,-X, or-XX - Hex — plain hex bytes (space-separated or continuous)
- Scapy String — Scapy
repr()output like<Ether dst=... |<IP ...>> - Scapy Code — Python Scapy constructors like
Ether(dst=...) / IP(...) / TCP(...) - Raw Bytes — Python
b'...'byte literals
Output formats: Scapy Python Code, Scapy Python String, Hex, Raw Bytes (Python literal), and Tcpdump hex dump.
Layers like Ethernet, VLAN, IPv4, IPv6, TCP, UDP, ICMP, ARP, VXLAN, MPLS, and GRE are detected and reconstructed. Multiple packets are supported. File upload is supported (.txt, .log, .py).
Everything runs in your browser. Nothing is uploaded.