bytes-to-ascii
Converting bytes to ASCII decodes a byte sequence into text. Bytes can be in hex (48 65 6C 6C 6F) or decimal (72, 101, 108, 108, 111); both decode to the same text. The ZTools Bytes to ASCII converter accepts either format, auto-detects which is which, and outputs the resulting text. Non-ASCII bytes (β₯ 128) are flagged or decoded per chosen encoding (Latin-1, UTF-8, Windows-1252).
Use casesβ
Decode a hex dump from a debuggerβ
gdb/lldb shows memory as hex; tool turns the bytes back into text.
Read a binary blob from network captureβ
Wireshark exports hex; copy-paste, convert, read.
Inspect packed data structuresβ
A C struct with embedded strings; manually carve out the bytes for inspection.
How it worksβ
- Paste bytes β Hex (with or without spaces / 0x prefix) or decimal (comma / space-separated).
- Detect format β If only 0-9 and A-F characters, treat as hex; else decimal.
- Pick encoding β ASCII (default), UTF-8, Latin-1. Determines how bytes β₯ 128 decode.
- Decode + display β Output text. Non-printable bytes shown as escapes.
Examplesβ
Input: Hex "48 65 6C 6C 6F"
Output: "Hello".
Input: Decimal "72 101 108 108 111"
Output: "Hello".
Input: Hex "FF FE 41 00"
Output: Looks like UTF-16 LE. Toggle UTF-16 mode for proper decoding.
Frequently asked questionsβ
How is this different from decimal-to-ascii?
Same operation but accepts hex too. Convenience tool for byte arrays from debuggers / network captures.
Encoding detection?
Tool warns when bytes β₯ 128 appear β pure ASCII would have all bytes < 128.
Privacy?
All in browser.
Tipsβ
- For mixed-encoding dumps, try ASCII first; if garbled, try UTF-8 or Latin-1.
- For multi-byte char encodings, bytes count differs from char count. UTF-8 Γ© is 2 bytes; ASCII A is 1.
Try it nowβ
The full bytes-to-ascii runs in your browser at https://ztools.zaions.com/bytes-to-ascii β no signup, no upload, no data leaves your device.
Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub