PCAP File Inspector

Drop a .pcap or .pcapng capture and read packets, bytes, duration, the protocol breakdown, top talkers, DNS queries and unanswered TCP SYNs, parsed locally.

The interactive tool loads here when JavaScript runs.

About this tool

What is the PCAP File Inspector?

Drop a .pcap or .pcapng capture and read the five-minute facts: how many packets over how long, the protocol breakdown from Ethernet through IPv4, IPv6 and ARP down to TCP, UDP and ICMP, which well-known-port services the traffic touched, the top conversations by bytes, how many DNS queries went out, and how many TCP SYNs were never answered. The file is parsed in your tab and never uploaded.

Those are triage answers, and triage is the honest scope. Wireshark owns everything deeper: display filters, TCP stream reassembly, the dissectors that decode a thousand protocols, decryption with session keys. What a capture rarely gets is the first look, because opening one means a machine with Wireshark installed and a decision to spend time on it. This page is that first look: whether the capture holds what you hoped, which hosts matter, and whether anything smells wrong.

The privacy point is not a footnote here. A capture records every byte a machine sent and received: passwords in plain-text protocols, cookies, session tokens, internal hostnames, the full list of services something talked to. Uploading one to a converter site is handing all of that away. Parsing locally is the only acceptable way to do this on the web, and it is how this page works.

  • Classic pcap in both byte orders and both precisions (0xA1B2C3D4 microseconds, 0xA1B23C4D nanoseconds)
  • pcapng with per-interface timestamp resolution from the if_tsresol option
  • Protocol breakdown with packets and bytes: Ethernet, VLAN, IPv4, IPv6, ARP, TCP, UDP, ICMP
  • Well-known-port service counts and the top ten conversations by bytes, bidirectionally merged
  • DNS query count, unanswered TCP SYNs, IPv4 and IPv6 host counts, capture duration
  • Truncation detected and flagged instead of failing the whole file
  • Copyable text summary; parsing is local and the capture never leaves the browser
Read the guide: Five-Minute Triage for pcap Captures and Arrow Files

Updated

How to use the PCAP File Inspector

  1. Drop a .pcap or .pcapng file on the page, or click to choose one. Files from tcpdump, Wireshark, tshark and dumpcap all read the same way. Capture commands for Linux, macOS, Windows, Docker and Kubernetes are in the guide to capturing network packets (/blog/how-to-capture-network-packets).
  2. Or press Load a sample for a built-in 13-packet capture: a DNS lookup, an HTTPS exchange with a full handshake, a SYN nothing answers, an ARP request and an ICMP echo pair, on documentation-only addresses.
  3. Read the glance row first: format, packet count, captured traffic, duration. A 90-minute capture with 40 packets answers "did the repro even happen" by itself.
  4. Check the warnings. A truncation flag means the file was cut off mid-packet and every count is a floor; unanswered SYNs clustered on one port mean a dead service, a dropped firewall rule, or a scan.
  5. Scan the protocol and conversation tables for shape: one host pair carrying most of the bytes is the flow to open in Wireshark, and a capture that is all ARP and no IP usually means the capture filter or interface was wrong.

Worked examples

The sample capture, end to end

Input

The built-in sample: 13 packets over 4.0 seconds on RFC 5737 documentation addresses

Output

pcap · 13 packets · 4.0 KiB · 4.0s · Ethernet · 3 IPv4 hosts · 1 DNS query · 1 SYN never answered

The protocol table reads TCP 8 packets (3.7 KiB), ICMP 2 (180 B), UDP 2 (166 B), ARP 1 (42 B); the services table reads https 7, dns 2, http-alt 1. The top conversation is 192.0.2.10 and 198.51.100.7 over TCP with 3.7 KiB in 8 packets, which is the TLS-sized exchange dominating the bytes exactly as it would in a real capture.

The SYN nothing answered

Input

In the sample, packet 10: a SYN from 192.0.2.10:49201 to 198.51.100.7:8080

Output

1 TCP SYNs were never answered with a SYN-ACK

