.PCAP

PCAP File

Packet Capture (libpcap) File
Ask a question
QUICK ANSWER

A .pcap file is a recorded snapshot of network traffic captured by a tool such as Wireshark or tcpdump. Open it in Wireshark (free, Windows/macOS/Linux) - it decodes every protocol layer automatically. Be aware that captures can contain sensitive data like passwords and session cookies, so treat them as confidential.

Developer: tcpdump/libpcap project (de-facto standard); used by Wireshark and most sniffers Category: Data Files Open standard MIME: application/vnd.tcpdump.pcap
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jun 18, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PCAP file format?

.pcap is a binary file format used by applications for monitoring network traffic. A *sniffer* - for example, Wireshark - captures live packet data and saves it into a .pcap file. PCAP files allow users to inspect network traffic for a given capture session in off-line mode, as opposed to real-time mode. Analyzing and auditing network traffic is an essential practice that facilitates network performance optimization and cyberattack prevention.

The format originates from the libpcap/tcpdump project and has become the de-facto standard for packet capture storage. Each file begins with a 24-byte global header whose magic number (D4 C3 B2 A1 in little-endian byte order) identifies the file and signals the byte order to reading tools. The official MIME type is application/vnd.tcpdump.pcap. A newer successor - .pcapng - adds support for multiple interfaces, metadata blocks, and comments; Wireshark auto-detects both formats on open.

What is a sniffer?

A sniffer is a type of software tool that can capture and analyze network traffic. The tool "listens" to network traffic on a given network by switching a network interface into *promiscuous* mode, so it can see all the traffic on that network, including data not addressed to that particular interface. Running a sniffer on a router or network-attached computer does not require promiscuous mode. A *sniffer* may also refer to an electronic device used for monitoring network traffic.

Wireshark

Wireshark is a free, open-source sniffer tool available for Windows, Linux, and macOS. Its breadth of features has made it the most popular network traffic analysis tool, used by professional IT and security teams as well as individual users. Ethereal was the original name for this tool until May 2006, when it was renamed Wireshark. The command-line counterpart tshark and the classic Unix tool tcpdump also read and write .pcap files natively, making the format universally supported across platforms.

Security & safety

RISK: MEDIUM

A .pcap is passive data and cannot execute, but it is sensitive: a capture can contain clear-text passwords, session cookies, authentication tokens, internal IPs/hostnames and other private traffic. Treat captures as confidential and do NOT upload sensitive ones to public online analysers. Capturing traffic on networks you don't own or aren't authorised to monitor may be illegal. Also verify the file is really a capture - a file that's .pcap by extension but doesn't match the libpcap/pcapng magic bytes may be mislabeled or a different format.

Format details

in a nutshell
FULL NAMEPacket Capture (libpcap) File
DEVELOPERtcpdump/libpcap project (de-facto standard); used by Wireshark and most snifferssince Early 1990s (libpcap/tcpdump); IETF draft standard for the on-disk format
CATEGORYData Files
MIME TYPEapplication/vnd.tcpdump.pcap
TYPEBinary network packet capture (libpcap format)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
D4C3B2A1
ASCII
····
Classic libpcap .pcap starts with magic D4 C3 B2 A1 (LE) or A1 B2 C3 D4 (BE); nanosecond-precision variants use 4D 3C B2 A1 / A1 B2 3C 4D. The NEWER pcapng format (often still saved as .pcap or as .pcapng) instead begins with the Section Header Block magic 0A 0D 0D 0A. Wireshark auto-detects which it is on open.

Programs that open PCAP files

Windows2 apps
Wireshark Open-source File > Open the .pcap; Wireshark auto-detects libpcap vs pcapng and decodes every protocol layer, with filters and follow-stream.
WinDump (legacy) Free Command-line: 'windump -r file.pcap'. Note: WinDump/WinPcap are unmaintained - use Wireshark/tshark (with Npcap) for new work.
macOS2 apps
Wireshark Open-source File > Open; same auto-detection and decoding on macOS.
tcpdump Open-source Built in on macOS: 'tcpdump -r file.pcap' to read the capture in Terminal.
Linux3 apps
NetworkMiner Freemium Load the .pcap to extract files, credentials, images and hosts from the traffic (forensics-focused; runs on Windows and on Linux via Mono).
tcpdump Open-source 'tcpdump -r file.pcap' reads a libpcap capture in the terminal.
Wireshark / tshark Open-source Open in Wireshark, or 'tshark -r file.pcap' on the command line for a text dump.
Web1 app
A-Packets Free Upload a .pcap to analyse it in the browser - use ONLY with non-sensitive captures.

