Resize Image Online by Pixels or Target KB
A full-resolution camera photo is rarely the right size for a website slot or an application upload. Set the required width and height, or work toward a KB ceiling when the receiving service limits file size instead of pixels.
Dimension changes and KB-target passes execute entirely in your browser tab rather than on a remote server. The selected image and preview stay in local tab memory until you close or reload the page.
Drop your image here
or choose an image from your device
Accepts JPG, PNG or WEBP. Enlarging beyond the original size adds pixels but no new detail.
Need your documents as one PDF? Convert images to PDF.
Once the pixel dimensions are right, compare output formats for the receiving service with Image Compressor.
Resize a JPG, PNG or WEBP to exact pixel dimensions, or aim for a target file size in KB — the tool encodes and measures actual output bytes at each step.
About Resize Image
Two different resize modes
Dimension mode scales the image to the width and height you type, with the aspect ratio linked by default so nothing stretches. Target-size mode takes a KB figure instead and searches encoder quality first (for lossy formats), then steps pixel dimensions down if needed until the measured output lands under your limit.
Why resizing matters more than compressing for most oversized images
File size scales roughly with the square of pixel dimensions. For example, scaling a 4000 × 3000 (12 MP, 48 MB raw RGBA) camera photo down to 1200 × 900 (1.08 MP, 4.32 MB raw RGBA) removes 91% of the pixels before any encoder quality loss occurs. Halving both width and height always removes 75% of the pixel grid — usually a bigger win than any quality slider.
Settings
Pixel dimensions vs target size
Use pixel dimensions when you know the exact width or height a layout needs. Use target size when a form or platform imposes a KB cap and you don't want to guess at quality values manually.
Aspect ratio lock
On by default so typing a width automatically computes the matching height. Turn it off only when you deliberately need a non-proportional size, and expect visible stretching.
When to use it
- Scaling a large camera photo down to the size it will actually be displayed at on a website.
- Hitting a strict KB limit for an upload form without trial-and-error quality guessing.
- Preparing a batch of images to a consistent pixel width before publishing.
Limitations to know
- Upscaling a small image adds no real detail — it interpolates existing pixels into a bigger, softer file.
- Target-size mode reduces encoder quality first and steps dimensions down when quality alone cannot reach a tight KB ceiling.
- Unlinking the aspect ratio and entering mismatched numbers will visibly distort the image.
Common problems and fixes
Target file size mode also reduced my pixel dimensions.
When quality alone cannot fit the image under a tight KB ceiling (or when the output format is lossless PNG), the search automatically steps pixel dimensions down until the file fits. If you need exact pixel dimensions AND a custom quality level, resize in Dimensions mode first and then fine-tune in Image Compressor.
My resized image looks stretched.
The aspect ratio lock was off and the width/height you entered don't match the original ratio. Re-enable the lock and enter only one dimension.
The image looks softer after making it bigger.
Upscaling can't add detail that wasn't captured originally — it's interpolating existing pixels. Start from the highest-resolution original available instead.
How to use it
- 1Drop your JPG, PNG or WebP image. Its current pixel dimensions and byte size appear in the metadata row.
- 2Resize by pixels — type a width or height and the other side follows the aspect ratio — or switch to target size and enter the KB limit you need to hit.
- 3In target-KB mode the tool encodes, measures, adjusts quality and repeats until the output actually fits under your limit.
- 4Press Resize, verify the output dimensions in the result panel, and download.
What happens to your file
Pixel resizing and target-size retries run in this tab, without sending the image to a resizing server. Temporary preview URLs refer to local browser data. Refreshing clears the selected image and result, not copies already saved. Tool-use analytics can include format and approximate megapixels but exclude pixels and filenames.
Enlarging beyond the original size adds pixels but no new detail.
Full details are in the Privacy Policy.
When not to use this
Resizing will not make an image sharper. Enlarging a tiny picture only spreads the same detail across more pixels; an upscaler is the better choice for that.
If the destination specifies a shape such as square or 4:3 and your photo has different proportions, crop it first so faces and text are not stretched.
Frequently asked questions
What width should I use for a website?
1600px on the long edge for a full-width hero, 1200px for body images, around 800px for cards and thumbnails. Serving pixels wider than the display area is the most common cause of slow pages.
How does the target file size mode work?
It runs a binary search on encoder quality (and steps pixel dimensions down if needed, or for lossless PNG) — encoding, measuring the real byte count, and repeating until the output lands under your KB limit.
Is the aspect ratio always locked?
The linked ratio is on by default so images don't stretch. Unlink it if you deliberately need a non-proportional size, and expect distortion.
Does resizing change my image's file format or transparency?
By default the output keeps your original format (JPG, PNG, or WebP), though you can also choose a different format using the Output format buttons before resizing. PNG and WebP outputs preserve 8-bit alpha transparency at the new dimensions, while JPG fills any transparent pixels with your chosen background colour.