Text Tools

Binary & Hex Encoder

Convert text to binary, hexadecimal, octal, and decimal. Decode any format back to plain text instantly.

Runs in your browser

Encode Text to Code

Decode Code to Text

Conversion Reference

What is the Binary Hex?

Binary (base-2), hexadecimal (base-16), decimal (base-10), and octal (base-8) are different numeral systems used extensively in computing and digital electronics. Hex is especially common in programming for representing color codes, memory addresses, and byte values because each hex digit maps cleanly to exactly four binary bits. This converter lets you instantly translate numbers and text strings between all four bases.

How to use the Binary Hex

  1. Select the input type: a plain number to convert between bases, or a text string to encode/decode.
  2. Enter your value in any of the input fields - binary, decimal, hexadecimal, or octal.
  3. All other base representations update instantly as you type.
  4. For text strings, each character is converted to its ASCII code and then represented in your chosen base.
  5. Copy any result field with the copy icon to the right of each output.

Frequently asked questions

Hexadecimal provides a compact representation of binary data. One hex digit (0 - F) represents exactly 4 bits, so a byte (8 bits) is always exactly 2 hex digits. This makes it easy to read and write binary values like memory addresses and color codes.
Hex values are often prefixed with "0x" in code (e.g., 0xFF) or "#" in CSS color codes (e.g., #FF5733). They use digits 0 - 9 and letters A - F (or a - f).
Two's complement is the standard method for representing negative integers in binary. The most significant bit acts as a sign bit. In 8-bit two's complement, 11111111 represents -1, not 255. This tool converts unsigned values; for signed negative numbers, specify the bit width.