Skip to content

Security operations

How to View PCAP Files Without Wireshark: tcpdump, tshark and Browser Methods

How to view, open and read a PCAP file without Wireshark: in the browser, with tcpdump or tshark, plus filters, a triage checklist and safe sharing tips.

By Asad Ali, IT Support EngineerSC-200 · ISC2 CCPublished 8 min read
How to View a PCAP File Without Wireshark: Browser Packet Table, tcpdump -nn -vv -X Output and tshark Field Export Compared
How to View a PCAP File Without Wireshark: Browser Packet Table, tcpdump -nn -vv -X Output and tshark Field Export Compared

To view a PCAP file without Wireshark, open it in a browser-based PCAP viewer, print it with tcpdump -r, or export fields with tshark. All three read the same libpcap and PCAPNG formats, and two of them are already on most Linux and macOS machines. This guide shows how to open a PCAP file each way, how to read what you see, and what to check first during an incident.

I triage captures on locked-down laptops and jump hosts where installing Wireshark is not allowed, so these are the methods I actually use. Every command below was run against the sample capture in the PCAP & HAR Analyzer. Its tcpdump view prints byte-identical output to tcpdump -nn -vv -X, checked on a 5,407-packet capture as well as the sample.

What is inside a PCAP file?

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

The global header starts with a magic number that tells readers the byte order and timestamp resolution. Wireshark saves the newer PCAPNG format by default, which wraps packets in blocks and can hold several interfaces. Every method in this guide reads both.

Capture file signatures
First bytesFormatTimestamps
d4 c3 b2 a1libpcap, little-endianmicroseconds
4d 3c b2 a1libpcap, little-endiannanoseconds
a1 b2 c3 d4libpcap, big-endianmicroseconds
0a 0d 0d 0aPCAPNG section headerper interface (if_tsresol)
Check a capture's format from the terminal
xxd -l 4 capture.pcap
# 00000000: d4c3 b2a1   -> classic pcap, little-endian, microseconds
file capture.pcap

How do you view a PCAP file in the browser?

Drop the file into a client-side PCAP viewer: the packet list, protocol statistics and a byte decoder appear in the tab, and the capture is never uploaded.

  1. Open the online PCAP viewer and drop your .pcap or .pcapng file, or press Load sample data.
  2. Type a display filter such as dns, port 443, host 10.0.0.5 or !arp to narrow the list.
  3. Select a row to open it in the packet decoder, which highlights each header field's bytes.
  4. Switch to the packet analysis dashboard for top talkers, conversations and the port matrix.

Check the privacy claim of any online viewer before you use it. Many upload the capture to a server for processing, which defeats the point when the capture holds credentials. A client-side viewer parses the bytes with JavaScript in your tab; your browser's network panel stays empty while it works.

How do you read a PCAP file with tcpdump?

Run tcpdump -nn -r capture.pcap to print one line per packet, add -vv for IP and transport details, and add -X to see each packet in hex and ASCII.

tcpdump flags for reading captures
FlagEffect
-r fileRead packets from a file instead of an interface
-nnDo not resolve host names or port names (fast, no DNS leaks)
-v / -vvPrint TTL, IP ID, flags, checksums and protocol details
-X / -XXHex and ASCII dump without / with the link-layer header
-ttttPrint full date and time on every line
-c NStop after N packets
Read and filter a capture with tcpdump
tcpdump -nn -r capture.pcap | head -50
tcpdump -nn -vv -r capture.pcap "tcp port 80"
TZ=UTC tcpdump -nn -vv -X -r capture.pcap -c 5

tcpdump prints timestamps in the machine's local time zone, so prefix TZ=UTC when you compare captures from different hosts. To get the same text without a terminal, use the PCAP to tcpdump output view, which also parses tcpdump text pasted from a server.

How do you read a line of tcpdump output?

Each tcpdump line reads left to right as time, protocol, source address and port, destination address and port, TCP flags, sequence and acknowledgement numbers, window size and payload length.

One TCP segment in tcpdump -nn -vv output
09:26:53.021500 IP (tos 0x0, ttl 64, id 602, offset 0, flags [DF], proto TCP (6), length 40)
    192.168.1.100.50740 > 203.0.113.10.80: Flags [.], cksum 0xf7e9 (correct), seq 1, ack 1, win 64240, length 0
  • First line (-v): the IPv4 header. ttl hints at the sender's operating system (64 for Linux and macOS, 128 for Windows), flags [DF] means "do not fragment", and length is the whole IP packet.
  • Addresses: 192.168.1.100.50740 is host 192.168.1.100 on port 50740. tcpdump joins address and port with a dot, so IPv4 addresses show five numbers.
  • Flags: S is SYN, . is ACK, P is PUSH, F is FIN and R is RST. [S.] is a SYN-ACK; a burst of [S] lines with no replies is a port scan.
  • seq and ack: after the handshake tcpdump prints relative numbers, so the first data byte is 1. Add -S when you need the absolute values to match another tool.
  • win and length: the receive window and the TCP payload size. Many length 0 lines are plain acknowledgements.

