.CAP

CAP File

Packet Capture file (network trace) - primary meaning
Ask a question
QUICK ANSWER

A CAP file is almost always a network packet capture - a recorded snapshot of network traffic from a sniffer such as Wireshark, tcpdump, or a router. Open it with free Wireshark on Windows, macOS, or Linux. Note that CAP files can contain passwords and other sensitive traffic, and a handful of unrelated programs also use the .cap extension.

Developer: Various (libpcap/tcpdump; Microsoft Network Monitor; NAI Sniffer) 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 Sep 11, 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 CAP file format?

A .cap file is a packet capture file generated by a network packet-sniffing program. These files are also called trace files and are used by numerous packet analyser tools to record live network traffic. .cap files store raw network packets collected by the sniffing program so the data can be evaluated later, or loaded into a different tool entirely.

The .cap extension is ambiguous: many tools write files with this name but different internal layouts. The most common is the classic .pcap layout from the libpcap library (magic bytes D4 C3 B2 A1 little-endian or A1 B2 C3 D4 big-endian), used by tcpdump since the early 1990s. Microsoft Network Monitor uses its own proprietary header (GMBU or RTSS depending on version), while NetScout Sniffer produces yet another binary layout. Wireshark auto-detects the variant on open.

.cap files can be accessed using the free Wireshark or, on Windows, Microsoft Network Monitor (now legacy). Other applications that support .cap files include tcpdump on the command line, NetScout's Sniffer Analysis, and Klos PacketView Pro, among others.

Security & safety

RISK: MEDIUM

A .cap is passive data and cannot execute, but it is sensitive: a network capture can contain clear-text passwords, session cookies, internal IPs/hostnames and other private traffic - treat captures as confidential and do NOT upload sensitive ones to public online analysers. In Wi-Fi auditing a .cap may hold a WPA handshake intended for password cracking; capturing traffic on networks you don't own may be illegal. Also beware files that are .cap by extension but actually an executable or a different format - verify the magic bytes.

Format details

in a nutshell
FULL NAMEPacket Capture file (network trace) - primary meaning
DEVELOPERVarious (libpcap/tcpdump; Microsoft Network Monitor; NAI Sniffer)since libpcap/tcpdump format early 1990s; .cap used by many sniffers
CATEGORYData Files
MIME TYPEapplication/vnd.tcpdump.pcap
TYPEBinary network packet capture (most often libpcap, or vendor capture formats)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
D4C3B2A1
ASCII
····
.cap is an AMBIGUOUS extension. The dominant meaning is a network packet-capture file, and many such files are in classic libpcap format (magic D4 C3 B2 A1 / A1 B2 C3 D4; the newer pcapng begins '0A 0D 0D 0A'). But '.cap' is also written by Microsoft Network Monitor (its own format, header 'GMBU'/'RTSS' depending on version) and NAI/NetScout Sniffer (different binary layouts), so the bytes vary by tool. Unrelated programs ALSO use .cap (see user_scenarios) - identify by magic bytes, not by extension. Wireshark auto-detects the variant on open.

Programs that open CAP files

Windows2 apps
Wireshark Open-source File > Open the .cap; Wireshark auto-detects libpcap/NetMon/Sniffer formats and decodes every protocol layer.
Microsoft Network Monitor / Message Analyzer (legacy) Free Opens .cap captures it created. Note: NetMon 3.4 and Message Analyzer are retired by Microsoft - use Wireshark for new work.
macOS1 app
Wireshark Open-source File > Open; same auto-detection and protocol decoding on macOS.
Linux2 apps
Wireshark Open-source Open in Wireshark, or inspect on the command line with tshark/tcpdump -r file.cap.
tcpdump Open-source tcpdump -r file.cap to read a libpcap capture in the terminal.
Web1 app
A-Packets Free Upload a .cap/.pcap to analyse it in the browser (use only with non-sensitive captures).

Technical details

deep spec
Format categoryBinary network packet capture (trace file)
Primary internal layoutClassic libpcap / pcap - most common variant
Little-endian magic bytesD4 C3 B2 A1 at byte offset 0
Big-endian magic bytesA1 B2 C3 D4 at byte offset 0
Microsoft Network Monitor headerGMBU (v1) or RTSS (v2) - proprietary, incompatible with libpcap
MIME typeapplication/vnd.tcpdump.pcap
Extension ambiguitySame .cap name used by libpcap, Microsoft Network Monitor, NAI/NetScout Sniffer, and unrelated applications - identify by magic bytes, not extension
Link-layer type field32-bit integer in libpcap global header identifying the data-link medium (e.g. Ethernet = 1, IEEE 802.11 Wi-Fi = 105)
Timestamp resolutionMicroseconds in classic pcap; nanoseconds in the pcap-ns variant (magic 4D 3C B2 A1 / A1 B2 3C 4D)
Snapshot length (snaplen)Per-file cap on bytes saved per packet; commonly set to 65535 or 262144 bytes
Per-packet record structureCapture timestamp (seconds + microseconds), captured packet length, original wire length, raw packet bytes
Successor format.pcapng - adds per-interface metadata, block comments, and multiple link-layer types in one file
Byte order detectionDetermined at open from magic bytes; both little-endian and big-endian files are valid and in wide use
Primary originating tooltcpdump / libpcap (Unix/Linux, early 1990s), with .cap later adopted by Windows sniffers including Microsoft Network Monitor
Releasedlibpcap/tcpdump format early 1990s; .cap used by many sniffers
Open standardYes · royalty-free
Specificationdatatracker.ietf.org

CAP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with CAP 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 CAP files.

Frequently asked questions

How do I open a .cap file?
Open it in Wireshark (free for Windows, macOS and Linux) - it auto-detects whether the capture is libpcap, Microsoft Network Monitor or Sniffer format and decodes the packets. On Linux you can also read it with 'tcpdump -r file.cap'.
What is the difference between .cap and .pcap?
Usually none - both commonly hold the libpcap capture format and Wireshark opens either; you can often just rename .cap to .pcap. The difference is only the extension the capturing tool chose. (.pcapng is the newer variant.)
Why won't Wireshark open my .cap file?
Then it's probably not a network capture - '.cap' is also used by unrelated programs (some games, Construct/Capella, printer utilities). Check the file's source; if it didn't come from a sniffer, you need that program, not Wireshark.
Can a .cap 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 online tools.
Is a .cap file the same as a WPA handshake file?
It can be: Wi-Fi tools like airodump-ng save the captured handshake as a .cap, which crackers (aircrack-ng/hashcat) then process. It's still a packet capture - just one used for security testing.
How do I convert a .cap to readable text?
In Wireshark: File > Export Packet Dissections > As Plain Text (or CSV). On the command line, 'tshark -r file.cap' prints the packets.

References

1IETF - PCAP Capture File Format (draft)datatracker.ietf.org
2Microsoft - Network Monitor 3 (legacy)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

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

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