Image Resizer
Resize any image to exact pixel dimensions.
Drop image here or click to upload
Supports JPEG, PNG, WebP, GIF
What is an image resizer?
An image resizer changes the dimensions (width and height) of an image. Common reasons to resize include preparing images for social media (each platform has specific dimensions), reducing file size for email or web upload, creating thumbnails, and fitting images into specific layouts. This tool resizes images in your browser โ no server upload needed.
Resizing can either scale the image proportionally (maintaining the aspect ratio) or stretch it to exact dimensions. Scaling down (making smaller) preserves quality well because pixels are combined. Scaling up (making larger) can reduce quality because new pixels must be interpolated โ the image may appear blurry if enlarged too much.
How to use this tool
Upload an image, enter the desired width and height (or just one dimension with aspect ratio locked), and download the resized result. The tool shows the original and new dimensions and file size. Preset sizes for common social media platforms are available for quick selection.
Pixels vs. percentage: two ways to specify a new size
Most image editors โ including this one โ let you enter a target size as an absolute pixel value (for example, 1200 px wide) or as a percentage of the original (for example, 50%). Both approaches produce identical results when the math works out to the same number, but each suits different workflows. Use pixel dimensions when you have a strict platform requirement (such as a profile picture capped at 400 ร 400 px). Use percentages when you want to uniformly shrink a batch of images and the exact output size matters less than the reduction factor.
Aspect ratio: locked vs. free resize
Aspect ratio is the proportional relationship between an image's width and height, expressed as a ratio such as 16:9, 4:3, or 1:1 (square). Locking the aspect ratio means the tool recalculates the other dimension automatically: change the width and the height follows, keeping the original proportions. Unlocking the aspect ratio lets you enter both dimensions independently, which stretches or squishes the image to fill the new frame exactly. Distortion is almost always undesirable โ a portrait photo stretched into a square looks warped โ so leave the ratio locked unless you have a specific reason to distort.
If a platform requires exact dimensions that differ from your image's native ratio (say, 1200 ร 628 for an Open Graph image), the correct workflow is to crop first, then resize โ not to force-fit by unlocking the ratio.
Downscaling vs. upscaling: what actually happens to your pixels
When you scale an image down, the resizing algorithm collapses multiple source pixels into each output pixel. Because real color data is being combined, the result stays sharp and clear. You can safely downscale an image to any fraction of its original size โ the output will look clean even at very small dimensions.
Upscaling works the opposite way: the algorithm must invent new pixels to fill the extra space. It does this by interpolation โ sampling the colors of neighboring pixels and calculating a weighted average for each new pixel. Bilinear interpolation (the most common browser method) produces a result that looks smoother than the original at small enlargements, but noticeably softer or blurry at large ones. The fundamental limitation is that upscaling cannot recover detail that was not captured in the original image. A 200 ร 200 px thumbnail enlarged to 1600 ร 1600 will look blurry, regardless of the algorithm. If you need a high-resolution image, start with a higher-resolution source.
Common target sizes for web and email
Different contexts have different pixel budgets. Here are widely-used targets to guide you:
- Profile pictures and avatars: 400 ร 400 px is a safe maximum โ most platforms display these at 96โ200 px but store a larger version.
- Blog and article hero images: 1200 ร 630 px covers most layouts and doubles as the Open Graph preview image for social shares.
- Email inline images: keep images under 600 px wide and total email weight under 1 MB to avoid clipping by Gmail.
- E-commerce product images: 800 ร 800 px to 1200 ร 1200 px gives enough detail for zoom features without slowing page load.
- Desktop wallpapers: 1920 ร 1080 px (Full HD) or 2560 ร 1440 px (QHD) for modern displays.
Social media image sizes
- Instagram post: 1080 x 1080 pixels (square) or 1080 x 1350 (portrait).
- Facebook cover photo: 820 x 312 pixels.
- Twitter/X header: 1500 x 500 pixels.
- LinkedIn banner: 1584 x 396 pixels.
- YouTube thumbnail: 1280 x 720 pixels.
Resolution, dimensions, and file size
File size is roughly proportional to the total pixel count โ width multiplied by height. Halving both dimensions reduces pixel count to 25% of the original (0.5 ร 0.5 = 0.25), so a 4 MB photo resized from 4000 ร 3000 px to 2000 ร 1500 px will end up around 1 MB, depending on format and compression. This relationship makes resizing one of the most effective ways to reduce file size before uploading to a website or sending by email. Note that "resolution" (dots per inch, or DPI) is a print concept that has no effect on how an image looks on screen โ only pixel dimensions matter for digital use.
Your images never leave your device
This tool processes images entirely inside your browser using the HTML5 Canvas API. No data is sent to a server. The image bytes stay on your computer from the moment you drop the file to the moment you download the result. This matters when resizing sensitive photos โ personal documents, medical images, private portraits โ because there is no upload step and no server ever touches your files.
Format considerations: JPEG vs. PNG
This tool preserves the input format: JPEG files produce JPEG output, and all other formats produce JPEG by default except PNG, which stays PNG. Each format has different characteristics after resize:
- JPEG (photographs, complex images): JPEG is a lossy format โ every save re-encodes the image and introduces a small quality loss. Resizing a JPEG in this tool re-encodes at quality 92, which is very high and virtually indistinguishable from the original for normal viewing. Avoid repeatedly resizing and saving the same JPEG as the loss accumulates.
- PNG (screenshots, graphics, logos): PNG is lossless โ the pixel data is preserved exactly. Resizing a PNG through this tool keeps the lossless encoding. PNG files are larger than equivalent JPEGs for photographs but are preferable for images with sharp edges, text, or transparent backgrounds.
Quality considerations
When reducing image dimensions, the resizing algorithm combines multiple pixels into one, producing a sharp result. When enlarging, the algorithm must create new pixels by averaging nearby ones (bilinear or bicubic interpolation), which causes softening. As a general rule, you can safely reduce an image to any size but should avoid enlarging beyond 150-200% of the original.
Common mistakes to avoid
- Ignoring aspect ratio: unlocking the ratio and entering mismatched dimensions distorts the image. Always lock the ratio unless deliberate distortion is the goal.
- Expecting upscaling to restore detail: making an image larger does not reveal hidden detail โ it only spreads existing pixels over more space, making the image softer.
- Resizing instead of cropping: if a platform requires a specific aspect ratio (for example, a square profile photo from a landscape source), crop to the correct ratio first, then resize. Resizing a landscape image to square dimensions without cropping squishes the image.
- Resizing up to meet a file-size minimum: some platforms reject images below a certain file size. Increasing pixel dimensions just to hit a minimum adds no visual quality and wastes bandwidth.
Frequently asked questions
What is aspect ratio and why should I maintain it?
Aspect ratio is the proportional relationship between width and height (like 16:9, 4:3, 1:1). Maintaining the aspect ratio means if you change the width, the height adjusts proportionally (and vice versa). This prevents the image from looking stretched or squished. Most resizing tools lock the aspect ratio by default.
How does resizing affect file size?
Reducing dimensions significantly reduces file size because fewer pixels require less data. Halving both dimensions reduces the pixel count to 25% of the original (1/2 width times 1/2 height = 1/4 the pixels). The exact file size depends on the format and compression settings, but expect roughly proportional reduction.
Can I resize a PNG without losing transparency?
Yes. When you upload a PNG, this tool outputs a PNG, which supports transparency. The Canvas API preserves the alpha channel during resize. If you change the output to JPEG (by uploading a non-PNG file), transparency is lost because JPEG has no alpha channel โ transparent areas become white.
Does changing DPI (dots per inch) change the image dimensions?
No. DPI (or PPI โ pixels per inch) is a print metadata value that tells a printer how densely to place pixels on paper. It has no effect on how the image looks on a screen. Changing DPI without changing pixel dimensions does not alter the image file in any meaningful way for digital use. If you need a larger print size, you need more pixels โ increase dimensions, not just DPI.