Browser-only numeric encoding tool
Hex, Binary & Octal Encoder / Decoder
Encode any text to hexadecimal representation or decode hex back to readable text. This expanded workspace also includes binary, octal, and decimal byte views so students can compare number systems side by side.
HexBinaryOctalDecimal bytesUTF-8 & ASCII
Teaching note
These formats represent the same bytes in different number systems. They change how data is written, not what the underlying data means.
Workspace
Choose a base and direction.
Text encoding
Drag and drop a `.txt` file to load it into the input area.
ASCII only supports characters 0-127. Use UTF-8 if your text contains accents, emoji, or non-English characters.
Output
Result and explanation.
Base
hex
Bytes
0
Output chars
0
hex output is built from the UTF-8 or ASCII byte value of each character.
Learning mode
How hex encoding works
Each character becomes one or more bytes. Those bytes can be represented in different number systems.
Enter text to see the byte-by-byte breakdown here.