Text to Hex Converter

Convert text to hexadecimal bytes, or paste hex to decode it back into readable text.

Input
Output
Ready

Text to hexadecimal, explained

Hexadecimal (base 16) writes each byte as exactly two digits from 0–9 and a–f, so a byte value from 0 to 255 becomes 00 to ff. It is the standard way developers look at raw data: shorter than binary, and easy to map back to bytes. This converter encodes your text as UTF-8 first, then shows every byte in hex.

TextHex (UTF-8)
Hello48 65 6c 6c 6f
éc3 a9
€e2 82 ac
😀f0 9f 98 80

Note that hex bytes are different from Unicode code points. The euro sign is code point U+20AC, but in UTF-8 it is stored as the three bytes e2 82 ac. If you need code points, the hidden character finder shows them for invisible characters.

Output formats

FormatExampleWhere it is used
Spaced bytes48 65 6cHex editors, Wireshark, readable dumps
Continuous48656cHashes, database BLOB literals, compact storage
0x prefix0x48 0x65C, C++, Java and JavaScript byte arrays
\x escapes\x48\x65Python, PHP, Bash and C string literals
Percent%48%65URL encoding of raw bytes

Decoding hex back to text

Choose Hex → Text and paste the hex in any of the formats above — the decoder removes 0x, \x and % prefixes, spaces, commas and line breaks before reading the bytes. You can even paste a mix. If the digits do not form complete bytes or valid UTF-8, the tool says so instead of printing random symbols.

Typical uses

Frequently asked questions

What is "Hello" in hex?
48 65 6c 6c 6f. Each letter is one byte because it is a basic ASCII character.
Why does one character produce several hex bytes?
The converter uses UTF-8, where characters outside basic ASCII take 2 to 4 bytes. For example é is c3 a9.
Can I decode hex with 0x or \x prefixes?
Yes. Prefixes, spaces, commas and line breaks are all stripped before decoding, so most hex formats can be pasted directly.
Is hex the same as Base64?
No. Both represent bytes as text, but hex uses 2 characters per byte while Base64 uses about 1.33, so Base64 is more compact. Use the Base64 tool for that format.

Related tools

Text to Binary, Base64 Encode/Decode, Hash Generator, URL Encode/Decode.