Skip to content
AllCalcHub

Text to Binary Converter

Convert text to binary, hex, decimal or Base64 and back again.

About the Text to Binary Converter

Computers store text as numbers. Each character is encoded as one or more bytes using UTF-8, the standard for the web: plain English letters take one byte (the same as ASCII), while accented letters take two, and most emoji take four.

Binary shows each byte as 8 bits, hex as two digits 00–FF, decimal as 0–255, and Base64 packs bytes into letters and digits for sending in emails and URLs.

The formula

byte = Σ bitᵢ × 2ⁱ; 'A' = 65 = 01000001₂ = 41₁₆

Examples

CharacterDecimalBinaryHex
A650100000141
a970110000161
0480011000030
space320010000020
é195 16911000011 10101001C3 A9

Worked example

Example: Encoded = 01001111 01001011

  1. Inputs: Direction: Text → code; Code: Binary; Input: OK.
  2. Formula: byte = Σ bitᵢ × 2ⁱ; 'A' = 65 = 01000001₂ = 41₁₆
  3. Result: Encoded = 01001111 01001011

Questions people ask

Is binary the same as ASCII?

ASCII is the first 128 codes; UTF-8 matches ASCII for those and extends it for every other language.

Why does an emoji become 4 bytes?

UTF-8 needs four bytes for characters beyond U+FFFF, which includes most emoji.