Encode aggression to Base64
Base64 result: YWdncmVzc2lvbg==
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: aggression to YWdncmVzc2lvbg==
About the '=' Padding
Base64 encoding requires the input length (in bytes) to be divisible by 3. If it's not, padding is added: Two '=' characters are added when the input length modulo 3 equals 1. This happens because the input length leaves a remainder of 1 when divided by 3, indicating that two more bytes are needed to complete the 3-byte group. This ensures the encoded output is properly aligned.
Step 1: Map ASCII Characters to Binary
| ASCII Character | Binary Value |
|---|---|
| a | 01100001 |
| g | 01100111 |
| g | 01100111 |
| r | 01110010 |
| e | 01100101 |
| s | 01110011 |
| s | 01110011 |
| i | 01101001 |
| o | 01101111 |
| n | 01101110 |
Step 2: Group Bits into 6-bit Chunks
The binary string is grouped into 6-bit chunks for Base64 encoding:
011000 010110 011101 100111 011100 100110 010101 110011 011100 110110 100101 101111 011011 10
Step 3: Convert Binary to Base64
| Binary Value | Base64 Character |
|---|---|
| 011000 | Y |
| 010110 | W |
| 011101 | d |
| 100111 | n |
| 011100 | c |
| 100110 | m |
| 010101 | V |
| 110011 | z |
| 011100 | c |
| 110110 | 2 |
| 100101 | l |
| 101111 | v |
| 011011 | b |
| 10 | g |
When combined, these characters form the encoded string: "YWdncmVzc2lvbg=="
Related Conversion Tools
Recent Posts
How to Base64 Encode Data in Bash Linux
December 11, 2024
How to Base64 Encode Data in Go (Golang)
December 11, 2024
How to Base64 Encode Data in JavaScript
December 11, 2024
How to Base64 Encode Data in PowerShell
December 11, 2024
How to Base64 Encode a String in Node.js
December 11, 2024
Encode History
Your encode history will appear here. Start encoding to build your history!