Image resizer

Use this image resizer and photo compressor to reduce file size in KB or change dimensions in pixels or cm. Convert PNG, JPEG or WebP to JPEG in your browser; your photo stays on your device.

Resize and compress an image

Up to 30.0 MB. The image is processed on this device and is never uploaded.
Target file size
The JPEG will be at or below this limit. Here, 1 KB = 1,024 bytes; check your form’s byte limit too.
Change dimensions (optional)
Optional output dimensions

Leave both blank to start with the original dimensions. Enter one side to keep its aspect ratio, or both to set starting dimensions. Dimensions may shrink to meet the file-size limit.

Preview and result

Your image preview and output details will appear here.

How to resize an image for an online form

  1. Select your PNG, JPEG or WebP image.
  2. Enter the maximum size in KB and any width or height specified by the form.
  3. Resize, then check the actual output dimensions, file size and preview before downloading the JPEG.

How image size compression works

The resizer first adjusts JPEG quality while keeping the chosen starting dimensions. If needed, it reduces the dimensions in small steps until the file is below your size limit. File sizes use binary kilobytes: 1 KB = 1,024 bytes, so a 20 KB target is at most 20,480 bytes. A result can be smaller than the target. The final file is a JPEG, and transparent pixels are filled with white. Compression can reduce sharpness, so check the preview before downloading.

Resize a photo in pixels or cm using DPI

Leave width and height blank to start with the source dimensions. Enter only width or height to preserve the image proportions. Enter both for exact starting dimensions, which may change the proportions; compression can reduce them further to meet the file-size limit. For example, setting a 1,200 × 800 image to 600 px wide starts at 600 × 400 px. Centimetres are converted to pixels using your DPI value; the downloaded JPEG does not store print-resolution metadata.

File privacy and limits

The image is decoded, compressed, and previewed in this browser. It is not uploaded. PNG, JPEG, and WebP inputs up to 30 MB are supported, with a maximum of 40 megapixels and 10,000 pixels on either side. Generic size presets do not guarantee that an image meets any exam, application, or other organization’s requirements.

Related tools