Base64 Encoder/Decoder

Convert text to Base64 or decode Base64 back to plain text. Useful for data encoding, API communication, and working with binary data.

0 characters

About Base64

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation.

Common uses:

  • Encoding binary data for transmission in email
  • Embedding image data in HTML or CSS
  • Storing complex data in JSON
  • Data URIs in web applications
  • Cookies and URL parameters

Tips & Limitations

Size: Base64 encoding increases the data size by approximately 33% compared to the original binary data.

Unicode Support: The built-in JavaScript btoa/atob functions only work with ASCII characters. For Unicode text, additional encoding steps may be required.

URL Safety: Standard Base64 contains ‘+’ and ‘/’ characters which need to be URL-encoded if used in URLs. Base64URL is a variant that solves this issue.

Examples

Plain Text:

Hello World

Base64:

SGVsbG8gV29ybGQ=