Media Optimizer
Choose an image, pick the largest side you want, and this page resizes it with your browser's own canvas engine. You see the original and optimized dimensions and file sizes, then download the result.
Resize an image
Result
How it works
When you choose a file, the page reads its dimensions, computes a
scaled-down size using the maximum dimension you set, and redraws the
image onto a hidden <canvas> element at the new size.
The canvas is then encoded back to a file in the browser. Everything
between "choose" and "download" happens in JavaScript in this tab, so
your image never travels over the network.
The page shrinks the longest side to your chosen bound and scales the other side to match, so the picture never looks stretched. It only ever makes images smaller — it never upscales.
The result card compares the original and optimized dimensions and file sizes so you can see exactly what you gained before downloading.
When do you need to shrink an image?
Resizing is the fix for a handful of everyday situations where a full-size photo is more than the receiving side needs:
- Application and form upload limits. Job portals, university applications, visa and ID forms, and many government sites cap image uploads at 20–200 KB. Shrinking the pixel dimensions is the reliable way to get under the cap — resize in steps and check the result card after each one.
- Email and chat attachments. A 12-megapixel camera photo is far more pixels than the recipient needs to see the picture. Resizing before attaching makes the message lighter and avoids "file too large" rejections.
- Websites and portfolios. Images sized close to their display size load faster and use less bandwidth — the single most effective image fix for a slow page.
- Storage and backups. Scaled-down images take less room in your photo library, cloud storage, and backups.
A worked example, step by step
Say you have a photo that is 4000×3000 pixels — 12 megapixels, a typical phone-camera frame that can weigh several megabytes as a JPEG.
- Step 1: set Maximum dimension to 2048. The longest side (4000) is scaled by a factor of 0.512, so the photo becomes 2048×1536 pixels — about 3.1 megapixels, roughly 74% fewer pixels than the original. For most photos the file size falls by a similar order of magnitude.
- Step 2 (when a form needs even less): set Maximum dimension to 1024. The same math gives 1024×768 pixels — about 0.79 megapixels, roughly 93% fewer pixels than the original.
The pixel math above is exact: a 4000×3000 photo at a 2048 bound becomes 2048×1536 (about 3.1 MP, roughly 74% fewer pixels), and at a 1024 bound it becomes 1024×768 (about 0.79 MP, roughly 93% fewer). The page always scales the longest side down to your bound, preserves the aspect ratio, and never upscales an image that already fits. The file size depends on the image content and your browser's encoder, so the result card always shows the real before-and-after sizes — check it before downloading.
Frequently asked questions
Will resizing make the file smaller?
Usually, yes. Shrinking the pixel dimensions removes data the image no longer needs, and JPEG and WebP output is re-encoded at a high quality setting (0.9). The result card always shows the exact original and optimized file sizes plus the percentage saved, so you can check before downloading. One caveat: a small lossless PNG can occasionally come out larger after canvas re-encoding — when that happens the result card shows it and you can simply keep the original.
Can it compress an image to a specific size, like 50 KB or 100 KB?
Not directly. This page shrinks images to a maximum dimension in pixels; there is no target-file-size mode or quality slider yet. If a form requires a file under a specific cap, resize in steps — for example 2048, then 1024, then 512 — and watch the result card after each step. The pixel reduction brings the file size down with it in most cases, and the card tells you exactly where you landed.
Will I lose quality?
Resizing down removes pixels that the display size does not need, and the re-encode uses high-quality settings, so photos usually look unchanged. But this is a re-encode, not a copy: JPEG and WebP output are lossy formats, so "zero quality loss" cannot be guaranteed for every file. Look at the preview before downloading and compare the dimensions and sizes in the result card.
Which image formats are supported?
The page can read whatever your browser can decode — JPEG, PNG, and WebP are widely supported, while others such as HEIC depend on the browser. The output keeps the input format: JPEG stays JPEG, WebP stays WebP, and everything else is saved as PNG. Converting between formats (for example JPG to WebP) is not supported yet, and animated images are not preserved.
Does it remove EXIF and GPS metadata?
Yes, as a side effect. Re-encoding through the canvas drops embedded metadata such as EXIF and GPS data from the downloaded file. That makes this page handy when you are sharing photos, but it is a resizing tool rather than a dedicated scrubber — for thorough metadata removal from both photos and PDFs, use the Document Hygiene tool.
Is my image uploaded anywhere?
No. The image is read, resized, and re-encoded entirely in this browser tab; there is no upload endpoint and no server involved at any step. The page processes one image at a time — there is no batch mode yet.
Privacy and limitations
Privacy. This page makes no network requests with your image. There is no upload endpoint, no analytics on file names or contents, and no server-side processing. Re-encoding through the canvas also strips embedded metadata such as EXIF and GPS data from the downloaded file — a useful side effect if you are sharing photos.
Limitations. This prototype resizes one image at a time. The formats you can load depend on what your browser can decode (JPEG, PNG, and WebP are widely supported; others vary), and output is re-encoded as PNG, JPEG, or WebP. Canvas re-encoding does not preserve EXIF, animation frames, or color profiles. A lossless PNG can sometimes come out larger after re-encoding, and there is no batch mode or quality slider yet — check the result card before downloading.
Related tools
- Date Calculator — count days and business days between dates, or add and subtract days.
- Document Hygiene — remove EXIF, GPS, and other metadata from photos and PDFs.
- Subtitle Converter — convert SRT and VTT subtitle files locally.
- Time Coordinator — plan schedules across time zones with DST-aware local times.
- Payload Workbench — inspect and transform JSON and Base64 payloads locally.
- RAG Cleaner — tidy messy text and HTML into clean Markdown for RAG pipelines.
- Text Hygiene — inspect invisible characters and clean up pasted text.
- Volumetric Weight Calculator — calculate chargeable weight for courier and freight shipments.
- Passphrase Generator — create strong random passphrases locally from the EFF word list.
- Bingo Card Generator — make free printable bingo cards for 75-ball, 90-ball, or word games.
- CBM Calculator — estimate cubic meters (CBM) and container fit for sea-freight shipments.
- Color Contrast Checker — check the WCAG contrast ratio between two colors with AA/AAA verdicts.
- Freight Class Calculator — estimate the NMFC freight class from pallet dimensions and weight (standard LTL density scale, classes 50–500).