Image Resizer

PNG, JPEG or WebP. Up to 20 MB and 40 megapixels. Output: 1–8192 pixels per side, up to 40 megapixels.

About this tool

This tool changes an image's pixel dimensions by exact width and height or by percentage, and can aim for a maximum file size in KB. People use it to meet upload requirements for profile photos, job or visa applications, marketplaces and websites. Resizing changes how many pixels an image has, while compression changes how efficiently those pixels are stored; a file size target here is met by adjusting compression quality only.

Upload forms often state both kinds of limit, such as “at least 600 × 600 pixels and no larger than 200 KB”. Set the dimensions first, then switch on the size target so the tool finds a quality level that fits, and check the measured result before submitting.

How it works

Choose a local image, set width and height or a percentage, and select an output format. With aspect ratio locked, editing either dimension updates the other. JPEG and WebP optionally search for the highest tested quality that stays within your KB target. Download the measured result.

The size search first encodes at 95% quality. If that is already under the target, it keeps it; if not, it checks 10%, and when that fits it narrows the quality down in eight steps to the highest tested level within the limit. Choose PNG when you need lossless output or crisp graphics with transparency, and JPEG or WebP for photos or when a file size target matters.

Example

A 1200 × 800 image resized to width 600 with aspect ratio locked becomes 600 × 400. A 50% resize produces the same dimensions. A 100 KB target means at most 102,400 bytes if the target is achievable.

A 4000 × 3000 camera photo resized to width 1600 becomes 1600 × 1200, while a 25% resize gives 1000 × 750. If a form then asks for 50 KB or less, set the target to 50 and the tool aims for at most 51,200 bytes at 1000 × 750. If even 10% quality is too large, reduce the dimensions further and try again.

Assumptions and limits

Input must be PNG, JPEG or WebP, up to 20 MB and 40 megapixels. Output is 1–8192 pixels per side and at most 40 megapixels. A KB target (1–20,480 KB) works only for JPEG and WebP and never changes dimensions. There is no cropping, rotation or batch processing, and metadata and animation are not preserved.

Frequently asked questions

Is a KB target guaranteed?

No. File size depends on image content and format. The tool searches quality 10–95% at your chosen dimensions. If even the lowest quality is too large, it reports that clearly and offers that result without changing dimensions. PNG does not have lossy quality control.

Are my images uploaded?

No. Decoding, resizing and encoding happen locally. The download does not preserve metadata or animation. Transparent pixels stay transparent in PNG and WebP; JPEG fills them white.

How do I resize an image without distorting it?

Keep the aspect ratio locked so that changing the width updates the height in proportion, or resize by percentage. To fit a different shape, such as a square, the image would need cropping, which this tool does not do.

Does making an image larger improve its quality?

No. Enlarging creates new pixels by interpolation, so the image gets bigger but gains no real detail and may look soft. Start from the largest original you have.

What is the difference between KB and kB?

This tool defines 1 KB as 1,024 bytes. Some websites and operating systems use 1 kB = 1,000 bytes, so if a form states a limit in kB, a target set here will stay slightly under it.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
resize_byResize byone of: pixels, percentdefault pixels
scale_pctPercentage (%)percent: 6.5 means 6.5%; allowed > 0 – 10000; used with resize_by = percentdefault 50
keep_aspect_ratioKeep aspect ratiotrue or false; used with resize_by = pixelsdefault true
formatOutput formatone of: png, jpeg, webpdefault png
quality_pctQualitypercent: 6.5 means 6.5%; allowed 10–95; used with format = jpeg, webpdefault 85
target_size_kibMaximum size (KB, 1 KB = 1024 bytes)number; any unit in the name: _kb, _mb, _gb, _tb, _kib, _mib, _gib, _tib; allowed 1–20480 kib; used with format = jpeg, webpoptional

Examples

  • ?scale_pct=25&format=jpeg&quality_pct=70
  • ?keep_aspect_ratio=false&format=webp&target_size_kib=200
  • ?scale_pct=200&format=png

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="resized-image"]