Base64 Encode "12345"

Encode "12345" to Base64. The Base64 encoded result is: MTIzNDU=

Open Base64 Encoder/Decoder →

Base64 Encode: "12345"

The Base64 encoded version of "12345" is:

MTIzNDU=

How It Works

Base64 encoding converts binary data to ASCII text using 64 characters (A-Z, a-z, 0-9, +, /).

Code Examples

// JavaScript
btoa("12345");
// Output: "MTIzNDU="

# Python
import base64
base64.b64encode(b"12345").decode()
# Output: "MTIzNDU="

# Command line
echo -n "12345" | base64
# Output: MTIzNDU=

Related Tools