Base64 Encoder

Effortlessly encode text or files to Base64 with our user-friendly Base64 Encoder tool. Supports text, file uploads, and URL input for seamless conversion.

Alphabets to Base64 Conversion Table:

Value (Decimal)Base64 Character
0A
1B
2C
3D
4E
5F
6G
7H
8I
9J
10K
11L
12M
13N
14O
15P
16Q
17R
18S
19T
20U
21V
22W
23X
24Y
25Z
26a
27b
28c
29d
30e
31f
32g
33h
34i
35j
36k
37l
38m
39n
40o
41p
42q
43r
44s
45t
46u
47v
48w
49x
50y
51z
520
531
542
553
564
575
586
597
608
619
62+
63/

ASCII to Base64 Conversion

In Base64 encoding, every three 8-bit ASCII characters (3 bytes = 24 bits) are converted into four 6-bit Base64 characters. Below is an example table for some common text characters and their Base64 equivalents.

Text/CharacterASCII (Binary)Base64 ChunksBase64 Characters
H01001000010010S
e01100101011001Z
l01101100011011b
l01101100011011b
o01101111011011b
,00101100001011L
Space00100000001000I
W01010111010101V
o01101111011011b
r01110010011100c
l01101100011011b
d01100100011001Z

For example, if you encode “Hello, World” in Base64, the result is:

“SGVsbG8sIFdvcmxk”

Explanation:

  1. H -> Binary: 01001000, Base64 -> S
  2. e -> Binary: 01100101, Base64 -> Z
  3. l -> Binary: 01101100, Base64 -> b
  4. l -> Binary: 01101100, Base64 -> b
  5. o -> Binary: 01101111, Base64 -> b
  6. , -> Binary: 00101100, Base64 -> L
  7. Space -> Binary: 00100000, Base64 -> I
  8. W -> Binary: 01010111, Base64 -> V
  9. o -> Binary: 01101111, Base64 -> b
  10. r -> Binary: 01110010, Base64 -> c
  11. l -> Binary: 01101100, Base64 -> b
  12. d -> Binary: 01100100, Base64 -> Z

Padding:

If the input data length isn’t divisible by 3, Base64 uses padding characters = to ensure the output length is always a multiple of 4.

For example, “Man” is encoded as “TWFu” without padding because it fits perfectly into three 8-bit ASCII characters, but “Ma” would be “TWE=” (with padding).

More Tools