Image Resizer

Image Resizer

Resize any image to exact pixels, a social preset, or a percentage - with the aspect lock keeping proportions honest.

Drop an image here, or choose a file JPG, PNG, WebP or GIF, up to 25 MB. Nothing is uploaded.

px
If the shape does not match (exact size only)
Output format
Max file size, in KB (optional - leave blank for no limit)

Exact Pixel Sizes, Explained: Social Presets, Aspect Ratio and Fit Modes

Every platform states its image size in pixels, and every platform states a different one: an Instagram post wants 1080 by 1080, a YouTube thumbnail wants 1280 by 720, an X header wants 1500 by 500. Resize to the wrong numbers and the platform crops your photo itself. This guide explains how to hit the exact size you need, what happens when your photo is a different shape, and how to satisfy a pixel size and a file-size limit at the same time.

How to resize an image to exact pixels

  1. Choose your image. Drop it on the box above, or tap the box to browse. JPG, PNG, WebP and GIF all work, up to 25 MB, and nothing is uploaded.
  2. Pick a preset or a mode. Tap a social preset for the platform size, or choose Exact size and type the width and height yourself. Width only, Height only and Percentage keep the proportions for you.
  3. Decide what happens to the shape. If your photo is not the same shape as the target, choose Fit within, Fill and crop, or Stretch below - the difference is explained in the next section.
  4. Resize, check, download. Press Resize image and read the exact output dimensions in the result. Only download when both numbers match what the platform asked for.

Which size does each platform actually want?

Social sizes change, but these are the standard sizes the presets above use.

PresetPixelsShape
Instagram post1080 x 1080Square
Instagram story1080 x 1920Tall, 9 by 16
YouTube thumbnail1280 x 720Wide, 16 by 9
X header1500 x 500Very wide, 3 by 1
Pinterest pin1000 x 1500Tall, 2 by 3
LinkedIn post1200 x 627Wide, about 1.91 by 1
A preset sets the numbers, not the composition. A square crop of a wide landscape still cuts off the sides - that is what the fit choice below is for.
Example - before (a phone photo straight from the camera) 4032 x 3024 pixels, 12,192,768 pixels in total Example - after (width set to 1200 px, aspect lock on) 1200 x 900 pixels, 1,080,000 pixels in total - 91.1% fewer pixels, same proportions, same photo

Fit within, fill and crop, or stretch: what each one does to your photo

  • Fit within keeps the whole photo. The image is scaled until its longest side fits the target, so nothing is cut off - but the output canvas is the exact size you asked for, with empty space on the shorter side. Use it when nothing may be cropped, such as a document or a logo.
  • Fill and crop keeps the proportions and fills the frame. The image is scaled until the frame is covered, then the overflow is trimmed from the edges. Use it for social posts, where the platform would crop it anyway - this way you choose what survives.
  • Stretch forces the exact shape. Both sides are pulled to the target numbers regardless of the original shape. Faces get wider or taller, so use it only when the shape change is tiny or the image is abstract.
  • The aspect lock is the safe default. With the lock on, typing a width fills in the matching height automatically, so the photo can never be distorted by accident.

If the same photo also needs to be under a file-size limit, the Compress Image to 50 KB tool takes the target size as its input and searches for the best quality that fits it.

When a form wants exact pixels AND a KB limit

  • Set the pixels first, the KB limit second. Resize to the required dimensions, then let the tool search JPEG or WebP quality until the file fits under your limit. The pixels never change during the quality search.
  • JPEG and WebP can be squeezed; PNG cannot. PNG is lossless, so a KB limit on a PNG can only be met by shrinking the dimensions - which would break the exact-pixel requirement. Choose JPEG or WebP when a KB limit is set.
  • If the limit cannot be met, the tool says so. It shows the smallest file it achieved at the exact pixels you asked for, instead of silently handing you a file that still fails the form. Raise the limit, or pick WebP, and try again.
  • Upscaling is allowed, with a warning built in. Setting a width above the original works, but the new pixels are interpolated from the old ones, so the result is softer, never sharper.

Frequently asked questions

Will the downloaded file be exactly the pixels I typed?
Yes. The output canvas is created at exactly the width and height you set, and the result panel shows both numbers so you can verify them before downloading.
Why does my resized photo have empty space on the sides?
That is the Fit within mode doing its job: it keeps the whole photo and your proportions, so when the shapes differ the canvas has space left over. Switch to Fill and crop if you would rather trim the edges than keep the empty space.
Does resizing make the file smaller?
Almost always, because the file size follows the pixel area: halving both sides keeps only a quarter of the pixels. A 4032 by 3024 photo resized to 1200 by 900 has 91.1% fewer pixels, so the file shrinks by a similar share.
Is my photo uploaded to a server?
No. The resizing runs in your browser using the canvas element, so your photo never leaves your device and nothing is stored anywhere.
What happens to transparency when I choose JPEG?
JPEG has no transparency, so a transparent PNG gets a white background in the output. Keep the original format, or choose PNG or WebP, if the transparency must survive.