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.

Private by design: the image is processed locally in this tab. It is never uploaded, stored, or sent anywhere — there is no server involved at any step.

Resize an image

Choose an image or drop it here

No file selected yet.

The longest side of the image will be shrunk to this many pixels; aspect ratio is preserved. Images already smaller are left alone.

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:

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.

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.