Basics

The Base64 Index Table (64 Characters)

A complete reference for the standard 64-character Base64 alphabet, including binary, decimal, and character mapping.

Published on August 19, 20264 min read

The term "Base64" literally means "base 64". Just like our normal decimal system is base 10 (using the digits 0-9), Base64 uses exactly 64 distinct characters to represent numbers.

When binary data is converted to Base64, the bits are grouped into 6-bit chunks. Since $2^6 = 64$, a 6-bit chunk can hold exactly 64 possible values (0 through 63). Each of these values is mapped to a specific character according to the standard Base64 Index Table.

The Standard Base64 Alphabet

The standard alphabet, defined in RFC 4648, uses the most universally supported and printable characters available in ASCII. It consists of:

  • Values 0 to 25: Uppercase letters (A-Z)
  • Values 26 to 51: Lowercase letters (a-z)
  • Values 52 to 61: Numbers (0-9)
  • Value 62: Plus sign (+)
  • Value 63: Forward slash (/)

Interactive Base64 Index Table

Use the viewer below to see the exact mapping of decimal values to their respective Base64 characters. You can toggle between Standard Base64 and the Base64URL variant to see how the last two symbols change.

Base64 Index Table

0
A
1
B
2
C
3
D
4
E
5
F
6
G
7
H
8
I
9
J
10
K
11
L
12
M
13
N
14
O
15
P
16
Q
17
R
18
S
19
T
20
U
21
V
22
W
23
X
24
Y
25
Z
26
a
27
b
28
c
29
d
30
e
31
f
32
g
33
h
34
i
35
j
36
k
37
l
38
m
39
n
40
o
41
p
42
q
43
r
44
s
45
t
46
u
47
v
48
w
49
x
50
y
51
z
52
0
53
1
54
2
55
3
56
4
57
5
58
6
59
7
60
8
61
9
62
+
63
/
0-25: A-Z
26-51: a-z
52-61: 0-9
62-63: Symbols

The 65th Character: Padding (=)

Wait, if Base64 only has 64 characters, what is the equals sign (=) that we often see at the end of Base64 strings?

The equals sign is not part of the Base64 index alphabet. It is a special padding character used only at the very end of an encoded string.

Because the Base64 algorithm requires input data to be grouped into 24-bit (3 byte) blocks, if the input data does not perfectly divide by 3 bytes, the algorithm artificially pads the end with zero-bits. It then uses the = character to indicate exactly how many bytes of padding were added, allowing the decoder to correctly trim the output.

  • No padding: The data length was a multiple of 3 bytes.
  • One =: 2 bytes of input remained.
  • Two ==: 1 byte of input remained.

Search the Full Base64 Alphabet

If you need to search for specific characters, generate lookups, or translate binary directly, try our full Base64 Characters utility tool.

Open the Base64 Characters Tool