How to Resize an Image to a Specific Size in Pixels (e.g. 1080×1080)
How to resize an image to exact pixel dimensions without distorting it: Cover, Contain and Stretch compared on a real 6528×4896 photo, plus the mistake we made during testing.
The short answer
To resize an image to an exact size in pixels, open the free [Image Resizer](/tools/image-resizer), load your picture and choose the Pixels tab. Type the width and height you need, or open the Presets tab and pick a ready-made size such as Instagram post (1080 × 1080). If the new shape differs from the original, choose Cover to crop, Contain to pad with a background colour, or Stretch to force the size. Pick JPEG, PNG or WebP, click Resize, and download the result. The image is processed in your browser.
Why exact pixel sizes matter
Websites, social platforms and forms often ask for an image of a specific size, and a file that is much larger or a different shape may be rejected, cropped automatically or compressed hard. Setting the pixels yourself lets you decide what is cropped and keeps the file small. Platforms change their recommended sizes from time to time, so check the current guidance for the one you use. These are the presets the tool includes:
- Social media: Instagram post 1080 × 1080, Instagram or TikTok story 1080 × 1920, Facebook cover 820 × 312, YouTube thumbnail 1280 × 720, X (Twitter) post image 1600 × 900, LinkedIn banner 1584 × 396.
- Icons: Favicon 32 × 32, Apple touch icon 180 × 180, app or PWA icon 512 × 512.
- Screen sizes: HD 720p 1280 × 720, Full HD 1080p 1920 × 1080, 4K UHD 3840 × 2160.
The shape problem: why a photo does not just become a square
Most camera photos are 4:3 or 3:2 rectangles. A square has a different shape, so something has to give. Our test photo was 6528 × 4896 pixels. By simple arithmetic, a square cut from it can be at most 4896 × 4896 pixels, which is 75% of the width. The three fit modes handle the difference in three different ways.
Cover scales the photo until it fills the whole square and crops the overflow, centred. Contain scales the whole photo to fit inside the square and fills the empty space with a background colour. For our photo that means a picture 1080 wide and 810 high, with 135 pixels of padding above and below. Stretch forces the image into the new shape, which distorts it.
What we tested
We used a real phone photo, 6528 × 4896 pixels and 5.60 MB, and the Instagram post preset (1080 × 1080) with JPEG output at 90% quality. Tested on 1 December 2026 in Chrome on Windows 10. Everything below comes from the tool's result panel.
- Stretch: 1080 × 1080, 210.1 KB, 96.3% smaller than the original. The whole scene is kept, squeezed into the square.
- Contain: 1080 × 1080, 175.9 KB, 96.9% smaller. The photo sits in the middle with white bars at the top and bottom. The file is smallest here partly because flat white areas compress very well.
- Cover: 1080 × 1080, 204.8 KB, 96.4% smaller. The photo fills the square and the edges are cropped, so people near the sides of the original can be cut off.
- Cover with JPEG quality lowered to 50%: 72.4 KB, 98.7% smaller than the original. That is about a third of the size of the 90% version.
- Aspect ratio lock on, width 1080 (tested on 2 December 2026 with a second 6528 × 4896 photo of 8.00 MB): the height showed 810, and the output was a 1080 × 810 JPEG at 90% quality of 195.2 KB, 97.6% smaller. No fit mode was needed because the shape did not change.
Which fit mode should you choose?
Use Cover when the picture has a clear subject in the middle and you want a full-frame result, as for a profile picture, a thumbnail or an Instagram post. Check where the crop falls, because the crop is centred and cannot be moved. Use Contain when nothing may be cut off, for example a product photo or a document, and pick a background colour that matches the page. Avoid Stretch unless distortion does not matter, because it changes the shape of everything in the picture, including faces and circles.
If you do not need an exact shape, leave the aspect ratio lock on. The tool then fills in the matching height for you when you type a width, so nothing is cropped or distorted. In our second test, a different 6528 × 4896 photo (8.00 MB) with the lock on and a width of 1080 showed a height of 810 pixels. The result was a 1080 × 810 JPEG of 195.2 KB at 90% quality, 97.6% smaller than the original, and the preview shows the same scene as the original with nothing cropped.
A mistake we made during testing
Our first attempts used the Pixels tab, where we typed 1080 in the width box while the aspect ratio lock was off. The height stayed at 4,242 pixels, apparently a leftover from the size the tool proposed for this very large photo, so the tool produced a 1080 × 4242 image: a tall, squeezed strip, not a smaller version of the photo. The result panel showed the wrong size clearly, but it was easy to miss.
The lesson is simple. When you type only one dimension, either keep the lock on or type both numbers, and always read the output size shown under the fields before you click Resize. After this test we also changed the lock button, so turning the lock back on now recalculates the height from the current width.
JPEG, PNG or WebP at the new size
We also exported that same 1080 × 4242 test image in three formats, which is a fair comparison because the pixel size was identical. As PNG it was 5.29 MB, only 5.7% smaller than the 5.60 MB original, because PNG is lossless and keeps every pixel exactly. As JPEG at 50% quality it was 218.1 KB, 96.2% smaller. As WebP at 50% quality it was 98.1% smaller than the original, roughly half the size of the JPEG.
For photos, JPEG or WebP is almost always the right choice, and PNG is better for screenshots, logos and anything that needs transparency. We did not compare the images pixel by pixel, so look at the result at full size before you publish it. Our guide on [resizing images without losing quality](/blog/how-to-resize-images-without-losing-quality) explains the quality side in more detail.
Limits to know about
The resizer limits the longest side of the output to 8,192 pixels. When we entered a width of 9000, the tool showed the message: The longest side is limited to 8,192 pixels. The tool also caps the output at 24 megapixels in total, and its FAQ says the input can be up to 20 MB. These limits keep the browser from running out of memory. The tool also works on one image per upload, not a batch, so to resize several pictures to the same size, note the settings you used (size, fit mode, format and quality) and repeat them for each one. If you need to make a small picture bigger, use the [Image Upscaler](/tools/image-upscaler) and read [how upscaling works](/blog/how-to-upscale-images-in-your-browser) first, because enlarging cannot add detail that was never captured.
Pixels are not the same as DPI
Pixels are the real dimensions of an image. DPI only describes how large those pixels should be when printed, so changing it does not change how sharp the picture looks on a screen. When a website asks for a size, it means pixels. For print, work out the pixels you need from the print size and the resolution the printer asks for.
Try it free
Image Resizer
Resize by pixels, percentage or preset, with Cover, Contain and Stretch, and export JPEG, PNG or WebP in your browser.
Frequently asked questions
How do I resize an image to exactly 1080×1080?
Open the Image Resizer, load the picture, choose the Instagram post preset or type 1080 for both width and height, pick Cover, Contain or Stretch, and click Resize.
Will resizing to a square distort my photo?
Only if you choose Stretch. Cover crops the edges and Contain adds background bars, and both keep the proportions of the picture.
Why did my image come out tall and thin?
The height was left at its old value while the width changed. Keep the aspect ratio lock on, or type both dimensions, and check the output size before resizing.
Can I resize several images at once?
Not in one batch. The Image Resizer processes one image per upload. For several pictures, repeat the steps with the same size, fit mode, format and quality for each one.
What is the largest size I can resize to?
The longest side is limited to 8,192 pixels and the output to 24 megapixels.
Which format should I choose?
JPEG or WebP for photos, because the files are much smaller. PNG for screenshots, logos and transparency.
Keep reading
How to Resize Images Without Losing Quality: A Step-by-Step Guide
Pick the right dimensions and format, avoid repeated re-compression, and resize images in your browser without uploading them anywhere.
TutorialsHow to Upscale an Image in Your Browser (and What to Expect)
What image upscaling can and cannot do, how to enlarge a picture up to 4x in your browser, and what our two real tests showed about size, format and file weight.
Written by the ProTools Hub Team. This article is for general information. Features and browser support change over time, so check current documentation for anything critical.