How to Show UDP Payload as Text in Wireshark

Abstract: Resolve unreadable UDP payload data in Wireshark by using Follow UDP Stream or inspecting the Data field to view ASCII text.

Created: 2026-10-21 by

To display UDP payload as readable text in Wireshark, you must first ensure the data is actually ASCII or UTF-8 encoded. The most reliable method is to use the "Follow UDP Stream" feature, which reconstructs the session and presents the raw bytes in a decoded format. If the stream appears as garbage, verify the encoding settings in Edit > Preferences > Display.

Understanding UDP Payload Structure

UDP (User Datagram Protocol) is a connectionless transport layer protocol. Unlike TCP, it does not guarantee delivery or order, but it also does not add significant overhead. When you capture a UDP packet, the payload is simply a block of bytes. These bytes do not have an inherent "text" format; they are just data. Whether that data looks like text depends entirely on how the application using UDP encoded it. Most common UDP applications, such as DNS, DHCP, or simple IoT protocols, often use ASCII or UTF-8 for human-readable parts of their messages. However, many others, like video streaming or binary sensor data, use proprietary binary formats. If you try to read binary data as text, you will see random characters, squares, or control symbols. This is why simply "viewing" the packet often fails to show clear text without proper context. To analyze this effectively, you need tools within Wireshark that can interpret these byte sequences. The following sections detail the correct methods to extract and view this data, avoiding common misconceptions about automatic decoding.

Method 1: Follow UDP Stream

The "Follow UDP Stream" function is the primary tool for viewing payload content in a readable format. It reassembles all packets belonging to the same UDP conversation (identified by source IP, destination IP, source port, and destination port) into a single continuous buffer. This is crucial because UDP payloads may be split across multiple packets. Right-click on any UDP packet in the packet list pane. Select Follow from the context menu, then choose UDP Stream. A new window will open at the bottom of the Wireshark interface. This window displays two columns: one for data sent from the client to the server, and another for the reverse direction. If the application protocol uses standard ASCII encoding, the text will appear clearly in this window. You can copy the text directly from here for further analysis. This method bypasses the complex dissection tree and gives you the raw reconstructed data. It is particularly useful for debugging custom UDP-based applications where you suspect the payload contains configuration strings or error messages. For more complex scenarios involving specific application layers, such as analyzing VNC client interactions, you might find related insights in our guide on Analyzing VNC Client Interpreted Server C++ Payload in Wireshark, which demonstrates how stream following aids in understanding binary-to-text conversions.

Method 2: Inspect the Packet Bytes Pane

If you prefer to examine individual packets rather than the whole stream, you can look at the raw bytes in the lower pane. After selecting a UDP packet, scroll down to the Frame section, then expand User Datagram Protocol. Below that, you will see the Data field. Click on the Data field. The middle pane will show the hex dump of the payload, and the rightmost pane will attempt to render it as ASCII characters. If the data is valid ASCII, you will see readable text next to the hexadecimal values. If the data is binary, you will see non-printable characters represented as dots or boxes. This view allows you to manually identify patterns. For example, if you see a sequence like 48 65 6c 6c 6f, you can recognize it as "Hello" in ASCII. This manual inspection is helpful when the "Follow Stream" function produces mixed results or when you need to isolate a specific part of a large UDP datagram.

Handling Non-ASCII Encodings

Not all text is ASCII. Modern applications frequently use UTF-8, which uses multi-byte sequences for characters outside the basic Latin alphabet. Wireshark’s default display tries to handle this, but sometimes it fails if the stream contains invalid UTF-8 sequences or mixed encodings. In such cases, the "Follow UDP Stream" window might still show garbled text. To mitigate this, ensure your system locale supports the character set in question. Additionally, you can use the Decode As feature, but note that this applies to higher-layer protocols (like HTTP or SIP), not raw UDP text. UDP itself has no built-in encoding header. Therefore, you cannot tell Wireshark "this UDP packet is UTF-8." You must infer the encoding from the application context. If you are dealing with network traffic from IoT devices, understanding the underlying protocol structure is key. Our article on Analyzing Network Traffic of an IoT Device on a DD-WRT Router provides context on how embedded devices often send structured text payloads over UDP, which can be parsed using similar techniques.

Common Pitfalls and Troubleshooting

A frequent mistake is assuming that all UDP traffic contains text. Many protocols, such as NTP (Network Time Protocol) or certain gaming protocols, use binary structures. Trying to read these as text will always result in nonsense. Always check the protocol documentation to determine if the payload is expected to be textual. Another issue arises with fragmented packets. If a UDP datagram is larger than the MTU (Maximum Transmission Unit), it may be fragmented at the IP layer. Wireshark usually reassembles these automatically, but in some cases, especially with captured packets from remote taps, reassembly might fail. In such instances, the "Follow Stream" option will be grayed out or show incomplete data. Use the filter udp.len > 1472 to identify potentially problematic large packets and investigate their fragmentation status. Finally, remember that encryption breaks text visibility. If the UDP payload is encrypted (e.g., DTLS or TLS over UDP), the bytes will appear as random noise regardless of the encoding. You cannot view plaintext without the decryption keys. In these cases, focus on metadata like packet sizes and timing rather than payload content.

Frequently Asked Questions

Why does my UDP payload show square blocks instead of text?

Square blocks indicate that the byte values in the payload are outside the printable ASCII range (0-127). This usually means the data is either binary-encoded or uses a different character set like UTF-16. Check the application protocol specification to understand the expected encoding format.

Can I use Decode As to force UDP to show text?

No, the "Decode As" feature in Wireshark applies to recognized application-layer protocols like HTTP, SIP, or DNS. It does not apply to raw UDP because UDP itself does not define a message format. You must rely on stream following or manual byte inspection.

How do I filter only UDP packets with text-like content?

Wireshark does not have a direct filter for "contains ASCII text." You can use display filters to narrow down by port number, such as udp.port == 53 for DNS, which typically contains textual queries. For general filtering, you would need to export the stream and analyze it externally with a script.

What if the Follow UDP Stream option is grayed out?

This happens if Wireshark cannot identify a unique conversation for the selected packet, often due to missing packets or corrupted captures. Ensure you have a complete capture file and that the packet is part of a recognizable UDP flow. Restarting Wireshark or reloading the capture may resolve temporary state issues.

Is there a way to automatically convert UTF-8 to ASCII in Wireshark?

Wireshark does not perform automatic character set conversion. It displays bytes as ASCII if possible. If the data is UTF-8, Wireshark will display the characters correctly if your interface supports Unicode. If not, you may see replacement characters. Export the stream and use a text editor that supports UTF-8 for accurate viewing.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More