Skip to content

Hex, binary and octal

Convert text to hex, binary, octal and decimal bytes, and back. Both directions update as you type.

UTF-8 text

About this tool

Every piece of text is stored as bytes. This page shows those bytes as hexadecimal, binary, octal or decimal numbers, and turns them back into text. Text is encoded as UTF-8, so characters outside ASCII take two to four bytes each.

Both sides update as you type, which makes it handy for reading byte dumps, debugging encodings and preparing hex input for other tools.

Questions

Why does one character turn into several bytes?
UTF-8 uses one byte for ASCII characters and two to four bytes for everything else, including accented letters, most scripts and emoji.
Does the hex need spaces or a 0x prefix?
No. Hex is two digits per byte, and either case works.
Is my input sent to a server?
No. The page loads a compiled Dart engine into a Web Worker and does all the work in your browser tab. Nothing you type or drop in is uploaded, and the tools keep working offline once the page has loaded.

More tools