THE RIGHT TOOL FOR YOUR NEXT BYTE

Text to Hex Converter

Paste your text to encode it as uppercase hex bytes. UTF-8 handles accented characters, other writing systems, and emoji. Choose ASCII for strict ASCII input.

Runs locally
12 charactersText → bytes
Ready
12 bytesUTF-8
Tip: paste your input — results update automatically in your browser.
Your data stays in your browser Free. No sign-up. Unicode & ASCII support
A CLOSER LOOK

The bits behind your text.

All 12 bytes
CHARACTERHellospaceworld!
BINARY010010000110010101101100011011000110111100100000011101110110111101110010011011000110010000100001
DECIMAL721011081081113211911111410810033
HEX48656C6C6F20776F726C6421

Each column is one byte. Multi-byte UTF-8 characters are grouped with their Unicode code point.

01 / EXPLAINED SIMPLY

How text becomes hexadecimal bytes

Text is represented by Unicode code points. An encoding such as UTF-8 maps each code point to a sequence of bytes. Hexadecimal then displays each byte using two digits, including a leading zero for values under 16.

For example, the letter é is Unicode code point U+00E9. Its UTF-8 encoding has the two bytes C3 A9. The English text Hi uses 48 69 in both ASCII and UTF-8.

ASCII letters

Both UTF-8 and ASCII give 48 69.

Hi
Accented letter

Unicode U+00E9 uses two UTF-8 hex bytes: C3 A9.

é
Emoji

U+1F642 uses four UTF-8 hex bytes: F0 9F 99 82.

🙂
02 / CONVERSION EXAMPLES

Text to hex examples

Each pair of uppercase hexadecimal digits represents one UTF-8 byte.

Text inputs and their UTF-8 hexadecimal byte outputs
Text inputUTF-8 hex bytesBytesNotes
Hi
48 692Matches strict ASCII byte values.
é
C3 A92Two-byte UTF-8 sequence for U+00E9.
🙂
F0 9F 99 824Four-byte UTF-8 sequence for U+1F642.
Space
201Regular ASCII space U+0020.
03 / EXPLAINED SIMPLY

Read hex notation and separators

The converter writes uppercase pairs such as 48 69. Another common way to write the same bytes is 0x48 0x69. The 0x prefix marks hexadecimal in that notation.

Choose Space, New line, or None to change how the bytes are separated. With None, count two digits per byte. Use Text to Binary to see the same encoded bytes in base 2, or Hex to Text to decode hexadecimal byte pairs back into readable words. For single integers, use Hex to Decimal to read an individual hex value in base 10.

GOOD QUESTIONS

Before you convert.

A few useful details for this tool.

How do I convert text to hex?

Choose an encoding, paste text, and select Convert to hexadecimal. The tool shows each encoded byte as two uppercase hex digits.

Should I select UTF-8 or ASCII?

Use UTF-8 for Unicode text, including accents and emoji. Use ASCII when the source is limited to ASCII characters and you want the tool to reject anything outside that range.

What does 0x mean before a byte?

0x is a notation prefix for a hexadecimal value. For example, 48 and 0x48 denote the same hex byte. The default output shows the hex pairs directly.

Do spaces and line breaks get their own bytes?

Yes. Whitespace in the original text is part of the encoded message. A space has hex value 20, and a line feed has hex value 0A.