Base64 Converter

Encode and decode text, images, and files using Base64

Base64 Encoder & Decoder

Enter the text you want to encode to Base64
Select a file to encode to Base64 (max 10MB)
Base64 encoded result will appear here

Base64 Information

Text Statistics:
0
Input Length
0
Output Length
Examples:
Text: "Hello World"
Base64: "SGVsbG8gV29ybGQ="
URL: "https://example.com"
Base64: "aHR0cHM6Ly9leGFtcGxlLmNvbQ=="
Quick Actions:
Usage Tips:
  • Base64 increases size by ~33%
  • Safe for URLs and HTML
  • Used for data transmission
  • Common in web development
About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for encoding data in URLs, email attachments, and storing binary data in text-based formats like JSON and XML.

How Base64 Works:
  • Character Set: Uses 64 characters: A-Z, a-z, 0-9, +, and /
  • Padding: Uses = for padding when input length isn't divisible by 3
  • Size Increase: Encoded data is approximately 33% larger than original
  • URL Safe: Can be safely used in URLs and HTML attributes
Common Use Cases:
  • Email Attachments: Encode binary files for email transmission
  • Data URLs: Embed images and files directly in HTML/CSS
  • API Communication: Send binary data through text-based APIs
  • Configuration Files: Store binary data in JSON/XML configs
  • Web Development: Handle file uploads and downloads
Features:
  • Bidirectional: Encode text to Base64 and decode back to original
  • File Support: Upload and encode files of any type
  • Real-time Conversion: Convert as you type
  • Copy & Swap: Easy text management and swapping
  • Statistics: View input and output length information
  • Examples: Quick access to common examples