What hexadecimal encoding is
Hexadecimal is base-16: each byte (a number from 0 to 255) is written as exactly two digits using 0–9 and a–f. Hex is the standard way to read raw bytes because it lines up neatly — one byte is always two characters — and it maps cleanly onto how computers group bits. The letter A is byte 41, a space is 20, and a newline is 0a.
How to use this tool
- Type text on the left and Encode to see its bytes in hex.
- Paste hex and Decode to read it back; spaces, colons and
0xprefixes are ignored automatically. - Set Uppercase and the Separator (space, none or colon) to match the format you are working with.
Why your text may be more bytes than characters
Text is converted to UTF-8 before being shown as hex. ASCII characters are one byte each, but accented letters, other scripts and emoji take two to four bytes, so a short piece of text can produce a longer hex string than you expect. Decoding reverses the UTF-8 step, so multi-byte characters reassemble correctly.
Where hex shows up
- Hash digests — MD5, SHA-1 and SHA-256 results are printed as hex.
- Colours — CSS
#ff8800is three hex bytes. - Debugging — hex dumps reveal invisible characters like BOMs, tabs and line endings.
- MAC addresses and keys — commonly written as colon-separated hex.
Examples
Frequently asked questions
How do I convert text to hex?
Can I paste hex with 0x prefixes or colons?
Why is the hex longer than my text?
Is the conversion done locally?
Related tools
Every tool on encoder.website converts your text and hands the result straight back — it is never stored. Pick another tool from the sidebar any time.