Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

Hex to Text Converter

Decode hexadecimal to readable text in real time, or convert text to hex. Supports ASCII, UTF-8, Latin-1 and UTF-16, flexible hex formats, a byte-by-byte breakdown and instant copy. Fast, free and no signup.

  • 100% free
  • No Signup
  • Live conversion

Byte breakdown

See every byte as hex, decimal, binary and character. Shows the first 64 bytes.

#HexDecimalBinaryCharacter
ADVERTISEMENT
Demo Ad 728 x 90

How to convert hex to text

1Paste your hex

Paste hexadecimal with or without spaces, 0x prefixes or \x escapes.

2Pick the encoding

Choose UTF-8, ASCII, Latin-1 or UTF-16 to match your data.

3Copy the text

Your readable text appears instantly. Copy it or download it.

HEXADECIMAL DECODING GUIDE

Hex to Text Converter: Decode Hexadecimal to ASCII, UTF-8 and Readable Text Online Free

Hexadecimal looks like a wall of numbers and letters, but behind every pair of characters such as 48 65 6C 6C 6F there is a real byte, and behind those bytes there is readable text. Our free hex to text converter turns that hex code into plain text in real time, as you type or paste. It works as a hex to ASCII converter, a hex to UTF-8 decoder, a hexadecimal to string tool and a text to hex encoder in one page, so you can decode a hex dump, read a hex string from a log file, solve a programming or CTF puzzle, inspect network data, or simply convert your own text to hexadecimal. Unlike basic converters, this tool lets you choose the character encoding (UTF-8, ASCII, Latin-1, UTF-16 LE or UTF-16 BE), accepts messy real-world input such as spaces, commas, new lines, 0x prefixes, \x escapes and percent-style hex, warns you about invalid characters or odd-length input, and shows a byte-by-byte breakdown with hex, decimal, binary and character columns so you can see exactly how your data was decoded. There is no signup, no software to install and no limit, and everything is processed inside your browser, so the hex and text you enter are never uploaded to a server.

Hex to ASCII and UTF-8 Decoder

Decode hexadecimal to text using the encoding that matches your data. UTF-8 handles letters, symbols, accents and emoji, ASCII handles classic 7-bit text, Latin-1 handles older Western European data and UTF-16 handles text from Windows and Java systems.

Flexible Hex Input Formats

Paste hex exactly as you found it: 48 65 6C 6C 6F, 0x48 0x65 0x6C, \x48\x65\x6C, 48:65:6C, 48,65,6C or one long string like 48656C6C6F. The converter cleans separators and prefixes automatically and tells you when something is wrong.

Byte-by-Byte Breakdown

See each byte as a hex value, decimal number, 8-bit binary and character. This makes it easy to learn how hexadecimal works, to debug strange characters and to spot control codes such as line feeds, tabs and null bytes.

What Is Hexadecimal and How Does Hex Map to Text?

Hexadecimal, also called hex or base 16, is a number system that uses sixteen symbols: the digits 0 to 9 and the letters A to F. Computers store everything as bytes, and one byte holds a value from 0 to 255. Writing a byte in decimal takes up to three digits and writing it in binary takes eight, but in hexadecimal it always takes exactly two characters, from 00 to FF. That is why programmers, network engineers and security researchers love hex: it is compact, easy to read and lines up perfectly with how data is stored.

Text is stored as numbers too. Every character has a numeric code defined by a character encoding such as ASCII or Unicode. The capital letter A is 65 in decimal, which is 41 in hex. The word Hello is the five bytes 48 65 6C 6C 6F. A hex to text converter reads your hex two characters at a time, turns each pair into a byte value and then uses a character encoding to translate those bytes into letters, digits, symbols and emoji. Choosing the right encoding matters, because the same bytes can mean different characters in different encodings.

How to Convert Hex to Text Online (Step by Step)