The inspector tracks each outgoing SYN and strikes it off when a SYN-ACK arrives on the reverse flow; the 8080 connection attempt never gets one, so it stays counted. One or two of these in a real capture are ordinary timeouts. Dozens toward one port are a dead service or a blocked rule, and dozens from one source across many ports are a scan.

A capture that was cut off

Input

Any file whose last record claims more bytes than remain, a copy interrupted or a disk filled

Output

The TRUNCATED flag, with every packet before the cut still counted

The classic pcap format has no end-of-file marker: the file simply stops. When a record header promises more bytes than the file has left, the inspector keeps everything parsed so far and raises the flag, so the counts are a floor rather than a silent lie about the whole capture.

pcap from tcpdump, pcapng from Wireshark, one drop target

Input

tcpdump -w writes classic pcap; Wireshark and dumpcap save pcapng by default

Output

The format chip reads pcap or pcapng; the counts mean the same thing in both

The first four bytes decide: 0xA1B2C3D4 or 0xA1B23C4D in either byte order is classic pcap, 0x0A0D0D0A is a pcapng Section Header Block. For pcapng, per-interface timestamp resolution from if_tsresol is honored, so a nanosecond-resolution capture shows the same duration it would in Wireshark.

Background and insight

Classic pcap is the format tcpdump -w writes, documented in the IETF draft draft-ietf-opsawg-pcap: a 24-octet file header opening with a magic number, 0xA1B2C3D4 for microsecond timestamps or 0xA1B23C4D for nanosecond ones, written in the capturing machine's native byte order, so a reader learns the endianness and the clock resolution from the first four bytes. Then come packet records, each a 16-octet header carrying the timestamp, the Captured Packet Length and the Original Packet Length, followed by the bytes. The two lengths differ when a snapshot length truncated packets at capture time.

pcapng, the format Wireshark saves by default, is a block container per draft-ietf-opsawg-pcapng. A Section Header Block (type 0x0A0D0D0A) opens the file and carries a byte-order magic of 0x1A2B3C4D; Interface Description Blocks declare each interface's link type and, through the if_tsresol option (code 9), its timestamp resolution, with 10^-6 assumed when the option is absent; Enhanced Packet Blocks hold the packets with a 64-bit timestamp split into two 32-bit words. Every block's total length is a multiple of 4, which is how a reader walks the file. This inspector reads both formats, both byte orders, both pcap precisions.

How a packet becomes a row in the tables: the link-layer header is decoded per the Tcpdump Group's LINKTYPE registry (1 is Ethernet, 113 is Linux cooked capture, 101 is raw IP), the EtherType picks IPv4, IPv6 or ARP, and the IP protocol number picks TCP, UDP or ICMP. Services are named from well-known destination or source ports in the IANA registry, 443 as https and 53 as dns, which is a label, not an inspection: bytes to port 443 are called https whether or not TLS is inside. A SYN counts as unanswered when no SYN-ACK ever comes back on the reverse flow, and a DNS query is a UDP packet to port 53 whose header has the QR bit clear.

Common use cases

  • Triaging the capture on an incident ticket

    The attachment opens in seconds without Wireshark installed: host counts, the protocol split and unanswered SYNs usually settle whether the capture supports the theory before anyone commits an hour to it.

  • Checking what a capture would leak before sharing it

    The host list and service breakdown show what the file exposes, internal addresses and all, which is worth knowing before attaching it to a vendor ticket.

  • Deciding whether a capture is worth opening at all

    A capture meant to hold a failing API call that shows zero packets to the API port answers the question immediately: wrong interface, wrong filter, or the repro never ran.

  • Spotting scans and dead services

    The unanswered-SYN counter condenses a tcp.flags.syn==1 filter session into one number: many toward one port is a down service, many from one source is a scan.

  • Sanity-checking a capture pipeline

    If the duration or packet count disagrees with what the collection job claims, the pipeline is dropping packets or rotating files wrongly, and the file's own header arithmetic is the evidence.

