How to use the Text to Hex Converter
- Choose the direction.
- Type text or paste hex (spaces and 0x prefixes are fine).
- Copy the result.
What does this tool do?
Hexadecimal writes each byte as two digits from 0–9 and A–F, which is compact and easy to read in debuggers, network tools and file dumps. “Hi” is 48 69.
Decoding accepts hex with or without spaces and with 0x prefixes, and tells you if the bytes aren't valid UTF-8.
Why use it?
- Both directions.
- Forgiving input.
- UTF-8 validation.
Use cases
- Inspect hidden characters such as tabs, non-breaking spaces and line endings.
- Prepare test data for network protocols, embedded devices and APIs.
- Decode hex dumps from logs and debuggers into readable text.
Text and its hex bytes
UTF-8 bytes, two hex digits each:
| Text | Hex |
|---|---|
| Hello | 48 65 6C 6C 6F |
| A | 41 |
| € | E2 82 AC |
| new line | 0A |
Common mistakes
- Assuming one hex pair per character — non-English characters use two to four bytes.
- Pasting hex with an odd number of digits; every byte needs two.
- Confusing hex text with colour codes like #FF5733, which are three numbers, not text.
Privacy
The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.
Frequently asked questions
What's the difference between CRLF and LF?
Windows line endings are 0D 0A (CR LF); macOS and Linux use just 0A (LF). Hex makes this visible.
Is uppercase or lowercase hex correct?
Both mean the same: 4F and 4f are identical.
Can it decode Base64?
No — Base64 is a different encoding. Use a Base64 decoder for that.
Content last updated . See how M2Toolkit works.