Yo! Base64 Encode logoYo! Base64 Encode

Encode viagra to Base64

Base64 result: dmlhZ3Jh

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: viagra to dmlhZ3Jh

Step 1: Map ASCII Characters to Binary

ASCII CharacterBinary Value
v01110110
i01101001
a01100001
g01100111
r01110010
a01100001

Step 2: Group Bits into 6-bit Chunks

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

011101 100110 100101 100001 011001 110111 001001 100001

Step 3: Convert Binary to Base64

Binary ValueBase64 Character
011101d
100110m
100101l
100001h
011001Z
1101113
001001J
100001h

When combined, these characters form the encoded string: "dmlhZ3Jh"

Related Conversion Tools
Encode History

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