Yo! Base64 Encode logoYo! Base64 Encode

Encode afghanistan to Base64

Base64 result: YWZnaGFuaXN0YW4=

For encoded binaries (like images, documents, etc.) use the file upload form below.
Encode base64 strings in real-time as you type or paste.
Encoding Process: afghanistan to YWZnaGFuaXN0YW4=

Step 1: Map ASCII Characters to Binary

ASCII CharacterBinary Value
a01100001
f01100110
g01100111
h01101000
a01100001
n01101110
i01101001
s01110011
t01110100
a01100001
n01101110

Step 2: Group Bits into 6-bit Chunks

The binary string is grouped into 6-bit chunks for Base64 encoding:

011000 010110 011001 100111 011010 000110 000101 101110 011010 010111 001101 110100 011000 010110 1110

Step 3: Convert Binary to Base64

Binary ValueBase64 Character
011000Y
010110W
011001Z
100111n
011010a
000110G
000101F
101110u
011010a
010111X
001101N
1101000
011000Y
010110W
11104

When combined, these characters form the encoded string: "YWZnaGFuaXN0YW4="

Related Conversion Tools
Encode History

Your encode history will appear here. Start encoding to build your history!