Everyday digital life
Compress PDF and Images for Email Without Losing Quality
Files are large mainly because of high-resolution images, and you can shrink them by lowering image dimensions, choosing a suitable format and quality, and exporting PDFs with reduced image resolution. When a file is still too big for email, share a link instead, and be careful about which online tools you upload private documents to.
By CodingMarble · Published · 4 min read

Why files are big
A digital photo is a grid of coloured dots called pixels, and every pixel needs data. A modern phone camera takes pictures that are thousands of pixels wide, far more than any email, document or web page needs to display. A photograph taken at full size can therefore weigh several megabytes, and a document containing a few of them grows quickly.
PDFs are big for related reasons. A scanned page is really a picture of a page, and a scan made at high resolution or in colour can be much larger than a text document. PDFs can also carry embedded fonts, extra versions of images, hidden layers, form data and old edit history. When someone says 'my PDF is huge', the first question is what it contains: text, photos, scans or all three.
What compression does: lossless and lossy
Compression makes a file smaller by storing the same information more efficiently. Lossless compression finds repeated patterns and writes them more compactly, and when you open the file you get back exactly what you started with. Zip archives and some image formats work this way. The saving is real but modest for photographs.
Lossy compression permanently throws away detail that people are unlikely to notice. JPEG is the familiar example: it simplifies fine colour variations, and the lower the quality setting, the more it removes. Compressing once at a moderate level is usually fine. Compressing the same picture repeatedly, saving it over and over, makes the damage build up, which is why you should always keep the original and make a smaller copy for sharing rather than overwriting.
Different image formats suit different content. Photographs generally do well as JPEG or a newer photo format. Screenshots, logos and drawings with flat colour and sharp edges often do better as PNG, which is lossless. Check which formats the recipient's software supports before choosing a newer one.
Sensible image sizes for email and web
Think about where the image will be displayed. On a phone or an ordinary monitor, an image rarely needs to be wider than the screen it appears on. A picture in an email body, viewed on a laptop, looks sharp at a width of a thousand or so pixels. A photo that will only be viewed on a phone does not need more than that either. If the recipient may print it at large size, keep a bigger version and send it by link.
Resizing the dimensions saves much more than lowering the quality slider, because the number of pixels falls with the square of the change. Halve the width and height and you keep only a quarter of the pixels. After resizing, set a quality that looks fine when you zoom in on a face or fine text, and stop there. For web pages, the same ideas apply, and a smaller image helps pages load faster, especially on mobile data.
Ways to shrink a PDF
Because images are the main cause, start there. Many programs that create PDFs let you choose reduced image resolution or a smaller quality preset when you export or print to PDF. Pick a setting designed for on-screen reading or email rather than for printing. Check the result: zoom in and make sure that the text is still sharp and the signatures or small print are legible.
- Reduce image resolution and quality at export, if your word processor or scanner software offers the choice.
- Rescan at a lower resolution, in black and white for text-only pages, instead of colour at high settings.
- Remove unused content, such as extra pages, hidden layers, comments, attachments and old form data, if your PDF software supports it.
- Crop or resize oversized images before inserting them in a document, instead of relying on the document to shrink them.
- Split a long document into parts when the recipient only needs some pages.
- Use a PDF optimisation or compression feature in a PDF reader or editor, and compare file sizes before and after.
Always keep the original file untouched, and save the reduced one under a new name such as the original name with the word small. That way you never lose the high-quality version, and you can always generate another reduced copy.
Practical tip: Before sending, open the compressed copy yourself, look at every page at normal size and zoom into any signature, stamp or table. Compression problems are easier to spot at your desk than in the recipient's reply.
When to share a link instead of an attachment
Email services set limits on attachment size, and those limits differ by provider, so check the one you use. Even below the limit, large attachments fill inboxes, are slow to download on mobile data and are often blocked or bounced by the recipient's server. When a file is large, upload it to online storage and send a link, setting access to specific people where you can, and removing access once it is no longer needed.
For sensitive documents such as identity scans, think about who can open the link. A link that anyone can open is convenient but is also a link that can be forwarded. Where the recipient needs only to read, choose view-only access, and use a password or sign-in requirement when the tool supports one.
Privacy when using online tools
Any website that offers to compress a file asks you to hand over that file. Some tools upload it to a server, process it there and let you download the result; others process it entirely inside your browser, so the file never leaves your device. The difference matters for a bank statement, a contract or an identity document. Read the tool's privacy statement, check whether it says files are deleted after processing, and prefer an offline option or a browser-only tool for anything private.
CodingMarble runs free browser-based PDF tools at lovepdf.codingmarble.com, which has 35 tools that process in the browser with no sign-up and no watermark, and image tools at loveimage.codingmarble.com for compressing, resizing, cropping and converting images, including in bulk. Whichever tool you choose, confirm the result opens correctly before you send it.
Keep reading
- Digital contentOptimise Images for Web and Blog: Formats, Size and Alt TextOptimising an image means choosing a suitable format, resizing it to the size it is actually displayed at, compressing it to a quality that still looks right, and describing it with alt text. Reserve its space with width and height attributes and lazy load only images that sit below the first screen.
- Web developmentHow Browser-Based PDF Tools Work and Keep Files PrivateA browser-based PDF tool reads your file with JavaScript and WebAssembly running on your own device, so the document never has to travel to a server. You can verify this yourself by watching the Network tab in your browser's developer tools while you use the tool.
- Everyday digital lifeBack Up Photos and Documents: A Simple 3-2-1 PlanA real backup keeps at least three copies of what matters, on two different kinds of storage, with one copy somewhere else, and it keeps old versions even after you delete a file. Cloud sync alone is not a backup, because deleting or damaging a file on one device usually deletes or damages it everywhere.
- Mobile and phone helpHow to Save Mobile Data on Android and iPhoneMost mobile data goes to video, background refresh, automatic updates and cloud sync, so the biggest savings come from controlling those four. Turn on your phone's data saver mode, restrict updates to Wi-Fi, lower streaming quality, download maps and media ahead of time, and check each app's data use every month.
Need this built properly for your business?
CodingMarble is a remote studio in India that builds websites, apps and games on fixed packages with the scope written down before payment. Try the free tools we run, or start a project when you are ready.