Binary Hex Base64

Text to Binary Converter

Convert text to binary, hexadecimal, decimal, octal, or Base64 — and back. Live conversion as you type. One character per byte, space-separated.

All conversions happen in your browser. No data is sent anywhere.

Text ↔ Binary

Each character is encoded as an 8-bit binary number, space-separated.

How It Works

ASCII & Unicode Code Points

Each character has a numeric code point. ASCII covers the first 128 characters (0–127). For example: 'A' = 65, 'a' = 97, '0' = 48, space = 32. The same code point can be expressed in binary (01000001), hex (41), decimal (65), or octal (101). This converter uses the character's code point for all conversions.

Binary vs Hex vs Base64

Binary uses only 0 and 1 — 8 bits per character, the most verbose format. Hex uses base-16 (0–9, A–F) — 2 hex digits per character, compact and widely used in programming. Base64 encodes bytes using 64 printable characters — used in data URLs, email attachments, and JSON/XML encoding of binary data.

FAQ

How do you convert text to binary?

Each character is converted to its ASCII (or Unicode) decimal code point, then written in base 2. 'A' = ASCII 65 = binary 01000001. This converter represents each character as 8 bits (1 byte), space-separated. To decode, each 8-bit group is converted back to its code point, then to a character.

What is hexadecimal?

Hexadecimal (hex) is base 16, using digits 0–9 and letters A–F. Each hex digit represents 4 bits, so two hex digits = one byte. 'A' = hex 41. Hex is widely used in programming, color codes (#FF5733), memory addresses, and debugging because it's compact and maps cleanly to binary.

What is Base64?

Base64 encodes binary data using 64 printable ASCII characters. It turns 3 bytes into 4 characters, increasing size by ~33%. Used in data URIs (images embedded in CSS/HTML), email attachments (MIME), JWT tokens, and API responses to safely transmit binary over text-only channels.

What is the difference between encoding and encrypting?

Encoding (binary, hex, Base64) is a reversible transformation that changes the representation of data without hiding it — anyone can decode it. Encryption uses a secret key to make data unreadable without the key. Base64 is encoding, not encryption — it provides no security on its own.