No upload, 100% local, no account

Article

What to do when a file is too big to send

You try to attach a file to an email, drop it into Discord, or share it on WhatsApp, only to see an error saying the file is too large. Here is what attachment limits mean across major platforms and how to shrink your files directly in your browser without uploading them to an external server.

Where size limits come from

Every channel that carries files enforces a ceiling on attachment size. For email, the most widely cited figure is Gmail's 25 MB limit on messages you send (not the 15 GB storage quota, which is a different thing). Outlook.com and Apple Mail have comparable limits in the same range. These caps exist because email was not designed as a file transfer protocol: each message passes through multiple servers, and a very large attachment strains queues and storage at every hop. Chat platforms set their own rules, and those rules move over time: Discord's free-tier upload cap and WhatsApp's video size ceiling have both changed more than once, so the honest advice is to check what the app shows you today rather than trust a remembered number. Whatever the channel, the pattern is the same: the limit is a hard technical boundary, not a preference.

FeatureGmail / Google WorkspaceOutlook / Office 365WhatsApp MessengerDiscord (Free Tier)
Attachment Limit25 MB total message limit20 MB standard (33 MB tenant cap)2 GB document / 16 MB media10 MB free (500 MB Nitro)
Max Raw Binary Size~18.0 MB (due to Base64 MIME)~14.5 MB (due to Base64 MIME)2.0 GB direct binary10.0 MB direct binary
Cloud Fallback LinkGoogle Drive auto-linkOneDrive auto-linkNone (direct stream)None (upload rejected)
Compression StrategyLocal client-side ZIP / PDF shrinkLocal client-side ZIP / PDF shrinkSend as Document (no recompression)Compress media before upload
Anatomy of an email message under a 25 MB cap: headers, text and the encoded attachment all count against the same limit
Every part of an email counts toward the server size ceiling

What re-encoding actually does

Compression depends on the format and the selected mode. For this site's PDF compressor, lossless mode re-saves the document with compressed object streams and keeps text and vectors; it may save little on an optimized file. Strong mode instead renders every page at 72, 96, 150, or 200 DPI, encodes it as JPEG and rebuilds an image-only PDF. That can shrink scans substantially, but removes searchable and selectable text. Image and video tools use their own codecs and quality controls.

FeatureBase64 MIME EncodingClient-Side ZIP CompressionCloud Storage Links
Binary Size Expansionceil(n / 3) * 4 (+33.3% + headers = ~37%)-30% to -80% on text/PDF/data0% change (hosted externally)
Recipient Friction0 friction (native attachment)Requires standard unzipRequires account / permission request
File retention & verificationEncrypted in transit over TLSZero upload, verifiable in your browser Network tab (F12)Files retained in cloud storage
Works offlineYesAfter the required downloads, while the browser retains themNo

Compressing without uploading

The standard advice online is to use a conversion website. You upload the file, the server compresses it, you download the result. That works, but it means your contract, your photo, or your video travels to a server you do not control, sits there long enough to be processed, and may or may not be deleted after. Local processing is an alternative: the compression runs entirely in your browser, and the file never leaves your device at any point. The PDF compressor, the image compressor and the video compressor on this site all follow that model. The first time you open one, your browser downloads the compression engine, which takes a few seconds. After that, the tool works without any network activity, and you can verify it by watching the Network tab in your browser's developer tools while a job runs.

Choosing a strategy per format

Choose settings by format and verify the resulting size. For PDFs, start with lossless mode to preserve text, or use strong rasterization for high reduction. The tool also lets you strip metadata and convert pages to grayscale to save further space. For photos, dimensions and quality are the main controls; for video, target bitrate drives file size.

MIME Base64 encoding adds 33% to attachment size

Email attachments are subject to a size overhead that catches many users off guard. The Simple Mail Transfer Protocol (SMTP), designed in the early 1980s, handles only 7-bit ASCII text. To transmit a binary file such as a PDF or MP4, the email client encodes it using Base64, which takes three bytes of binary data (24 bits) and represents them as four printable ASCII characters. This 3-to-4 mapping increases the encoded size by exactly 33.3%. The MIME standard also requires a line break every 76 characters, adding a small further increment. In practice, a mail server that enforces a 25 MB limit will reject a binary attachment larger than roughly 18 MB, because the encoded form of an 18 MB file reaches approximately 24 MB after Base64 expansion.

Bar chart showing Base64 overhead: an 18 MB file occupies about 24 MB once encoded inside the email message
What Base64 encoding adds to an email attachmentSMTP carries 7-bit ASCII text only, so a binary attachment is Base64 encoded first: three bytes become four characters, a fixed increase of about a third. That is why an 18 MB file can fail a 25 MB limit.

Bitrate, I-frames, and how video codecs control file size

Video codecs such as H.264 and H.265/HEVC reduce file size by eliminating spatial and temporal redundancy. Rather than storing every pixel of every frame, the encoder writes full I-frames (intra-coded pictures) at intervals and records only the changes between them through P-frames (predicted) and B-frames (bi-directional). Lowering the target bitrate forces the encoder to quantize these frames more aggressively, smoothing fine texture. The encoding mode matters: Constant Bitrate (CBR) allocates the same data budget per second regardless of scene complexity, while Variable Bitrate (VBR) reduces allocation during static sections such as a slide and raises it during fast motion. For size reduction, VBR produces a better visual result at a given file size because it concentrates data where the image is changing.

How this PDF compressor's two modes differ

This site's PDF compressor has two explicit pipelines. Lossless mode loads the document with pdf-lib, saves it with object streams, and returns the original whenever the rewritten file would be larger. Strong mode uses pdf.js to render each page, converts the canvas to JPEG at the selected quality, and embeds those page images in a new PDF. Strong mode can reduce image-heavy documents, but it rasterizes text and vectors; it does not preserve a searchable text layer.

Tools in this article

Frequently asked questions

What is the safest size to target for an email attachment?

Staying under 10 MB gives the most reliable delivery across all major email providers. Gmail accepts up to 25 MB, but the receiving server also imposes its own limit, and you rarely know what that is. A 10 MB target leaves margin for headers and encoding overhead and works even for conservative corporate mail servers.

Does compressing a PDF change its content or make it unprintable?

It depends on the mode. Lossless mode preserves selectable text and vectors but may produce little or no reduction. Strong mode keeps the page appearance as JPEG images, so text is no longer selectable or searchable and fine print can soften at low DPI or quality. Keep the original and inspect every page before sending or printing.

Can I compress a video without losing quality entirely?

All lossy video compression involves some quality reduction, but for typical screen recordings or casual footage, a 40 to 60 percent size reduction is usually imperceptible on a normal screen. The key is to keep the resolution the same and reduce the bitrate, rather than shrinking the video dimensions, which changes how it looks on any screen. The guides for Discord and WhatsApp include settings that give acceptable quality for those platforms specifically.

Sources