Convert text to binary, octal, decimal and hexadecimal — and back again. Every field is live and editable, with delimiter, padding and uppercase options.

Edit any field below — the others update instantly. Everything runs on your device over UTF-8; nothing is uploaded.

Separator
How each value is separated in the binary, octal and hex output.
Pad each value to a fixed width (e.g. 01001000).
Show hexadecimal letters in uppercase (FF instead of ff).
Invalid input for this format.
Invalid input for this format.
Invalid input for this format.
Invalid input for this format.

About Text to Binary, Octal & Hex

This tool converts text to binary, octal, decimal and hexadecimal — and converts any of those number systems back to readable text. All five fields are live and editable: type in one and the other four update instantly, character by character.

Under the hood each character is encoded as UTF-8 bytes, and each byte is shown in the base you choose. The letter “H”, for example, is 01001000 in binary, 110 in octal, 72 in decimal and 48 in hex. Options control the separator between values, zero-padding to a fixed width, and uppercase or lowercase hex digits.

It is handy for programming exercises, debugging encodings, reading binary messages or preparing data for low-level protocols. Everything runs on your device — nothing you type is uploaded.

How to use Text to Binary, Octal & Hex

  1. Type or paste your text into the Text field — the binary, octal, decimal and hex fields fill in live.
  2. Or paste values into any base field (for example binary) to decode them back into text.
  3. Choose a separator — space, comma, new line or none — for the number output.
  4. Toggle zero-padding for fixed-width values (e.g. 01001000) and uppercase hex if you prefer FF over ff.
  5. Click Copy next to any field, or use Load sample and Clear to experiment.

Frequently asked questions

Each character is encoded as one or more UTF-8 bytes, and each byte is written as an 8-bit binary number. “A” becomes 01000001, “H” becomes 01001000. The same bytes are shown in octal, decimal and hexadecimal.

Yes. Every field works both ways — paste binary, octal, decimal or hex values and the tool decodes them into text instantly. If a value is not valid for that format, it flags the input.

Yes. Because encoding uses UTF-8, accented letters and emoji work — they simply produce more than one byte per character. An “é” yields two bytes and most emoji yield four.

It pads each value to a fixed width, so binary bytes always show 8 digits (01001000 instead of 1001000). That keeps columns aligned and is the conventional way to write bytes.

No. The conversion runs entirely in your browser using JavaScript, so nothing you type or paste ever leaves your device.

Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.