Decoding a hex string takes only a few seconds with this tool. You do not need to calculate anything by hand or write a script. Follow these steps to convert hexadecimal to readable text.

  1. Paste your hex code: Enter or paste your hexadecimal into the Hex input box. Separators and prefixes such as spaces, commas, 0x and \x are cleaned automatically.
  2. Select Hex to text mode: This is the default mode. The decoded text appears instantly in the output box as you type.
  3. Choose the character encoding: Use UTF-8 for most modern data, ASCII for plain English text, Latin-1 for legacy Western European data and UTF-16 for text exported from Windows or Java.
  4. Check the warnings and stats: The tool reports bytes, characters and any invalid characters or replacement symbols so you know whether the result is reliable.
  5. Copy or download the result: Click Copy result or Download .txt to save your decoded text.

To convert text to hex, switch to Text to hex mode, type or paste your text and choose the separator, prefix and letter case you want. The Swap and reverse button moves the result into the input box and flips the mode, which is handy for checking that a conversion works in both directions.

Common Hex Values and Their ASCII Characters

Learning a few common hex codes makes hex dumps much easier to read. The table below lists some of the most frequently seen ASCII values. You will notice that uppercase and lowercase letters differ by exactly 20 in hex, and that digits start at 30.

Common hex to ASCII values
Hex Decimal Character Note
0A10LFLine feed (new line on Linux and Mac)
0D13CRCarriage return (with 0A on Windows)
2032SpaceThe space character
2133!Exclamation mark
30 to 3948 to 570 to 9Digits start at 30
4064@At sign, used in email addresses
41 to 5A65 to 90A to ZUppercase letters
61 to 7A97 to 122a to zLowercase letters
7E126~Tilde

Hex to UTF-8, ASCII, Latin-1 and UTF-16: Why Encoding Matters

ASCII uses one byte per character and only covers 128 symbols, which is enough for basic English letters, digits and punctuation. UTF-8 is the most common encoding on the web today. It uses the same single bytes as ASCII for basic characters, but represents other characters with two, three or four bytes. UTF-16 uses two or four bytes per character and is common in Windows, Java and JavaScript internals. Latin-1 uses one byte per character and covers many accented letters used in Western European languages. If you choose the wrong encoding, you will see question marks, boxes or strange symbols known as mojibake. The table below shows how a few characters look in different encodings.

The same characters in different encodings (hex bytes)
Character UTF-8 Latin-1 UTF-16 LE UTF-16 BE
A414141 0000 41
éC3 A9E9E9 0000 E9
€E2 82 ACNot availableAC 2020 AC
😀F0 9F 98 80Not available3D D8 00 DED8 3D DE 00

As a rule of thumb, start with UTF-8. If the output looks wrong and every second byte is 00, try UTF-16 LE. If you only see plain English letters and digits, ASCII and UTF-8 give the same result. If accented characters look broken, try Latin-1.

Hex to Text in Python, JavaScript and PHP

If you want to decode hex inside your own code, most languages make it a one-liner. These short examples convert the hex string 48656c6c6f to the text Hello. They are handy when you need to automate conversions, but for quick checks and debugging an online hex decoder is usually faster.

Python:      bytes.fromhex("48656c6c6f").decode("utf-8")
JavaScript:  Buffer.from("48656c6c6f", "hex").toString("utf8")
PHP:         hex2bin("48656c6c6f")

All three return Hello. In Python, remember to remove spaces or use bytes.fromhex, which accepts spaces between bytes. In PHP, hex2bin requires an even number of hex digits and returns a warning otherwise, which is the same odd-length problem this converter detects for you.

Common Uses of a Hex to Text Converter

  • Debugging and development: Read hex strings from logs, memory dumps, API responses, database BLOB fields and binary protocol messages.
  • Networking and packet analysis: Decode payloads copied from Wireshark or other packet capture tools to see the readable text inside.
  • Cybersecurity and CTF challenges: Solve capture-the-flag puzzles and decode hex-encoded strings found in challenges, scripts and forensic exercises.
  • Embedded systems and Arduino: Read serial output and device messages that are printed as hex bytes.
  • Web development: Decode percent-encoded and hex-escaped strings, and check how special characters are encoded.
  • Learning and teaching: Understand how text, bytes, hexadecimal, decimal and binary relate to each other.
  • Data recovery and file inspection: Read text fragments from hex dumps and hex editor views.

