inyourbrowser.com

Compress Image for Email

Reduce your image to around 150KB so it attaches quickly to any email without slowing recipient inboxes. The Canvas API decodes your file in your browser and re-exports it as a tuned JPEG, small enough to send but still sharp at the dimensions Gmail, Outlook, and other mail clients display. Large photos are scaled down when only a very low quality would reach 150KB. All compression runs locally.

Drop an image or click to choose

JPG, PNG, or WebP, up to 50 MB. Runs in your browser.

TARGET SIZE

~150 KB

Optimized for email attachments

FORMAT

QUALITY –

Quality is set automatically to reach the target size. Large photos may also be scaled down.

Runs entirely in your browser

How it works

The image is drawn onto a Canvas in your browser and re-exported with ctx.canvas.toBlob('image/jpeg', quality), or as WebP if you pick it. The quality is tuned automatically so the resulting JPEG lands at or just under 150 KB, small enough to attach to any email without slowing recipient inboxes yet still sharp at the sizes most mail clients display. Large photos are scaled down when only a very low quality would fit. Download the optimised attachment and drop it directly into your message.

Processing runs in your browser

Attachment-ready compression runs inside the tab. Our servers are not involved at any point. The Canvas API handles the JPEG re-encode locally, and the smaller attachment lands directly in your downloads folder. You can confirm this yourself in your browser's DevTools Network tab.

Related operations

If you need a different file format after compressing, try the image converter. To trim images to a specific aspect ratio first, use image crop. For multi-image PDFs from compressed photos, see image to PDF.

Frequently asked questions

Where is the email attachment compressed?
In your browser. The Canvas API re-encodes the image in this tab until it lands at or just under 150 KB, and the file leaves the tab only when you download it. Our servers are not involved at any point.
What file size is safe for email?
Most email providers accept attachments up to 10–25 MB, but images over 1 MB can slow down inboxes. Keeping images under 200 KB is courteous and reliable.
Will recipients be able to see my photo clearly?
Yes. At 150 KB, a typical photo looks sharp at the sizes used in email clients.
Can I compress multiple images?
Currently the tool processes one image at a time. Compress each image separately and attach them all at once.

Last reviewed September 30, 2026

Other pages for this tool

Related tools

Resize image
Scale to any size or use platform presets. Instagram, LinkedIn, WhatsApp and more.
Convert image
Convert between JPEG, PNG, and WebP formats. Lossless or quality-controlled.
Image to Base64
Convert any image to a Base64 data URI. Copy directly into HTML, CSS, or JSON.
Compress PDF
Reduce PDF file size in your browser. Lossless optimisation or image re-rendering.
Image to PDF
Convert JPG, PNG, WebP, or GIF images to a PDF. Add multiple images, reorder, download instantly.