Zum Inhalt springenSkip to content

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.