Text to Binary, Hex & Decimal Converter (UTF-8) Convert text to binary, hex, or decimal and back.
100% offline
Input5 chars · 1 lines
Output44 chars
Encoded · 44 chars
01001000 01100101 01101100 01101100 01101111

About Text to Binary, Hex & Decimal Converter (UTF-8)

This text to binary converter turns any text into its binary, hexadecimal, or decimal byte representation — and converts each of them back to readable text. Every conversion is UTF-8 byte-based, so accents, non-Latin scripts, and emoji round-trip correctly instead of breaking on multi-byte characters.

It's a handy tool for learning how computers store text, debugging low-level encodings, inspecting protocol bytes, or completing classroom exercises where you need binary-to-text and back. Paste in a string of 0s and 1s, a run of hex pairs, or a list of decimal byte values and decode it instantly.

Everything runs locally in your browser — nothing you type is ever uploaded, so it works completely offline and keeps your data private.

Features

  • Convert text to binary, hex, or decimal — and decode each back to text
  • Full UTF-8 support: accents, non-Latin scripts, and emoji round-trip correctly
  • Whitespace-tolerant decoding of space-separated or contiguous input
  • Clear errors on malformed input; works completely offline

How to use

  1. Paste your text, or a string of binary, hex, or decimal bytes, into the input pane.
  2. Pick a direction: Text → Binary / Hex, or Binary / Hex → Text.
  3. Read the converted result in the output pane as you type.
  4. Copy the output, or clear the input to start over.

Frequently asked questions

How is text converted to binary?

The text is first encoded to bytes using UTF-8, then each byte is written as eight binary digits (0s and 1s). ASCII characters become one byte each, while accented letters, other scripts, and emoji use two to four bytes — which is why this tool round-trips them correctly.

Why is each binary group eight digits long?

A byte is eight bits, so each UTF-8 byte is shown as a padded 8-bit group (for example, "A" becomes 01000001). Groups are separated by spaces so the output stays readable and decodes unambiguously.

Can I convert binary or hex back to text?

Yes. Choose the Binary → Text or Hex → Text direction and paste your values. Whitespace between groups is ignored, and malformed input (wrong bit length, odd hex digits, or non-UTF-8 bytes) produces a clear error instead of garbled output.

What is the difference between binary, hex, and decimal here?

They are three views of the same underlying bytes. Binary shows each byte in base 2 (eight digits), hex shows it in base 16 (two digits), and decimal shows it in base 10 (0–255). Use whichever notation your task or protocol expects.

Is my data sent anywhere?

No. All conversion happens locally in your browser using the built-in TextEncoder and TextDecoder APIs. Your input never leaves your device, and the tool works with the network unplugged.

Everything runs locally in your browser — your input is never uploaded.