$devtoolkit.sh/tools/base64-encode

Base64 Encode

Encode text or binary data to Base64 format.

$text
0 chars1 lines
$base64[READY]
0 chars1 lines

Related Tools

FAQ

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters. It increases data size by about 33% but ensures the data can be safely transmitted through text-only channels.
Why does Base64 output end with = signs?
The = characters are padding. Base64 encodes data in groups of 3 bytes (24 bits) into 4 characters. If the input is not a multiple of 3 bytes, = signs are added to fill the last group.
Does this tool handle Unicode text?
Yes. The encoder first converts the text to UTF-8 bytes using TextEncoder, then Base64-encodes those bytes. This correctly handles characters outside the ASCII range.

Base64 encoding converts binary data into a text representation using 64 ASCII characters (A-Z, a-z, 0-9, +, /). This tool encodes UTF-8 text to Base64, handling Unicode characters correctly. Base64 is commonly used for embedding images in HTML/CSS, transmitting data in JSON APIs, and encoding email attachments.

/tools/base64-encodev1.0.0