Yo! Base64 Encode logoYo! Base64 Encode

Encode primitive to Base64

Base64 result: cHJpbWl0aXZl

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: primitive to cHJpbWl0aXZl

Step 1: Map ASCII Characters to Binary

ASCII CharacterBinary Value
p01110000
r01110010
i01101001
m01101101
i01101001
t01110100
i01101001
v01110110
e01100101

Step 2: Group Bits into 6-bit Chunks

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

011100 000111 001001 101001 011011 010110 100101 110100 011010 010111 011001 100101

Step 3: Convert Binary to Base64

Binary ValueBase64 Character
011100c
000111H
001001J
101001p
011011b
010110W
100101l
1101000
011010a
010111X
011001Z
100101l

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

Related Conversion Tools
Encode History

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