Skip to content
OfflineWebTools
Tools

Network Packet Format Converter

Paste network packet data in any of five formats and convert it to any other. Supports Scapy Python code, Scapy string representation, hex bytes, Python raw bytes literals, and tcpdump hex dumps. Layers like Ethernet, VLAN, IPv4, IPv6, TCP, UDP, ICMP, ARP, VXLAN, MPLS, and GRE are detected and reconstructed. Multiple packets and file upload are supported. Everything runs offline in your browser.

Status: beta

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.

Related search terms

Related terms