Canonical Image Resizer Tool
Image Resizer: set the width and height
100% client-side · No uploads · Powered by HTML5 Canvas
Written by Safaat Rahman Siham, Founder & Developer at Convertify4u. Contact us.
Pixels first, then the file you actually save
Exact width and height
Type the integers the form published. Each side can be from 1 to 10,000 pixels, and the aspect lock starts on so the other side follows. Unlock it only when the destination really wants a different shape, because the picture is stretched to those pixels. Background fill, off by default, is the other way to meet a box: turn it on to paint the canvas white and fit the image inside without stretching, with empty bands where the shapes differ.
Social sizes already listed
The presets are fixed pixel boxes you can apply in one pick. Facebook profile is 170 by 170, cover 820 by 312, post 1200 by 630, and story 1080 by 1920. Instagram profile is 320 by 320, square 1080 by 1080, portrait 1080 by 1350, and story 1080 by 1920. LinkedIn profile is 400 by 400, cover 1584 by 396, and post 1200 by 627. X profile is 400 by 400, header 1500 by 500, and post 1200 by 675. YouTube icon is 800 by 800, banner 2560 by 1440, and thumbnail 1280 by 720. TikTok profile is 200 by 200 and video is 1080 by 1920. Pinterest profile is 165 by 165 and a pin is 1000 by 1500. Read the label before you export.
Optional kilobyte target for JPG and WebP
Leave the target blank and JPEG or WebP saves at quality 0.92. Type a target in KB and the encoder binary-searches quality for up to 14 tries, from 0.08 through 1, keeping a file that fits. If none of those tries fit, the save uses quality 0.5. PNG ignores the target, and so does a GIF. The GIF download is a still image, a single frame you can post, rather than a new animation. The whole export stays in the browser.
How it works
- 1
Add a JPG, PNG, WebP, or GIF
Open the one picture you want to resize. The preview shows the original pixel size so you can compare it with the box you are about to set. JPG, PNG, WebP, and GIF are the formats this page accepts. A GIF is handled as a still, so you are resizing a frame you can export, and the download is that still image rather than a new animation.
- 2
Set the new size
Type pixels from 1 to 10,000 on each side, or pick a social preset such as an Instagram square at 1080 by 1080 or a YouTube thumbnail at 1280 by 720. Aspect lock starts on. Turn background fill on if you would rather fit the photo inside the box on white than stretch it. The picker lists Facebook, Instagram, LinkedIn, X, YouTube, TikTok, and Pinterest sizes.
- 3
Choose a format and download
Save the original format, or export JPG, PNG, or WebP, from this browser. JPEG and WebP default to quality 0.92. Add a KB target only for those two formats. The search tries up to 14 qualities between 0.08 and 1, and saves at 0.5 if none fit. PNG and GIF skip that target. Check the preview, then download the file you will actually upload.
Use cases
A form that names the pixels
Type those numbers with the lock on, unless the form also demands a different aspect ratio. Each side stays between 1 and 10,000 pixels.
A social post at a known size
Pick the platform and the preset, from a Facebook post at 1200 by 630 to a TikTok video frame at 1080 by 1920. Turn background fill on to letterbox onto white.
A JPG that also has to land under a size
Set the pixels, choose JPG or WebP, and type the kilobyte target. If the picture still misses that size, the save uses quality 0.5.
The pixel size you asked for
Faces look stretched
The lock was off, or a preset’s shape differs from the photo. Turn the lock back on, or turn background fill on so the image fits inside the box on white instead of stretching.
The KB field did nothing
The target applies to JPEG and WebP only. PNG and a GIF export ignore it. Switch the export to JPG or WebP, then type the kilobytes again.
Related guide
Specialized image resizer guides
- Resize by pixels
A guide focused on typing the width and height yourself.
- Resize for social media
The same presets, explained for posts and stories.
- Image compressor
A quality slider for JPEG, PNG, and WebP after the dimensions are settled.
- Resize a photo for print
Turn inches and DPI into the pixel width and height a print file needs.
- Compress an image toward a file size
When the pixel box is right and the remaining limit is kilobytes.
- Resize to 1920 by 1080
A Full HD 16:9 still for a slide, a 1080p frame, or a widescreen display.
- Resize to 1080 by 1080
A square still at the size many feed posts expect.
- Resize to 1200 by 628
A wide link card, close to the Open Graph still many sites unfurl.
- Resize to 1080 by 1920
A tall story or vertical video cover.
- Resize to 1500 by 500
A short wide header, the same shape as an X cover.
- Resize to 400 by 400
A small square avatar.
Trust & technology
Resize happens in the browser
The canvas preview and the download run on your device for the image you added. Width and height stay between 1 and 10,000 pixels, and the aspect lock starts on so the photo keeps its shape until you say otherwise.
Quality 0.92 unless you set a target
JPEG and WebP save at 0.92 when the kilobyte field is empty. A target searches up to 14 qualities from 0.08 to 1, then uses 0.5 if nothing fits. PNG and GIF export skip that quality percent.