Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

TShark

wireshark.org

  • Free plan
  • Windows
  • macOS
  • Linux
7.3 Club score Visit wireshark.org

What TShark is

TShark is the Wireshark project’s terminal-mode utility for capturing and analyzing network traffic. It can capture live packets or read saved captures, decode packet data for output, and write captures to a file. Its native capture format is pcapng, and it can read and write capture files supported by Wireshark. Display filters use Wireshark syntax to select packets and protocol fields. Output formats include fields, JSON, PDML, and text. Capture controls include interface selection, capture filters, packet limits, and ring-buffer files. TShark can generate ElasticSearch mapping data and pipe packet output to another program or script. One limitation is that display filters are not available when it captures and saves packets with the -w option. The manual sets a maximum capture-file size of 2 TB and notes potential issues above 2^32 packets. TShark is free under GNU GPL version 2 and runs on Linux, macOS, and Windows, among other systems supported by Wireshark. The project provides documentation, mailing lists, forums, and educational resources.

Who it suits

TShark suits people who want to capture or inspect network traffic from a terminal, including those who need packet output for another program or script. Its filters use the same syntax as Wireshark.

Good to know, and what to watch

  • Captures live traffic and reads saved captures.
  • Supports Wireshark display-filter syntax.
  • Offers fields, JSON, PDML, and text output.
  • Can pipe packet output to another program or script.
  • Display filters are unavailable with capture-and-save using -w.
  • Capture files have a 2 TB maximum size.
  • The manual notes potential issues above 2^32 packets.

Free

Free

Free plan

The verdict

TShark provides terminal-based capture and packet analysis with multiple output formats and capture controls. Account for its filter restriction when saving captures and the documented file-size limits when planning large captures.

What the maker publishes

Analysis limit
Display filters are not supported when TShark captures and saves packets with the -w option. source
Capture controls
Capture options include interface selection, capture filters, packet limits, and ring-buffer files. source
File size limit
The manual states that capture file size is limited to a maximum of 2 TB, and notes potential issues above 2^32 packets. source
Integration
TShark can write ElasticSearch mapping data and supports piping packet output to another program or script. source
License
Wireshark is freely available under the GNU General Public License version 2, with no license fee for downloading. source
Maker
The Wireshark project is maintained by the Wireshark Foundation, described as a nonprofit supported by donations. source
Output
TShark can output packet data in formats including fields, JSON, PDML, and text. source
Packet formats
TShark uses pcapng as its native capture format and can read and write capture files supported by Wireshark. source
Project features
The Wireshark project describes TShark as its terminal-mode utility and lists live capture, offline analysis, protocol inspection, and display filters among its features. source
Protocol analysis
TShark provides display filters for selecting packets and protocol fields, using the same syntax as Wireshark. source
Purpose
TShark captures live network traffic or reads saved captures, then decodes packets for output or writes them to a file. source
Security information
The documentation page links to security advisories covering past vulnerabilities and how to report a vulnerability. source
Support and learning
The project offers documentation, mailing lists, community forums, and educational resources including SharkFest. source
Supported systems
The project lists Windows, Linux, macOS, FreeBSD, NetBSD, and other platforms as supported by Wireshark. source

Checked against the maker's pages on 30 Sept 2026.