Binary, Hex & Text Converter

Convert between text, binary, hexadecimal and decimal in one place — pick what your input is and see all the others at once, with full UTF-8 support.

Text
Binary
Hexadecimal
Decimal (bytes)

🔒 Runs entirely in your browser — nothing you type is uploaded or stored on a server.

This converter moves text between binary, hexadecimal and decimal — in every direction. Tell it what your input is, paste it in, and it shows all the other representations at once: the readable text, the 8-bit binary, the hex bytes and the decimal byte values, each with its own copy button. Convert text to binary, binary to text, text to hex or hex to text without switching tools or fiddling with settings.

It works on the actual bytes of your text using UTF-8, the encoding the web runs on. That means it's correct for more than plain ASCII: an emoji or an accented letter becomes the exact byte sequence a computer stores, and converting those bytes back reproduces the original character. Binary is shown as clean 8-bit groups and hex as two-digit bytes, so the output lines up with how data is really laid out in memory and files.

Formatting options keep the output tidy: toggle spacing between bytes for readability or pack it tight, and switch hex to uppercase. Invalid input — an odd number of hex digits, a stray character, a decimal value over 255 — gets a clear, specific error instead of a wrong answer. It's handy for programming, electronics and networking work, for learning how characters map to bytes, and for debugging encodings. Everything runs in your browser. For Base64 specifically, use the Base64 tool.

How to use

  1. Set “Input is” to match what you're pasting: text, binary, hex or decimal.
  2. Type or paste your input into the box.
  3. Read the conversions — text, binary, hex and decimal all update instantly.
  4. Toggle spacing between bytes or uppercase hex to match the format you need.
  5. Copy any representation with its Copy button.

Examples

Text to binary
“Hi” becomes “01001000 01101001” — one 8-bit group per character.
Text to hex
“Hello” becomes “48 65 6c 6c 6f”, the hex byte values you'd see in a hex editor.
Binary to text
Paste “01001000 01101001” with the input set to Binary to read “Hi” back out.
Unicode bytes
An emoji or accented letter shows its full multi-byte UTF-8 sequence in hex and binary, and converts back perfectly.

Frequently asked questions

Can it convert both directions?
Yes. Choose what your input is — text, binary, hex or decimal — and every other representation is shown at once. So text→binary, binary→text, text→hex, hex→text and decimal in any direction all work from the one tool.
How is text turned into bytes?
Using UTF-8, the standard web encoding. Each character becomes one or more bytes, and each byte is shown as 8 binary bits, two hex digits, or a decimal number 0–255. This matches how text is actually stored in files and memory.
Does it handle emoji and accents correctly?
Yes. Because it works on real UTF-8 bytes, a character like é or 😀 becomes its exact multi-byte sequence and converts back to the original. Plain ASCII characters are always a single byte.
What counts as valid binary or hex input?
Binary must be 0s and 1s in a multiple of 8 bits (spaces are ignored). Hex must be pairs of 0–9 and a–f (spaces, commas and a 0x prefix are ignored). Decimal must be whole numbers 0–255 separated by spaces or commas. Anything else shows a specific error.
Why did I get an error?
The input doesn't fit the selected format — for example an odd number of hex digits, a binary length that isn't a multiple of 8, a letter in a decimal field, or a byte value above 255. The message tells you exactly what to fix.
Is my data uploaded?
No. Every conversion runs in your browser, so whatever you paste stays on your device.