Text to Hex Converter
Example
Input:
Hi!
Output:
48 69 21
About this converter
Hexadecimal writes each byte as two digits from 0–9 and A–F, so one byte is always exactly two characters — which is why hex is the lingua franca of low-level work: memory dumps, color codes, MAC addresses, hash outputs and binary protocols are all conventionally written in hex. The important subtlety for text is the encoding underneath: this converter shows the UTF-8 bytes, so an ASCII letter is one byte (H = 48) while an accented letter is two (é = C3 A9) and an emoji is four. If a different tool shows different hex for the same text, it is using a different character encoding — UTF-16 is the usual suspect.
Frequently Asked Questions
Why does one letter sometimes become four hex pairs?
In UTF-8, characters outside basic Latin take 2–4 bytes. The hex shows bytes, not characters.
Is hex the same as Base64?
Both write binary data as text. Hex uses 16 symbols (2 characters per byte, 100% overhead); Base64 uses 64 symbols (33% overhead) and is preferred for transport; hex is preferred for inspection.
What does 0x mean in front of hex?
A prefix programmers add to mark a number as hexadecimal (0x48 = 72 decimal). It is notation, not part of the value.