Hex ⇄ Text/Binary Converter

Text, hex, binary, decimal & octal — edit any field, every other one updates live

Separator:
Nothing you enter here is ever uploaded — every conversion happens locally in your browser.

About this tool

Every character your keyboard produces is stored as a number under a text encoding — this tool assumes UTF-8 — and that number can be displayed in different bases: hexadecimal (base 16, used in color codes and memory addresses), binary (base 2, the raw bits), decimal (base 10, the number itself), or octal (base 8, still seen in Unix file permissions). Editing any field re-derives all the others live from the same underlying byte values.

Why does one character sometimes take up multiple bytes? ▾

UTF-8 encodes ASCII characters in a single byte but uses two, three, or four bytes for characters outside that range — accented letters, emoji, and non-Latin scripts included — so their hex or binary representation runs proportionally longer.

What's the difference between binary 01000001 and decimal 65? ▾

They're the same value in different bases — 01000001 in binary equals 65 in decimal, which happens to be the ASCII/UTF-8 code point for the capital letter "A".

Can I convert a full sentence, or only single characters? ▾

A full sentence works fine — each character is converted independently and the results are shown space- or byte-separated in each format, in the order they appear in the input.