Skip to content

Packet Decoder: Hex to Header Fields

Paste bytes from tcpdump -X, xxd or Wireshark, or pick a frame from a capture, and see each header field with its exact byte and bit position highlighted.

100% Free • No Signup • Zero Uploads (Runs Locally)

100% Local Browser Execution • Zero Server Uploads • Air-Gap Safe

100% Local Tool Execution • Tool Inputs Never Leave Your Browser DataView binary dissector

100% Client-Side • Zero Server Logs

Load a capture and pick a frame, or paste a hex dump to dissect it byte by byte.

CtrlEnter to copy output

Wrong result, broken layout or an idea? Tell us about this tool.

Packet Decoder: Hex to Header Fields PCAP Packet Dissection and HAR Sanitizer & Security Architecture Banner

This HAR file analyzer and PCAP analyzer opens network captures, browser HAR logs and Windows event logs directly in your browser. Drop a .pcap, .pcapng, .har or .evtx file and you get a packet table, protocol statistics, a byte-level decoder, tcpdump output, a HAR waterfall with a one-click secret sanitizer, and rule-based security triage. Captures and HAR files routinely contain session cookies, bearer tokens and internal hostnames, so every byte is parsed locally with DataView and the File API. Nothing is uploaded.

Which hex formats can the packet decoder read?

It reads tcpdump -X and -xx dumps, xxd, hexdump -C, Wireshark "Copy as Hex Dump" and bare hex strings with or without spaces or 0x prefixes.

Offsets and ASCII columns are detected and ignored. Dumps that start with 45 or 6x are treated as raw IP (what tcpdump -X prints); anything else is decoded as an Ethernet frame. As a network packet decoder, it verifies IPv4, TCP and UDP checksums, so you can tell a corrupted sample from a genuine packet.

What does the byte dissector show?

A tree of layers with every field, its decoded value and its offset; hovering a field highlights those bytes, down to individual flag bits.

TCP flags, IPv4 flags and fragment offsets, IPv6 traffic class and flow label are shown with bit ranges. DNS queries and answers, TLS ClientHello versions and server name (SNI), and HTTP request lines and Authorization headers are decoded from the payload. It is a precise pcap decoder for teaching, writing detection rules or checking a crafted packet.

Also searched as: network packet decoder, pcap decoder, pcap decode.

How to Open PCAP Files Without Wireshark

Drop the .pcap or .pcapng file onto this page: it is decoded in the browser tab, so you get a packet list, filters, a hex dissector and tcpdump output without installing Wireshark or uploading the capture.

The reader understands classic libpcap files in both byte orders with microsecond or nanosecond timestamps, and PCAPNG files with multiple interfaces, if_tsresol timestamp resolutions and Enhanced, Simple and legacy packet blocks. Ethernet, 802.1Q VLAN, Linux cooked capture (SLL and SLL2), BSD loopback and raw IP link types are decoded.

Our tcpdump view is checked against tcpdump 4.99: on the bundled sample capture the output is byte-identical to tcpdump -nn -vv -X -r, including relative TCP sequence numbers and the hex and ASCII dump. That makes this page a quick pcap reader online for laptops where you cannot install packet tools, and a fast way to share readable evidence in a ticket.

  • Packets tab: display filter (dns, port 443, host 10.0.0.5, !arp), sortable columns, select a row to decode it.
  • Analysis tab: protocol hierarchy, top talkers, conversations, port matrix and DNS names queried.
  • Byte decoder tab: field tree with byte and bit offsets; hover a field to highlight its bytes. Also accepts pasted hex dumps.

How it works: PCAP & HAR Analyzer

Packet Decoder: Hex to Header Fields PCAP Packet Dissection and HAR Sanitizer & Security Architecture Diagram. Architecture of the client-side PCAP and HAR analyzer: a dropped file is identified by its magic bytes, then libpcap/PCAPNG frames flow through the Ethernet, IPv4/IPv6, TCP/UDP and DNS/TLS/HTTP dissector into the packet table, statistics, tcpdump formatter and triage rules, while HAR JSON flows into the waterfall and secret sanitizer, all inside the browser tab.
Architecture of the client-side PCAP and HAR analyzer: a dropped file is identified by its magic bytes, then libpcap/PCAPNG frames flow through the Ethernet, IPv4/IPv6, TCP/UDP and DNS/TLS/HTTP dissector into the packet table, statistics, tcpdump formatter and triage rules, while HAR JSON flows into the waterfall and secret sanitizer, all inside the browser tab.

What is a .pcap file?

A .pcap file is a packet capture: a 24-byte global header followed by one record per packet, each holding a timestamp, the captured length, the original length and the raw frame bytes.

tcpdump, Wireshark, dumpcap, Zeek and most IDS sensors write this libpcap format. The magic number 0xa1b2c3d4 marks microsecond timestamps and 0xa1b23c4d marks nanoseconds; the byte order of the magic tells readers whether the file is little- or big-endian. Captures written with a small snaplen keep only the first bytes of each frame, which the packet list shows as captured length versus length on the wire.

What is the difference between PCAP and PCAPNG?

PCAPNG is the newer block-based format: it can hold several interfaces, per-interface timestamp resolution, comments and name-resolution data, while classic PCAP stores one link type and a flat list of packets.

Wireshark saves .pcapng by default. A pcapng file is a sequence of blocks: a Section Header Block, one Interface Description Block per capture interface, then Enhanced Packet Blocks. This analyzer reads the packets and reports metadata blocks it skips, such as Name Resolution and Interface Statistics blocks, so you know nothing was silently dropped.

