Convert hex to ASCII in Wireshark
How Wireshark shows packet bytes as ASCII, what the ASCII view leaves out, and when to copy hex, printable text or raw bytes instead.
Converting hex to ASCII in Wireshark does not rewrite any data. Wireshark captures raw bytes and can display those bytes as hexadecimal, as ASCII characters, or in other encodings. The question is not whether the conversion is accurate. It is whether the ASCII view keeps enough information for what you need to do: reading a protocol exchange, searching for a string, pasting evidence into a report, or handing bytes to another tool.
Is the ASCII view suitable for your purpose?
The ASCII view works well for text-based protocols such as HTTP/1.x headers, SMTP, FTP commands, and other plaintext exchanges. In these cases it is the quickest way to read what was sent. It also helps you confirm that a payload contains an expected string.
The main tradeoff is that ASCII is a lossy view of binary data. Any byte that is not a printable ASCII character is replaced by a placeholder, usually a dot. Once that happens, you cannot recover the original bytes from the text alone. Binary protocols, encrypted payloads, compressed bodies and non-ASCII text such as multi-byte UTF-8 all produce mostly placeholders.
Keep the hex, or the raw bytes, whenever exact byte values matter. That includes reproducing a packet, writing a signature or filter, comparing checksums, reporting a bug in a parser, or passing data to another decoder. The ASCII rendering is best treated as a reading aid that sits next to the hex, not a replacement for it.
What the conversion actually changes
Nothing in the capture changes. Hex and ASCII are two ways of displaying the same stored bytes. Each byte has one value. Hex writes that value as two digits from 00 to FF. The ASCII view shows the character mapped to that value, but only if the value falls in the printable ASCII range.
Hex: 48 65 6c 6c 6f 0d 0a
ASCII: H e l l o . .
0x48 = H, 0x65 = e, 0x6c = l, 0x6f = o
0x0d (carriage return) and 0x0a (line feed) are not printable,
so a hex dump's ASCII column shows them as dots.
The example shows the core limitation. The dots for 0x0d and 0x0a look identical in the ASCII column. A dot standing for a control byte also looks the same as a real full stop (0x2e). Only the hex tells you which one you are looking at.
Terms like reversal, mirrored text and Unicode font substitution do not apply here. Wireshark does not reverse characters or swap in styled glyphs when it shows ASCII. The closest source of confusion is byte order. A multi-byte number stored little-endian appears "backwards" in a hex dump compared with its value in the packet details pane. That is a property of the protocol's encoding, not of the ASCII conversion. Reading such numeric fields as ASCII produces meaningless characters.
Where Wireshark shows bytes as ASCII
- Packet bytes pane: the standard hex dump shows offsets, hex bytes, and an ASCII column on the right. Selecting a field in the packet details pane highlights the matching bytes in both columns.
- Bytes pane context menu: right-clicking the bytes pane lets you change how bytes are shown, including hex or bits and ASCII or EBCDIC character interpretation.
- Follow stream: Follow > TCP Stream (and the equivalents for UDP, TLS and HTTP) reassembles a conversation. Its "Show data as" selector offers options such as ASCII, UTF-8, EBCDIC, Hex Dump, C Arrays and Raw.
- Copy from packet details: right-clicking a field or the bytes offers copy options such as hex dump, printable text, hex stream and raw binary. The exact wording and menu placement vary between versions.
- Command line: tshark can print a hex-plus-ASCII dump of each packet with the -x option.
tshark -r capture.pcapng -x
tshark -r capture.pcapng -Y 'tcp.payload contains "GET"' -x
Display filters work on bytes, so you can search either way. You can match text with a quoted string, such as frame contains "Host:". You can also match a byte sequence written in hex, such as frame contains 47:45:54, which is the ASCII for GET. Searching in hex is the more reliable choice when the target includes non-printable bytes.
Menu labels and option names have changed across Wireshark releases. This article has not been checked against a particular build. Confirm the exact labels in the user guide for your installed version.
When the ASCII view shows little or nothing useful
- Encrypted traffic: TLS application data looks like random bytes in ASCII. Wireshark can decrypt TLS if you give it session keys, for example through a key log file. Without keys, no conversion will make the payload readable.
- Compressed content: gzip- or deflate-encoded bodies are unreadable as raw ASCII. Wireshark's HTTP dissector can show decompressed content, but that depends on dissector preferences and on the stream being fully captured.
- Non-ASCII text: UTF-8 characters outside the ASCII range take several bytes each, so the ASCII column shows them as dots. In Follow Stream, choosing UTF-8 instead of ASCII is the better fit for such text.
- Binary protocols: for protocols Wireshark dissects, the packet details pane already interprets fields. That is usually more meaningful than reading the bytes as characters. If traffic runs on a non-standard port, Decode As can apply the correct dissector.
Will the result stay readable after copying or sharing?
The answer depends on which copy format you choose, because each one keeps different information.
| Copy format | Keeps exact bytes | Readable as text | Main risk |
| Hex dump (offset, hex, ASCII) | Yes, in the hex columns | Partly | Alignment breaks in proportional fonts or editors that rewrap lines |
| Printable text only | No | Yes, for text protocols | Non-printable bytes are dropped or replaced; cannot round-trip |
| Hex stream | Yes | No | Hard to read; easy to mistype if re-entered by hand |
| Raw binary | Yes | No | Not suitable for chat, email bodies or documents |
Hex dumps depend on fixed-width spacing. Pasted into a chat app, word processor or ticket system that uses a proportional font, the columns may no longer line up. Wrapping may also split lines in the middle of the hex. Putting the dump in a code block, where the destination offers one, usually keeps the layout intact. Behavior varies by destination, so check one paste before relying on it.
Accessibility and search are both weaker for hex dumps. Screen readers are likely to read a dump as a long run of separate characters and numbers. No tested results for specific assistive technologies were available for this review. Search engines and document search will only find the readable portion. If a person needs to understand the content, provide a plain-text summary of what the bytes mean alongside the dump, for example "HTTP GET request for /login with a Basic Authorization header".
Decoded payloads can expose sensitive data. Plaintext protocols often carry credentials, cookies, tokens or personal information, and converting them to ASCII makes all of this immediately readable. Before sharing, redact the sensitive bytes in both the hex and the ASCII columns. If you paste captures into an online hex-to-ASCII converter, do not assume anything about how that service stores or handles the data unless it documents its practices.
Recommendation
Use Wireshark's ASCII view, especially Follow Stream, to read plaintext protocol exchanges and to check for expected strings. When sharing, include the hex dump in a fixed-width block, with a short plain-language description for readers who cannot interpret it. Use the hex stream or raw binary whenever someone needs to reproduce, filter or re-parse the exact bytes. Do not rely on ASCII output for encrypted, compressed, binary or non-ASCII data, because the placeholders hide exactly the information you would need.