Text To Hex

Remove Ads
Remove Ads

Result

Result
Remove Ads

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

CharacterUTF-8 bytes (hex)Note
A41ASCII, 1 byte
Hi48 69one byte each
éc3 a92 bytes (Latin accent)
e4 b8 ad3 bytes (CJK)
😀f0 9f 98 804 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 47 for 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.