Hex vs Binary vs Decimal vs Base64: Which Format Should You Use?

Hex is only one way to represent bytes. The table below compares the most common formats so you can choose the best one for your task.

Hex compared with other data representations
Format Example for "Hi" Size vs original Best for
Hexadecimal48 692 characters per byteDebugging, hex dumps, colors, protocols
Binary01001000 011010018 characters per byteLearning, bit-level logic
Decimal72 1051 to 3 characters per byteSimple numeric listings, ASCII tables
Base64SGk=About 4 characters per 3 bytesSending binary data in email, JSON and URLs

Troubleshooting: Why Does My Hex Decode to Strange Characters?

  • Odd number of hex digits: Every byte needs two hex digits. If your input has an odd length, a digit may be missing or a leading zero was dropped. The converter ignores the last incomplete digit and shows a warning.
  • Invalid characters: Hex only contains 0 to 9 and A to F. Letters such as G to Z are not valid and are ignored with a warning.
  • Wrong encoding: Question marks and boxes usually mean the bytes do not match the selected encoding. Try UTF-8, then UTF-16 LE or Latin-1.
  • Binary data, not text: Hex from images, compressed files, encrypted data or executables is not text, so it will decode to unreadable symbols no matter which encoding you choose.
  • Control characters: Bytes below 20 are control codes such as tab, line feed and null. They are shown in the byte breakdown table but may look empty in the text output.

Free Hexadecimal to Text Converter: Works on Any Device, No Software Needed

This online hex decoder runs in any modern web browser on Windows, Mac, Linux, Android and iPhone. There is nothing to install, no account to create and no limit on the size of the hex you can convert. Your data stays in your browser and is never sent to a server, which makes it a safe choice for quick checks of logs, strings and snippets. If you also need to convert text to binary, encode Base64 or analyze other text, explore the other free text tools on our website.

Ready to decode? Scroll back up, paste your hex code and read your text in seconds.

ADVERTISEMENT
Demo Ad In-article
COMMON QUESTIONS

Hex to Text Converter FAQ

Quick answers about decoding hexadecimal to text, choosing an encoding and fixing common errors.

How do I convert hex to text?

Paste your hex code into the input box and the decoded text appears instantly. The tool reads every two hex digits as one byte and translates the bytes into characters using the encoding you selected, such as UTF-8 or ASCII. You can then copy the result or download it.

What hex formats does this converter accept?

It accepts hex separated by spaces, commas, colons, dashes or new lines, hex with 0x prefixes, \x escapes and percent-style hex, and hex with no separators at all. Uppercase and lowercase letters both work. Anything that is not a valid hex digit is ignored and reported in a warning.

What is the difference between hex to ASCII and hex to UTF-8?

ASCII uses one byte for each of 128 basic characters, while UTF-8 uses one to four bytes and can represent every Unicode character, including accents, symbols and emoji. For plain English text both give the same result, so UTF-8 is the safest default.

Why do I see question marks or strange symbols after decoding?

This usually means the selected encoding does not match the data, or the hex is not text at all. Try another encoding such as UTF-16 LE or Latin-1. Hex from images, archives, encrypted data or programs is binary data and will not decode into readable text.

Can I convert text to hex with this tool?

Yes. Switch to Text to hex mode, enter your text and choose the encoding, separator, prefix and letter case. You can also use Swap and reverse to move the output back into the input and check the conversion in the opposite direction.

Why does my hex input show an odd length warning?

Each byte needs exactly two hex digits, so valid input has an even number of digits. An odd length often means a digit is missing or a leading zero was removed, for example 9 instead of 09. Fix the input and the warning disappears.

Is this hex to text converter free and private?

Yes. It is free, needs no signup and has no usage limit. All conversion happens inside your browser, so the hex and text you enter are not uploaded, saved or stored by our website.

ADVERTISEMENT
Demo Ad 970 x 250

All Tools, One Place

Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.

Explore All Tools →