Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 strings. Supports Unicode and UTF-8 characters.

Text Input
Base64 Output
Result will appear here...
About Base64 Encoding

Base64 is a group of binary-to-text encoding schemes that represent binary data using 64 printable ASCII characters. Each Base64 character represents 6 bits of data, so 4 Base64 characters encode 3 bytes of input.

Common Uses

  • Embedding images in HTML/CSS as data URIs
  • Encoding email attachments (MIME)
  • Transmitting binary data in JSON/XML APIs
  • Storing binary data in text-based configuration
  • Encoding authentication credentials (HTTP Basic Auth)

Unicode Support

This tool properly handles Unicode characters by encoding text to UTF-8 before applying Base64 encoding. This ensures characters like emojis, accented letters, and CJK characters are correctly preserved.