Generates an HTML view of the contents of a PCAP file
Clone or download
Latest commit 8dcf737 Aug 2, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Create LICENSE Jan 3, 2018 Update Aug 2, 2018
pcap2html-example.png Add files via upload Sep 14, 2017 Changed to generate the HTML file as opposed to do the transformation… Aug 2, 2018


This is Python script that generates an HTML view of the contents of a capture file.

HTML View of Capture File


You need Python2 and Wireshark.


python <input_file>

where <input_file> is a capture file.

For example:

python ~/Desktop/mycapture.pcap

generates ~/Desktop/mycapture.pcap.html.


The conversion requires an intermediate transformation to XML, which is currently done in memory. As a result, conversion of large files may be very slow.