Every email attachment you send is Base64-encoded using MIME (Multipurpose Internet Mail Extensions). This tool helps you encode files for raw email construction or decode attachment data for debugging delivery issues.
Email developers building SMTP integrations, debugging failed attachments, or constructing raw MIME messages need to Base64 encode/decode attachment data manually.
Try It Now — Free, No Sign-up
Open the tool and get started instantly. No sign-up, no installation needed.
Open Base64 Encoder & Decoder Now100% browser-based • No upload to server • No sign-up required
How to Base64 for Email Attachments — MIME Encoding
- Upload the file you want to attach (or paste encoded data)
- For encoding: the tool converts the file to MIME-compatible Base64
- For decoding: paste the Base64 block from raw email source
- Copy the encoded string for your MIME message
- Add Content-Transfer-Encoding: base64 header in your email
Pro Tips
- MIME Base64 wraps lines at 76 characters — standard email format
- Content-Type header must match the file: application/pdf, image/png, etc.
- Maximum email size varies by provider: Gmail 25MB, Outlook 20MB, Yahoo 25MB
- Base64 adds 33% size — a 15MB file becomes 20MB encoded (may exceed limits)
Frequently Asked Questions
Related Tools & Guides
Ready to Use Base64 Encoder & Decoder?
Free, instant, and 100% private. No sign-up needed.
Open Base64 Encoder & Decoder