ASCII, Binary, Hexadecimal & Base64 Explained (With Quick Conversion Chart)
Understand how computers represent text and numbers across Base-2 (Binary), Base-8 (Octal), Base-10 (Decimal), Base-16 (Hex), and Base64.
Computers store every character, color, and file as binary bits (0 and 1). To make binary data human-readable or safe to transmit across text-based protocols like HTTP and email, developers convert between Decimal (Base-10), Binary (Base-2), Octal (Base-8), Hexadecimal (Base-16), ASCII, and Base64.
Quick Conversion Reference Table (0 to 15 & Common ASCII Characters)
| Decimal (Base-10) | Binary (4-Bit / 8-Bit) | Octal (Base-8) | Hexadecimal (Base-16) | ASCII Example |
|---|---|---|---|---|
| 0 | 0000 | 0 | 0x0 | NUL |
| 8 | 1000 | 10 | 0x8 | BS |
| 10 | 1010 | 12 | 0xA | LF (\n) |
| 15 | 1111 | 17 | 0xF | SI |
| 65 | 01000001 | 101 | 0x41 | Uppercase A |
| 97 | 01100001 | 141 | 0x61 | Lowercase a |
All Free Number Base & Text Encoding Converters
- Text & Binary/ASCII: Text to Binary, Binary to Text, Text to ASCII, ASCII to Text, Text to HEX, HEX to Text.
- Number Base Converters: Decimal to Binary, Binary to Decimal, Decimal to HEX, HEX to Decimal, Binary to HEX, Octal to Decimal.
- Web & Image Encoding: Base64 Encode, Base64 Decode, Image to Base64, and Base64 to Image.
Frequently asked questions
Why is hexadecimal used instead of binary in programming?
Each hexadecimal digit (0–9, A–F) represents exactly 4 binary bits (a nibble), and two hex digits represent 1 full byte (8 bits). That makes hex 4 times shorter and much easier for humans to read than raw binary strings.
Is Base64 encoding a form of encryption?
No. Base64 is a public encoding scheme that turns binary bytes into 64 safe ASCII characters—anyone can decode a Base64 string instantly using a Base64 Decoder. Never use Base64 alone to hide sensitive passwords or keys.