🔐

Base64 Encode / Decode

Convert text and files to/from Base64

Invalid Base64 string

Drag & drop a file here

or click to browse (Max 5MB)

What is Base64?

Base64 is an encoding scheme that converts binary data into ASCII text format. It's commonly used to embed images in HTML/CSS, encode email attachments, and transmit data over text-based protocols.

Common Uses

  • Data URIs - Embed images directly in HTML/CSS
  • API Data - Send binary data in JSON
  • Email Attachments - Encode files for email transmission
  • URL Encoding - Safely include data in URLs

Example

Original: Hello World

Base64: SGVsbG8gV29ybGQ=

Frequently Asked Questions

No, Base64 is encoding, not encryption. It converts data to a different format but doesn't provide security. Anyone can decode Base64 data. For security, use proper encryption methods.

Base64 encoding increases data size by approximately 33% because it converts 3 bytes of binary data into 4 ASCII characters. This trade-off allows binary data to be safely transmitted as text.

A Data URI is a way to embed file data directly in HTML or CSS. It starts with "data:" followed by the MIME type, then ";base64,", then the Base64-encoded data. Example: data:image/png;base64,iVBORw0K...