Segments on port 80 that continue an HTTP response end with : HTTP and no headers, because only the first segment of a response holds the status line. The tcpdump output view shows 200 packets per page and rebuilds tcpdump's per-connection sequence state from the start of the file for each page. Page 20 therefore prints exactly what tcpdump -nn -vv -X prints for packets 3,801 to 4,000.

How do you export PCAP fields with tshark?

Use tshark -r capture.pcap -T fields -e <field> to pull specific columns, such as DNS query names or TLS server names, into text you can sort and count.

Useful tshark one-liners
# Every DNS name queried, most frequent first
tshark -r capture.pcap -Y "dns.flags.response == 0" -T fields -e dns.qry.name | sort | uniq -c | sort -rn

# TLS server names (SNI) from Client Hellos
tshark -r capture.pcap -Y "tls.handshake.type == 1" -T fields -e ip.src -e tls.handshake.extensions_server_name

# Conversation statistics
tshark -r capture.pcap -q -z conv,tcp

tshark ships with Wireshark, so it is only an option where Wireshark's command-line tools are installed. It is the best choice for scripted, repeatable extraction across many captures.

What should you check first in a PCAP file?

Start with statistics, not single packets: look at the protocol mix, the top talkers, every DNS name queried and any cleartext credentials before reading individual frames.

  1. Protocol hierarchy: unexpected protocols, such as SMB or Telnet on a user segment, deserve attention.
  2. Top talkers and conversations: large transfers to unfamiliar external hosts can mean exfiltration.
  3. DNS names: long random-looking subdomains suggest DNS tunneling; regular intervals suggest beaconing.
  4. Cleartext secrets: HTTP Authorization headers, FTP PASS commands and Telnet sessions expose passwords.
  5. TLS versions: a Client Hello that offers only TLS 1.0 or 1.1 points to an outdated client or a downgrade.

The automated triage view runs these checks as documented rules and cites the frames behind each finding. Pull the public indicators it surfaces into the IOC Extractor, then hunt for them across your fleet with the KQL & SPL builder.

How do you open a very large PCAP file?

Split it into smaller files with editcap -c or tcpdump -C, or filter it down to the traffic you need before opening it.

Split or filter a large capture
# 500,000 packets per output file
editcap -c 500000 big.pcapng part.pcapng

# Keep only traffic to or from one host
tcpdump -nn -r big.pcap -w host.pcap host 10.20.4.17

# Rotate files every 100 MB while capturing
sudo tcpdump -i eth0 -C 100 -w rolling.pcap

Browser viewers hold the file in memory, so stay under about 1.5 GB per file. The LocalSecTools viewer reads the first 250,000 packets of a larger capture and says so in a warning banner, and every table pages 100 rows at a time so scrolling stays smooth. Wireshark struggles well before 1.5 GB on modest laptops too, which makes splitting good practice for any tool.

How do you share a PCAP file safely?

Share the smallest filtered capture that shows the problem, strip payloads where you can, and never upload raw captures to public analysis sites.

Captures contain session cookies, internal IP plans and sometimes personal data. Filter to the relevant conversation, truncate packets with editcap -s 128 to keep headers but drop most payload, and send the file through an approved channel. When the recipient only needs evidence, paste the tcpdump text of the key frames into the ticket instead of the binary file.

Captures of web traffic usually pair with browser logs. See how to view and sanitize HAR files for the browser side, and the offline SecOps workflow for what to do with the indicators you find.

How do you create a PCAP file in the first place?

Capture with tcpdump -w on Linux or macOS, with pktmon on Windows, or export from Wireshark, then open the file with any of the methods above.

Capture on Linux, macOS and Windows
# Linux / macOS: whole frames, one interface, stop after 10,000 packets
sudo tcpdump -i eth0 -s 0 -c 10000 -w capture.pcap

# Only DNS and HTTPS, to keep the file small
sudo tcpdump -i any -w web.pcap "port 53 or port 443"

# Windows 10/11, built in: capture, then convert to PCAPNG
pktmon start --capture --pkt-size 0 -f trace.etl
pktmon stop
pktmon etl2pcap trace.etl -o capture.pcapng

Capture as close to the problem as you can: on the affected host, or on a span port in front of it. A capture filter such as host 10.20.4.17 keeps files small enough to share. Note that captures taken on the sending host often show incorrect TCP checksums, because the network card fills them in after the capture point; that is checksum offloading, not corruption.

Frequently asked questions

Open it in a PCAP viewer: a browser-based one such as the LocalSecTools PCAP viewer, Wireshark, or tcpdump -nn -r capture.pcap in a terminal.

Try it in your browser

About the author: Asad Ali

IT Support Engineer and SOC analyst · Microsoft SC-200 & ISC2 CC certified

Asad Ali is an IT Support Engineer and SOC analyst with a Computer Science degree from UET Lahore. He holds the Microsoft SC-200 Security Operations Analyst and ISC2 Certified in Cybersecurity (CC) certifications, works on threat detection, network analysis and Linux administration, and builds and maintains every tool on LocalSecTools.

  • Microsoft Certified: Security Operations Analyst (SC-200)
  • ISC2 Certified in Cybersecurity (CC)

Every guide is written and technically reviewed by Asad Ali, and the commands and numbers are checked against the LocalSecTools calculators. Read more about his work at asadali.tech.

More engineering guides