Base64 Converter

Encode and decode Base64 data and files

Base64 Encoder / Decoder

Enter any text to convert to Base64 encoding
Replace + and / with - and _
Remove = padding characters
Enter Base64 encoded text to decode back to original text
Drop a file here or click to browse

Any file type supported, max 5MB

Adds data:[mime-type];base64, prefix for direct use in HTML/CSS

About Base64

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII format. It's commonly used for encoding data in emails, URLs, and web applications.

Common Use Cases
  • Email attachments
  • Data URLs in HTML/CSS
  • API data transmission
  • Storing binary data in text format
  • URL-safe data encoding
  • Basic authentication headers
Tips
  • Base64 increases data size by ~33%
  • URL-safe version replaces +/ with -_
  • Padding (=) can be removed for URLs
  • Not encryption - easily reversible
  • All processing happens locally
Quick Examples
Text: Hello
Base64: SGVsbG8=
Text: 123
Base64: MTIz
Text: A
Base64: QQ==