Text To Hex
Result
| Result |
|---|
Share on Social Media:
Text to Hex — And Hex Back to Text, UTF-8 Aware
Every character is really a sequence of bytes, and hexadecimal is how developers read those bytes. This free converter turns text into hex (UTF-8 encoded) and hex back into text instantly, with control over separators, 0x prefixes, and letter case, plus a byte-level breakdown. Multilingual text and emoji round-trip correctly. In-browser, no signup.
How Characters Become Hex
| Character | UTF-8 bytes (hex) | Note |
|---|---|---|
| A | 41 | ASCII, 1 byte |
| Hi | 48 69 | one byte each |
| é | c3 a9 | 2 bytes (Latin accent) |
| 中 | e4 b8 ad | 3 bytes (CJK) |
| 😀 | f0 9f 98 80 | 4 bytes (emoji) |
Because the converter is genuinely UTF-8 aware, the byte count reflects real encoding — which also makes it a quick way to see why non-Latin text "takes more space" than English.
Format Control for Real Workflows
Different contexts want different hex styles: 48 65 6c 6c 6f (space-separated for readability), 0x48,0x65,0x6c (C array literals), 48656c6c6f (compact, no separators — common in hashes and hex dumps), or uppercase 48 65 6C 6C 6F. Setting the separator, prefix, and case here means the output pastes straight into your code or debugger without hand-editing.
Where Developers Reach for This
- Encoding debugging — when text displays as mojibake, comparing the actual hex bytes reveals whether it's a UTF-8/Latin-1 mismatch.
- Byte constants — generating hex literals for protocols, file formats, and test fixtures.
- Binary inspection — reading file headers (magic numbers like
89 50 4e 47for PNG) and packet contents. - Learning — making the abstract "text is bytes" concrete for students.
Working with whole numbers rather than text? Our base converter handles decimal/hex/binary integer conversion.
Free and Private
Both directions, full format control, all local — no upload, no account, no limits.