跳到主要内容

Base64 Decode Online

Quick Try:

Conversion Process Analysis

Text(Unicode)
UInt8Array
Binary
Base64 Index
Base64 Char

Lookup Table

Index
Char
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
Index
Char
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
/

Online Base64 Decode and Encode

This Base64 decode online tool encodes and decodes Base64 in real time in your browser: paste plain text or a Base64 string, switch encode/decode mode, and copy the result. Processing is local—handy for API payloads, Data URIs, and config fields.

Quick decode: Switch to decode → paste a Base64 string (e.g. aGVsbG8sIHdvcmxk) → copy the plaintext output.

Quick encode: Switch to encode → enter text → copy the Base64 output.

The format is defined in RFC 4648. In the browser, see also MDN: btoa() / atob().

What Is Base64?

Base64 maps binary data to 64 printable ASCII characters—a common binary-to-text encoding. In front-end work, small images are often embedded as Base64 Data URIs to save HTTP requests.

The alphabet is 0-9, A-Z, a-z, plus + and /. In URLs, / conflicts with paths, so URL-safe Base64 uses - and _ instead (JWT uses this variant).

Every 3 bytes of input become 4 encoded characters, so output is about one-third larger. See the Theory tab for padding rules.

10101101, 10111010, 01110110
00101011, 00011011, 00101011, 00110110

Common Use Cases

  • Decode Base64 from API responses or logs
  • Data URIs for small inline images in HTML/CSS
  • JWT: Header and Payload use Base64URL (use our JWT Decoder for full token debugging)

FAQ (essentials)

Is Base64 an encryption algorithm?

No. Base64 is a reversible encoding scheme for carrying binary data in text-only channels—it does not provide confidentiality (see RFC 4648).

Why does Base64 decoding show garbled text?

Often UTF-8 multi-byte text was decoded as Latin1, or the URL-safe alphabet was used by mistake. This tool decodes as UTF-8.

Is online Base64 decoding safe?

Processing is local in the browser; input is not uploaded. Still protect secrets on shared devices.