Attachment MIME size calculator

Estimate how large an attachment becomes after Base64 encoding with line breaks, separately from the rest of the message.

Only the size is used; the file is not opened.

Headers, text and HTML parts. Leave 0 to ignore.

Result

Raw size
2.00 MiB
After Base64
2.67 MiB (36793 lines of 76 characters)
With CRLF line breaks
2.74 MiB · +36.8 %
Estimated message total
2.74 MiB

Base64 uses 4 characters for every 3 bytes (rounded up), plus 2 bytes of CRLF per 76-character line: roughly +37% on top of the raw size.

Providers apply their limits to the encoded message; a 10 MB raw attachment is about 13.7 MB on the wire.

Scope and limits

  • When you pick a file only its size is read, never its content.
  • An estimate, not a guarantee that a provider accepts the message.

Related tools and resources

Encode text or a local file to Base64 and decode Base64 back to UTF-8 text or a binary download, with optional 76-character wrapping.

Developer utilities

Bytes of an email's HTML broken down into markup, text, styles, scripts and embedded data, with the remote references it points to.

HTML and content

Resize and re-encode an image (JPEG, PNG or WebP), compare sizes and download the result without metadata.

HTML and content
Mailiqo

Integrating email in your code?

The Mailiqo developer documentation covers the sending API, SMTP settings, webhooks and DNS setup.

Read the documentation