ToolSnips
Log in Sign up
Log in Sign up

Base64 Encoder/Decoder

Encode and decode text and files to/from Base64. Supports URL-safe encoding, MIME chunking, file uploads, and automatic data type detection with validation.

Base64 Configuration
Operation Mode
Input Type
URL-Safe Encoding
Chunk Output (MIME)
Text to Encode
Base64 Encoded Output
SGVsbG8sIFdvcmxkISBUaGlzIGlzIGEgQmFzZTY0IGVuY29kaW5nIGV4YW1wbGUu
Statistics
Input Size
48 B
48 bytes
Output Size
64 B
64 bytes
Size Change
+16
133.3% of original
Base64 Encoding Options
🔧 Standard Base64
Uses characters A-Z, a-z, 0-9, +, / with = padding. Standard RFC 4648 encoding suitable for most applications.
🌐 URL-Safe Base64
Replaces + with - and / with _ and removes padding. Safe for URLs, filenames, and HTTP headers.
📧 MIME Chunking
Splits output into lines of specified length (typically 76 characters). Required for email MIME encoding.
📁 File Support
Upload files up to 5MB. Supports images, documents, archives, and any binary data.
Common Use Cases
🌐 Web Development
  • • Embed images in CSS/HTML
  • • API data transmission
  • • Store binary data in JSON
  • • CSS data URLs
📧 Data Transfer
  • • Email attachments (MIME)
  • • Configuration files
  • • Database storage
  • • Cross-platform compatibility
🔐 Security & Auth
  • • JWT token encoding
  • • Certificate storage
  • • API key transmission
  • • Basic authentication

Search for tools

Find calculators, converters, and utilities quickly

to select
esc to close