Technical details

deep spec
File structure24-byte global header followed by sequential packet records, each with a 16-byte per-packet header and raw captured frame data
Magic number (little-endian)0xD4C3B2A1 at byte offset 0, identifying the file and signaling little-endian byte order to reading tools
Magic number (big-endian)0xA1B2C3D4 at byte offset 0, used when the capturing machine writes in big-endian byte order
Nanosecond-resolution variantsMagic 0x4D3CB2A1 (LE) or 0xA1B23C4D (BE) marks files where timestamps are stored in nanoseconds rather than microseconds
Timestamp encodingTwo 32-bit integers per packet: seconds since Unix epoch and microseconds (or nanoseconds in the ns-precision variant)
Snaplen field32-bit global header field capping the maximum bytes saved per packet; default capture value is 65535 bytes
Network (link-layer type) field32-bit code in the global header identifying the data-link layer: 1 = Ethernet, 105 = IEEE 802.11 Wi-Fi, 113 = Linux cooked capture
Per-packet header fieldsts_sec, ts_usec/ts_nsec, incl_len (bytes actually saved), orig_len (original on-wire packet length)
MIME typeapplication/vnd.tcpdump.pcap
Byte-order detectionFully automatic - tools read the magic number at offset 0 to determine endianness without user input
Successor format.pcapng (PCAP Next Generation) adds multiple-interface support, metadata blocks, packet comments, and enhanced packet records
CompressionFormat is uncompressed by design; files are commonly distributed as .pcap.gz (gzip) or .pcap.xz for storage and transfer
Primary capture toolstcpdump (command-line, Unix/Windows); tshark (cross-platform command-line); Wireshark (GUI)
File size limitNo format-imposed maximum; bounded only by operating-system filesystem limits and available storage
ReleasedEarly 1990s (libpcap/tcpdump); IETF draft standard for the on-disk format
Open standardYes · royalty-free
Specificationdatatracker.ietf.org

PCAP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PCAP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PCAP files.

Frequently asked questions

How do I open a PCAP file?
Open it in Wireshark (free for Windows, macOS and Linux), which decodes every protocol layer. On the command line you can read it with 'tcpdump -r file.pcap' or 'tshark -r file.pcap'.
What's the difference between .pcap and .pcapng?
pcapng is the newer format with multiple interfaces, comments and richer metadata, and is Wireshark's default. Classic .pcap (libpcap) is simpler and more widely compatible. Wireshark opens both; you can convert between them with editcap.
What's the difference between .pcap and .cap?
Usually none - both commonly hold the libpcap capture format and Wireshark opens either; you can often just rename one to the other. '.cap' is also used by Microsoft Network Monitor and some non-network programs, so it's a bit more ambiguous.
Can a PCAP file contain passwords?
Yes - if the captured traffic used clear-text protocols, credentials can be visible in the packets. Treat captures as confidential and avoid uploading sensitive ones to public tools.
How do I convert a PCAP to CSV or text?
In Wireshark: File > Export Packet Dissections > As CSV or As Plain Text. On the command line, tshark can output fields: 'tshark -r file.pcap -T fields -e ...'.
How do I read a PCAP without Wireshark?
Use tcpdump or tshark on the command line ('tcpdump -r file.pcap'), NetworkMiner for forensic file/credential extraction, or a browser tool like A-Packets for non-sensitive captures.

References

1IETF - PCAP Capture File Format (draft)datatracker.ietf.org
2IETF - PCAP Next Generation (pcapng) formatdatatracker.ietf.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.EXEWindows Executable (Portable Executable)
4.PARTPartial Download File
5.BINCD/DVD Disc Image (BIN/CUE)
6.DATProgram Data File (generic)
7.RPMSGRestricted Permission Message
8.TXTPlain Text File
9.MDMarkdown Document
10.NOMEDIAAndroid No-Media Marker File

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z