Tips and limitations

  • Captured and original lengths differ when a snapshot length was set (tcpdump -s). This page counts original lengths, so the traffic figure reflects what crossed the wire, not what the capture stored.
  • Service names are a port heuristic. Anything can run on 443, and plenty of malware does precisely because the label looks boring. Treat the services table as a map, and Wireshark's dissectors as the inspection.
  • The DNS counter reads UDP queries to port 53 with the QR bit clear. DNS over TCP, DoT (853) and DoH (inside https) are not counted as queries, so a low count on a modern network often means encrypted DNS, not no DNS.
  • Conversations are bidirectional: both directions of a flow merge into one row, sorted by bytes. The top row is almost always the flow worth following in Wireshark first.
  • Duration is last timestamp minus first. Captures merged from several files or taken across a clock step can show nonsense durations; the per-packet data is still fine.
  • Treat capture files like credentials: store them where you store secrets, and expire them. Plain-text protocols put passwords in them verbatim, and even pure-TLS captures map your internal network.

Sources and further reading

  1. PCAP Capture File Format (draft-ietf-opsawg-pcap), IETF OPSAWG Internet-Draft. The magic numbers, native byte order, 24-octet file header and 16-octet packet records
  2. PCAP Now Generic (pcapng) Capture File Format (draft-ietf-opsawg-pcapng), IETF OPSAWG Internet-Draft. Section Header, Interface Description and Enhanced Packet Blocks, if_tsresol, 4-octet block alignment
  3. Link-layer header types, The Tcpdump Group. The LINKTYPE registry: 0 loopback, 1 Ethernet, 101 raw IP, 113 and 276 Linux cooked
  4. Service Name and Transport Protocol Port Number Registry, IANA. The well-known port assignments behind the service labels (53 domain, 443 https)

Frequently asked questions

How do I open a .pcap file without Wireshark?

Drop it here for the structural read: packets, bytes, duration, protocols, services, conversations, DNS queries and unanswered SYNs, parsed in your browser. That is the triage layer. For filters, stream reassembly and protocol decoding, install Wireshark; this page tells you whether the file is worth that time.

What is the difference between pcap and pcapng?

Classic pcap is a flat list of packet records behind a 24-byte header, one interface, one timestamp resolution. pcapng is a block container: section headers, per-interface description blocks with their own link types and clock resolutions, and richer metadata. tcpdump -w writes pcap; Wireshark saves pcapng by default. This inspector reads both.

What does a TCP SYN without a SYN-ACK mean?

A connection attempt nothing accepted. The server was down, a firewall dropped the packet, or nothing listens on that port. A few are normal background noise. Many toward one port mark a dead service; many from one source across many ports mark a scan, which is what SYN scanners look like in a capture.

Can a pcap file contain passwords?

Yes. A capture stores every byte on the wire, so credentials in plain-text protocols (HTTP basic auth, FTP, telnet, SNMP community strings) sit in it verbatim, along with cookies and session tokens. That is why this page parses locally and uploads nothing, and why captures deserve the same handling as the secrets they contain.

Why are the captured and original packet lengths different?

A snapshot length was set at capture time, so only the first N bytes of each packet were stored while the record still notes the full size. Headers survive, payloads are cut. This page sums original lengths for the traffic figure, so the totals describe the wire, not the file.

Why is the DNS query count lower than I expected?

Only UDP queries to port 53 with the QR bit clear are counted. Queries over TCP, DNS over TLS on port 853 and DNS over HTTPS inside ordinary https traffic are invisible to this counter, and modern systems increasingly use them. A low count on a busy capture usually means encrypted DNS rather than little DNS.

How accurate is the services table in a capture?

It is a port-number label, nothing more: traffic to 443 is called https, to 22 ssh, per the well-known assignments. Protocols running on nonstandard ports are missed and anything hiding on a famous port is mislabeled. Wireshark's dissectors, which read the payloads, are the tool that verifies what a flow actually is.

Is there an in-depth guide to the PCAP File Inspector?

Yes. “Five-Minute Triage for pcap Captures and Arrow Files” covers the background, how it works, common pitfalls and worked examples. Read the full guide.