Yo! Base64 Encode logoYo! Base64 Encode

Encode baghdad to Base64

Base64 result: YmFnaGRhZA==

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: baghdad to YmFnaGRhZA==

Step 1: Map ASCII Characters to Binary

ASCII CharacterBinary Value
b01100010
a01100001
g01100111
h01101000
d01100100
a01100001
d01100100

Step 2: Group Bits into 6-bit Chunks

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

011000 100110 000101 100111 011010 000110 010001 100001 011001 00

Step 3: Convert Binary to Base64

Binary ValueBase64 Character
011000Y
100110m
000101F
100111n
011010a
000110G
010001R
100001h
011001Z
00A

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

Related Conversion Tools
Encode History

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