Base64
Converts arbitrary text to Base64 and back. Unicode-safe via UTF-8.
Text to Base64
Base64
Empty input
Base64 to text
Text
Empty input
What is Base64?
Base64 encodes arbitrary bytes as ASCII text. Every three bytes (24 bits) map to four characters from A..Z, a..z, 0..9, + and /. A trailing "=" pads to a multiple of four. Base64 is used wherever binary needs to travel through a text channel: email attachments (MIME), data URLs in HTML and CSS, JSON Web Tokens, Basic-Auth headers.
Base64 encodes every 3 bytes as 4 ASCII characters. The padding "=" pads to a multiple of 4. Whitespace and line breaks in the input are stripped before decoding.