Beginner

Hex to Text Converter — Decode or Encode Hexadecimal

Paste hex bytes (space-separated or continuous) to decode them into readable text, or type any string to encode it as hexadecimal — perfect for debugging protocols, reading binary files or understanding character encodings.

Direction

Hex bytes separated by spaces, or continuous (e.g. 48656c6c6f). Prefix 0x is stripped.
Decoded text
Hello World
Byte count
11
Character range
0x20 – 0x72
0x4872
0x65101
0x6C108
0x6C108
0x6F111
0x2032
0x5787
0x6F111
0x72114
0x6C108
0x64100
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Each two-digit hex pair represents one byte. Paste your hex string (spaces optional) and the decoder converts the byte sequence to UTF-8 text. For text-to-hex, each character is UTF-8 encoded and each byte written as two hex digits.

Formula
Each 2-digit hex pair → 1 byte → UTF-8 decode → character
How this is calculated

Hexadecimal (base-16) is a compact way to represent binary data: each byte is written as exactly two hex digits (00–FF), giving values from 0 to 255. The converter strips spaces and optional 0x prefixes, splits the remaining string into two-character chunks, and parses each as a base-16 number to obtain the raw byte sequence.

The byte array is then decoded using the UTF-8 standard, which maps byte patterns to Unicode characters. A single ASCII character maps to one byte (e.g. "A" = 0x41 = 65). Non-ASCII characters like accented letters or emoji may be represented by 2–4 bytes in UTF-8, so the byte count can exceed the character count. If a sequence is not valid UTF-8, the converter falls back to interpreting each byte as a Latin-1 character code.

For text-to-hex conversion the process is reversed: the string is encoded to UTF-8 bytes, and each byte is formatted as a zero-padded two-digit hex pair. The output is shown with spaces for readability and as a continuous string.

Frequently asked questions

Emoji and many non-ASCII characters are encoded in UTF-8 as 2, 3 or 4 bytes. For example, "😀" encodes to 4 bytes: F0 9F 98 80. The byte count shows the total bytes, not the number of visible characters.

No. You can enter continuous hex (e.g. 48656c6c6f) or space-separated pairs (48 65 6c 6c 6f) — both formats are accepted. The 0x prefix on individual bytes is also stripped automatically.

Hex is used everywhere in computing: colour codes (#FF5733), memory addresses, network packet dumps, cryptographic hashes, binary file editors (hex editors), and low-level protocol analysis. It is easier to read than binary while still being directly translatable to bytes.

Also known as

hex to text converter
hexadecimal to ascii
hex to string decoder
hex decoder online
text to hex encoder
hex to utf8 converter
hexadecimal string converter

APA

TG we-Calculate Editorial Team. (2026). Hex to Text Converter — Decode or Encode Hexadecimal [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/hex-to-text-calculator

Chicago

TG we-Calculate Editorial Team. "Hex to Text Converter — Decode or Encode Hexadecimal." TG we-Calculate. 2026. https://we-calculate.com/calculator/hex-to-text-calculator.

IEEE

TG we-Calculate Editorial Team, "Hex to Text Converter — Decode or Encode Hexadecimal," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/hex-to-text-calculator

BibTeX

@misc{wecalculate_hex_to_text_calculator, title = {Hex to Text Converter — Decode or Encode Hexadecimal}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/hex-to-text-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?