Bx
ToolPile
All Tools

Text / Binary / Hex Converter

Convert text to binary, hexadecimal, octal, or decimal and back.

Advertisement
Advertisement

This converter translates text into its binary and hexadecimal representations, and back again. Every character you type is stored by a computer as a number, and those numbers can be written in different bases: base-2 (binary) or base-16 (hex). This tool exposes that underlying data so you can see exactly how a string is encoded byte by byte.

How to use it

  1. Type or paste your text into the input field, or enter binary or hex values you want to decode.
  2. Choose the conversion direction: text to binary, text to hex, or the reverse to turn raw values back into readable text.
  3. Read the output, where each character maps to a group of digits (8 bits per byte in binary, or two hex digits per byte).
  4. Copy the result for use in code, documentation, or testing.

When decoding, separate binary bytes with spaces (for example 01001000 01101001) and hex pairs likewise so the converter can split them correctly.

How text maps to binary and hex

Characters are mapped to numbers through a character encoding. ASCII assigns each letter, digit, and symbol a number from 0 to 127, so the capital letter A is 65. UTF-8, the modern web standard, is backward-compatible with ASCII for those first 128 values but uses two to four bytes for accented letters, emoji, and other scripts.

That number is then written in a chosen base. The value 65 is 01000001 in binary and 41 in hex. A byte holds 8 bits, so it can represent 256 values (0 to 255). Each bit is a power of two, read right to left: 64 + 1 gives 65. Hexadecimal is simply a shorthand for binary, because one hex digit equals exactly four bits, making long bit strings easier to read.

CharacterDecimalBinaryHex
A650100000141
a970110000161
0480011000030
space320010000020

FAQ

Why are there 8 digits per character in binary?

One byte is 8 bits, and a single ASCII character fits in one byte. Leading zeros are kept so each byte stays a fixed width, which makes the output easy to split and align.

What is the difference between ASCII and UTF-8 here?

For plain English letters and common symbols the two produce identical bytes. They diverge only for characters above value 127, where UTF-8 uses multiple bytes to cover the full range of world languages and symbols.

What are practical uses for this?

It helps when debugging encoding issues, inspecting data formats, learning how computers store text, working with low-level protocols, or generating test fixtures that need exact byte values.

Can I convert binary or hex back to text?

Yes. Paste the binary or hex values, with bytes separated by spaces, and the converter reassembles them into the original characters using the same encoding rules.