Resize Image to 512 KB

512 KB is half a megabyte — a limit set by upload forms that think in binary. This page opens the compressor with a 512 KB target already filled in and finds the best quality that fits under it. Everything runs in your browser — nothing is uploaded. Need different dimensions instead? Resize or convert.

or drop images here — or press Ctrl + V to paste
JPG · PNG · WebP · GIF · BMP · TIFF — no size limit, no sign-up
Compression level80
Smallest fileBest quality
Compress until under
Quality is chosen automatically to hit this size
Maximum width
Quality85
Smallest fileBest quality
—
total saved
—
smaller
—
files
Added 0 files
Advertisement

Getting under 512 KB by choosing the pixel size

This page brings an image under 512 KB mainly by reducing its width and height, so the quality setting can stay high. It also keeps your file’s own format — a PNG stays a PNG, a WebP stays a WebP. To keep more pixels at a lower JPG quality instead, use Compress JPEG to 512 KB.

📐

1240x930 for a 4:3 photo

A detailed landscape photo of roughly 1240x930 pixels fits under 512 KB at high quality.

⬜

1070x1070 for a square

Profile pictures, product tiles and avatars: about 1070 pixels a side stays below 512 KB with fine detail intact.

📱

930x1240 upright

A portrait phone photo or ID-style picture of about 930x1240 pixels lands under 512 KB.

🎞

1430x810 widescreen

Screenshots and 16:9 frames fit 512 KB at about 1430x810 pixels.

🎨

Format stays the same

JPG stays JPG, and PNG and WebP keep their format and transparency. A PNG photo needs several times more bytes than a JPG, so under 512 KB it ends up much smaller in pixels.

⚖

2.1x more pixels on the twin page

Compress JPEG to 512 KB fits about 1780x1330 pixels at medium quality — more detail when zoomed, more compression in smooth areas.

How many pixels fit in 512 KB

Landscape photo, 4:3about 1240x930 px
Widescreen, 16:9about 1430x810 px
Square, 1:1about 1070x1070 px
Portrait, 3:4about 930x1240 px
Same photo saved as WebPabout 1410x1060 px
Limit counted as524,288 bytes
Output formatSame as the original: JPG, PNG or WebP
Typical useBlog images, large web graphics and attachments

Resize an image to 512 KB in 3 steps

  1. Add your photo or graphic — it keeps its format, whether JPG, PNG or WebP.
  2. Leave the target at 512 KB, or open the Resize tab and type a width of about 1240 pixels for a landscape photo.
  3. Click Compress and download a file under 512 KB (524,288 bytes).

Need the most pixels possible instead? Use Compress JPEG to 512 KB.

Advertisement

Why the limit is 512 and not 500

512 KB is exactly half of 1024 KB, which is exactly 1 MB in the binary sense software usually means. Systems that cap uploads at “half a megabyte” therefore land on 512 rather than 500. It is 2.4% more headroom than a 500 KB cap, which sounds trivial and occasionally is the difference between passing and failing.

Worth knowing: KB is ambiguous. Most software means 1024 bytes (so 512 KB = 524,288 bytes), but some storage and network tools mean 1000 bytes (512,000). This tool uses 1024. If a form is rejecting a file that appears to fit, aim slightly under the stated limit rather than exactly at it.

The target mode narrows in on the answer by encoding the image at successively different quality levels until it finds the highest one that still comes in under your cap. You do not have to guess a quality number, and you are not left with a file far smaller than necessary.

If quality has to drop too far to reach 512 KB, the image is too big in dimensions rather than too rich in detail. Use the Resize tab to bring the width down to what the destination actually shows — 1920 pixels covers almost every screen use — and the same 512 KB target becomes easy to hit cleanly.

For PNGs, remember there is no quality slider: PNG is lossless, so the tool reduces the palette instead. That helps logos and flat graphics and does very little for photographs. A photo stored as PNG should be converted to JPG or WebP with the converter before you try to compress it.

Compress by format

Guides and presets for each format:

Compress under a file size
JPEG under a file size
WebP under a file size

Always saves as WebP:

Frequently asked questions

What width should I type to get under 512 KB?

For a typical 4:3 photo, about 1240 pixels wide keeps high quality; up to 1780 pixels works if slight softness is fine. Graphics, screenshots and scans with plain areas can be wider.

Will resizing to 512 KB keep my PNG as a PNG?

Yes. JPG, PNG and WebP files keep their format, and PNG transparency is kept. If the PNG is a photo, convert it to JPG first — under 512 KB a JPG can hold far more pixels.

Resize or compress — which looks better at 512 KB?

For things seen small — blog images, large web graphics and attachments — fewer pixels at high quality looks cleaner. If people will zoom in, Compress JPEG to 512 KB keeps about 2.1 times as many pixels at medium quality.

Can the file be exactly 512 KB?

It ends just under. The limit is counted as 524,288 bytes and the tool stops below it, so an upload form never rejects the file for being a few bytes over.

How is this different from Compress JPEG to 512 KB?

That page always saves a JPG and lowers quality before it touches the pixels. This one keeps your original format and suits jobs where the width matters too, such as a form that says “maximum 512 KB and 1240 pixels wide”.

Are my images uploaded anywhere?

No. They are read and compressed by your own browser and never leave your device. You can disconnect from the internet once the page has loaded and it will still work.