How do you analyze a HAR file?

Open it in the HAR waterfall: each request shows its status, size and DNS, connect, TLS, wait and download timings, so slow, failing and insecure requests stand out at a glance.

A HAR (HTTP Archive) file is JSON exported from browser developer tools. The waterfall sorts requests by start time and colours each timing phase; the summary counts requests, transferred bytes, total page time, HTTP errors and plain-HTTP requests. Support teams ask for HAR files to debug login loops, CORS errors and slow APIs, which is exactly why they contain live session data.

Sanitize & Redact HAR Files

Before you send a HAR file to a vendor, remove cookies, Authorization headers, API keys, tokens in URLs, passwords in request bodies and JWTs; the sanitizer here does this in one click and downloads a cleaned copy.

The secret inventory lists every sensitive value it finds with a masked preview, so you can see what would leak. The sanitizer replaces values with [REDACTED] while keeping the HAR structure valid, which means the vendor can still load it in their own tools. Turn on "Drop all response bodies" when responses contain customer data.

Sanitizing is not a reason to keep using the session: if a HAR with live cookies already left your machine, sign out everywhere or revoke the tokens.

  • Headers: Cookie, Set-Cookie, Authorization, Proxy-Authorization, X-API-Key, X-Auth-Token, CSRF and AWS session-token headers, and any header named like token, secret or session.
  • URLs: access_token, id_token, code, key, signature, SAML responses and OAuth fragments.
  • Bodies: passwords and tokens in JSON and form posts, plus any eyJ… JWT anywhere in the file.

How do you capture a HAR file in Chrome or Firefox?

Open developer tools (F12), select the Network tab, tick "Preserve log", reproduce the problem, then right-click any request and choose "Save all as HAR with content" in Chrome or "Save All As HAR" in Firefox.

In Chrome and Edge, recent versions export a sanitized HAR by default and hide the "with sensitive data" option behind a setting; a sanitized export still leaks request bodies and URLs, so run it through the sanitizer anyway. Safari uses the Export button in the Network tab of Web Inspector.

What is an EVTX file?

An .evtx file is a Windows event log: a file header followed by 64 KB chunks of records stored as Binary XML, which this viewer decodes into readable events and triages.

The EVTX tab reads binary .evtx files, Event Viewer "Save as XML" exports and JSON from Get-WinEvent | ConvertTo-Json or Winlogbeat. It flags password spraying (event ID 4625 bursts), a successful logon after failures (4624), suspicious command lines such as encoded PowerShell or certutil -urlcache (4688), services installed from shell commands or user-writable folders (7045) and cleared audit logs (1102).

How does the automated PCAP triage work?

Triage runs fixed, documented heuristics over every packet: SYN port scans, DNS tunneling and beaconing, cleartext HTTP credentials, TLS 1.0/1.1 handshakes, ARP spoofing and plaintext service sessions.

People often search for an AI PCAP analyzer; this one deliberately uses no machine-learning model. Each finding names the rule, the evidence and the frame numbers, links to the matching MITRE ATT&CK technique and jumps straight to the packet in the byte decoder, so an analyst can verify it in seconds. Heuristics give leads, not verdicts: confirm with your EDR and logs before acting.

Wireshark Browser Alternative

Use this page for quick, private triage of a capture on any machine, and Wireshark when you need deep dissectors for hundreds of protocols, stream reassembly or live capture.

Wireshark remains the reference packet capture tool. This browser pcap tool covers the first fifteen minutes of most investigations: who talked to whom, which ports and names appeared, whether credentials crossed the wire in clear text, and a tcpdump transcript you can paste into a report. It works on locked-down laptops, jump hosts and offline analysis machines.

Capture file formats and magic numbers

How the analyzer recognises each file before parsing it; the extension is ignored.
Signature (first bytes)FormatOpens in
d4 c3 b2 a1libpcap, little-endian, microsecondsPackets
a1 b2 c3 d4libpcap, big-endian, microsecondsPackets
4d 3c b2 a1 / a1 b2 3c 4dlibpcap, nanosecond timestampsPackets
0a 0d 0d 0aPCAPNG Section Header BlockPackets
45 6c 66 46 69 6c 65 00Windows EVTX ("ElfFile")EVTX
{"log":{"entries":[…HAR 1.2 (JSON)HAR waterfall
<Events><Event…Exported Windows event XMLEVTX

How the analyzer recognises each file before parsing it; the extension is ignored.

Command-line examples

Capture 60 seconds of traffic to a file

sudo tcpdump -i eth0 -s 0 -w capture.pcap -G 60 -W 1

Open capture.pcap here. -s 0 keeps whole frames.

Print a capture the way the tcpdump tab does

TZ=UTC tcpdump -nn -vv -X -r capture.pcap

Split a large capture into 500,000-packet files

editcap -c 500000 big.pcapng part.pcapng

Export the Security log as XML (Windows)

wevtutil qe Security /f:xml /c:5000 /rd:true > security.xml

Export events as JSON (PowerShell)

Get-WinEvent -LogName Security -MaxEvents 5000 | ConvertTo-Json -Depth 4 > security.json

Frequently asked questions

Open the capture, select a frame and use the byte decoder: each field highlights its bytes in the hex view, with offsets you can use in BPF or Snort rules.

Related Engineering Guides