Convert PCAP to CSV online

What a PCAP to CSV conversion keeps and drops, when an online converter is a reasonable choice, and how to keep the CSV readable and safe after sharing.

Turning a packet capture into a CSV file is a common way to get network traffic into a spreadsheet, a database or a script. Converting a PCAP to CSV online looks like a simple format change, but it is a lossy, opinionated extraction. This review explains what the conversion changes, when it suits your purpose, and what to check before you share the result.

A note on the evidence behind this review

No specific online converter was tested for this article, and no confirmed measurements, prices, file size limits or retention policies were available. The guidance below rests on how PCAP and CSV formats work in general and on widely documented behavior of common desktop tools. Any claim a particular web service makes about privacy, limits or field coverage needs to be checked against that service's own documentation. You cannot judge it from the site's design or wording.

Is converting PCAP to CSV suitable for your use?

Converting is a good fit when you need a flat, sortable summary of traffic: who talked to whom, when, over which protocol, and how many bytes moved. CSV rows load directly into spreadsheets, pandas, SQL imports and log tools. The main benefit is accessibility, because people without packet analysis software can filter and chart the data.

The decisive tradeoff is information loss. A CSV holds only the fields someone chose to extract. Payload bytes, nested protocol layers and capture metadata are usually dropped, and the file cannot be turned back into a working capture.

An online converter adds a second tradeoff: you upload the capture to someone else's server. Packet captures often contain internal IP addresses, hostnames, credentials sent in cleartext, session cookies and personal data. Unless you have verified the service's handling and retention terms, and are permitted to send that data off your network, a local tool is the safer choice.

Keep the original capture, or a plain-text protocol dump of it, as your working material in these cases:

  • You need payload contents, reassembled streams or file extraction.
  • The capture is evidence for an incident or legal matter and must stay intact.
  • You expect to re-analyze the traffic later with different fields or filters.
  • The traffic includes tunnels, encapsulation or protocols where one packet carries several values for the same field.
  • The data is sensitive and the online tool's retention practices are unverified.

What the conversion actually changes

A PCAP or PCAPNG file is binary. It stores raw packet bytes plus a per-packet timestamp and length, and PCAPNG can also hold interface descriptions, comments and other metadata. A CSV export is the output of a protocol dissector. Software decodes each packet, picks out named fields, renders them as text, and writes one row per packet (or per flow, depending on the tool).

Three changes matter most for practical use. First, field selection: the output contains only the columns the converter chose, or the ones you configured. Second, interpretation: protocol labels depend on dissector rules and port heuristics, so traffic on a non-standard port may be labeled incorrectly or generically. Third, flattening: when a packet has repeated or nested fields, such as an inner and outer IP header in a tunnel, the converter has to keep the first value, the last value, or a combined string. Tools differ in which they pick.

Timestamps also change form. They may be written as epoch seconds, absolute date-times or time relative to the first packet, and the precision may vary. Check which representation you received before comparing it with other logs.

Element | In the capture file | Typical CSV export
Packet bytes and payload | Stored in full (up to the snap length) | Usually omitted
Protocol fields | Decoded on demand by analysis tools | Only selected fields, as text
Repeated or nested fields | All occurrences available | Often reduced to one value or a joined string
Timestamps | Binary, with recorded precision | Text in one chosen format
Capture metadata (PCAPNG) | Interfaces, comments, options | Typically not included
Reversibility | Source of truth | Cannot rebuild the original capture

A local alternative with explicit field control

If you can install software, Wireshark exports dissected packets through File > Export Packet Dissections > As CSV. That export reflects the columns currently shown in the packet list. Its command-line companion, tshark, lets you name the exact fields and controls for separators, quoting and repeated values, which addresses the flattening problem described above. An example:

tshark -r capture.pcap -T fields \
  -e frame.number -e frame.time_epoch \
  -e ip.src -e ip.dst -e _ws.col.Protocol -e frame.len \
  -E header=y -E separator=, -E quote=d -E occurrence=f \
  > capture.csv

Here, occurrence=f keeps the first value of any repeated field. Changing the separator to a tab (-E separator=/t) produces TSV, which avoids most quoting problems when a field such as the protocol Info column contains commas. Whichever tool you use, compare a few rows against the capture to confirm the fields mean what you expect.

Will the CSV stay readable and usable after sharing?

CSV is plain text, so it can be searched, compared and edited in any text editor, and screen readers can read it. Most accessibility and usability issues come from the program that opens the file, not from the format itself.

  • Spreadsheet auto-conversion: spreadsheet applications may reformat values on open. They can strip leading zeros, show long numbers in scientific notation, or read hex-like strings and some timestamps as numbers or dates. Import with columns set to text when exact values matter.
  • Row limits: Microsoft Excel worksheets hold at most 1,048,576 rows. A busy capture can exceed that, and rows beyond the limit will not load into a single sheet.
  • Delimiters and quoting: free-text columns can contain commas, quotes or line breaks. If quoting is inconsistent, columns shift. TSV or strict double-quoting reduces the risk.
  • Formula injection: packet fields can carry attacker-controlled strings, such as HTTP headers or DNS names. A cell beginning with =, +, - or @ may be treated as a formula when opened in a spreadsheet. Treat CSVs from untrusted traffic carefully, and sanitize or prefix such cells before sharing.
  • Encoding: non-ASCII content in hostnames or payload-derived fields may display incorrectly if the reader assumes a different character encoding. UTF-8 with a stated encoding is the safest default.
  • Accessibility: a clear header row with descriptive column names helps screen reader users navigate the table in spreadsheet software. Cryptic field identifiers alone make the data harder to interpret by any means.

Sharing the CSV still shares the data. Removing payloads lowers the exposure but does not remove it, because addresses, hostnames, URLs and query strings often remain. Review or redact columns before sending the file outside the group that was allowed to see the original capture.

Bottom line

A PCAP to CSV conversion is worth doing when you want a tabular overview of traffic for sorting, charting or importing, and you accept that the result is a summary rather than a copy. Use a local tool when the capture is sensitive or the online service's handling of uploads is unverified. Keep the original capture for anything that needs payloads, full protocol detail or evidential integrity. Before relying on any specific online converter, check its field coverage, size limits and data retention terms yourself, because this review could not verify them.