Yo! Base64 Encode logoYo! Base64 Encode

Encode swift to Base64

Base64 result: c3dpZnQ=

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: swift to c3dpZnQ=

Step 1: Map ASCII Characters to Binary

ASCII CharacterBinary Value
s01110011
w01110111
i01101001
f01100110
t01110100

Step 2: Group Bits into 6-bit Chunks

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

011100 110111 011101 101001 011001 100111 0100

Step 3: Convert Binary to Base64

Binary ValueBase64 Character
011100c
1101113
011101d
101001p
011001Z
100111n
0100Q

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

Related Conversion Tools
Encode History

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