Text to Hex Converter
Type text to see its bytes in hex, or switch modes to decode hex.
Your text and files never leave your browser — nothing is sent to a server.
How to use
- Type or paste text. Every character is converted to its UTF-8 bytes and each byte is shown as two hex digits.
- Choose a format: spaces for reading, no separator for compact strings, 0x for C-style arrays or \x for string literals in code.
- Turn on “Uppercase” if you prefer A–F over a–f.
- To decode, switch to “Hex → text”. Spaces, commas, colons, hyphens and 0x, \x or % prefixes are all ignored.
FAQ
Why does one character become several hex bytes?
In UTF-8, only ASCII characters fit in one byte. “é” takes 2 bytes (c3 a9), “☕” takes 3 bytes and most emoji take 4.
Can I decode a hex string from another encoding?
Decoding expects UTF-8 bytes. Hex produced from older encodings such as Latin-1 or Shift_JIS may show broken characters (�).
Related tools
All tools
Unit Converters
- Unit Converter
- Temperature Converter
- Weight Converter
- Area Converter
- Length Converter
- Angle Converter
- Calorie Converter
- Data Size Converter
- Dry Volume Converter
- Electric Charge Converter
- Energy Converter
- Flow Rate Converter
- Force Converter
- Fuel Economy Converter
- Luminous Intensity Converter
- Magnetomotive Force Converter
- Power Converter
- Pressure Converter
- Radiation Dose Converter
- Speed Converter
- Time Unit Converter
- Volume Converter