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.
What resizing actually does to an image
A digital image is a grid of pixels. When you resize it, the software has to decide what colour every pixel in the new grid should be. When you shrink an image, many original pixels are averaged into each new pixel. This is why a photo reduced from 4000 pixels wide to 1200 pixels wide still looks sharp: you are throwing away surplus detail, not inventing anything.
Enlarging works the other way around. The software must create pixels that never existed, so it guesses by blending neighbouring pixels. The result is a larger file that looks soft, because no new detail has been added. This is the single most important rule of resizing: scaling down is safe, scaling up is not.
Choose dimensions based on where the image will be used
The best size is the smallest one that still looks crisp where the image is shown. A blog image displayed 800 pixels wide on a laptop does not need to be 4000 pixels wide. Phones and many laptops have high-density screens, so a good rule is to export at up to twice the display width, and no more.
Some common targets are listed below. They are guidelines rather than strict rules, and platforms change their recommendations from time to time, so check the current requirements before publishing.
- Blog or article body image: 1200 to 1600 pixels wide.
- Social sharing preview (Open Graph): 1200 x 630 pixels is the widely used size.
- Profile picture or avatar: 400 x 400 pixels is usually plenty.
- Email: 600 to 800 pixels wide keeps messages light.
- Thumbnails: 300 to 400 pixels wide.
Keep the aspect ratio locked
The aspect ratio is the proportion between width and height. If you change only one dimension, the picture stretches and people look wider or thinner. Locking the aspect ratio means that when you type a new width, the height is calculated for you. Unlock it only when you genuinely need a different shape, and in that case crop first instead of stretching.
A worked example: from a 4000 px photo to a web image
Suppose a phone or camera gives you a photo that is 4000 pixels wide and 3000 pixels high. That is 12 million pixels (4000 x 3000 = 12,000,000), which is far more than a web page can show. You want to place it in a blog post where the content column is 800 pixels wide.
Because screens with high pixel density show images at roughly twice their layout width, a sensible export width is 1600 pixels. Keeping the aspect ratio, the height follows from the original proportions: 1600 x (3000 / 4000) = 1200 pixels. The result is 1600 x 1200, or 1.92 million pixels, which is only 16 percent of the original pixel count (1,920,000 / 12,000,000). The picture still looks crisp in the 800 pixel column, but the data the browser must download is a small fraction of what the camera produced.
If you only need a 1200 pixel wide version for an email, the same calculation gives 1200 x 900. The rule is always the same: new height = new width x (original height / original width). A locked aspect ratio does this arithmetic for you.
Step by step: resizing an image with the ProTools Hub Image Resizer
The steps below use the free Image Resizer, which works in your browser. The same ideas apply in any editor.
- Open the Image Resizer and choose your photo, or drag it onto the page. Files up to 20 MB are accepted.
- Pick how you want to size it: exact pixels, a percentage of the original, or a preset such as Full HD or a social media size.
- Keep the aspect ratio locked and type the new width. The height is calculated automatically. If you pick a preset with a different shape from your photo, choose Cover to fill the frame and crop the overflow, or Contain to fit the whole picture with empty space around it.
- Choose the output format and quality. For a photo, JPEG or WebP at around 80 percent is a good starting point. For a logo or screenshot, choose PNG.
- Process the image, compare the result with the original, and download it. Your original file is never changed, so you can try again with different settings.
How to check that the result is good enough
Do not judge a resized image at a glance. Open it at 100 percent zoom and look at the areas where quality problems show first: text, thin lines, hair, foliage and the edges of objects against a plain background. If those look clean, the image is ready. If you see blocks or a halo around edges, raise the quality setting or choose a different format.
Also compare file sizes. A good web photo is often a few hundred kilobytes. If your result is several megabytes, the dimensions are probably still larger than they need to be, or the quality setting is too high. Reducing the width usually saves more space than lowering quality, so adjust the dimensions first.
What we tested: a real resize, with the numbers
To check the steps above, we ran a real photo through the ProTools Hub Image Resizer: a portrait on a white background, 679 x 452 pixels and 13.5 KB. We set the width to 440 pixels with the aspect ratio locked and exported it as WebP. The tool calculated the height as 293 pixels, which matches the formula 440 x (452 / 679) = 292.9, rounded to 293.
The result was a 440 x 293 pixel WebP file of 9.4 KB, which the tool reported as 30.5 percent smaller. Compared side by side at the same display size, the face, hair and the edge of the clothing looked the same as the original, and nothing was stretched.
One detail is worth noticing. The new image has only 42 percent of the original pixels (128,920 compared with 306,908), yet the file shrank by about 30 percent rather than 58. The reason is that the original was already a small, well compressed file, so there was less to save. The big savings in the earlier example come from starting with a very large camera photo. If your image is already small, expect a smaller gain.
This was a single test with one image, so treat the numbers as an illustration, not a benchmark. Your results will depend on the picture, its original format and the quality setting you choose.
Resize, crop or compress: which one do you need?
These three jobs are often confused. Resizing changes the pixel dimensions of the whole picture. Cropping removes part of the picture to change its shape or focus. Compressing keeps the dimensions but stores the data more compactly, usually by discarding detail the eye is unlikely to notice.
If a page is slow because an image is huge, resize first and compress second. If an upload form rejects a file because it is a few kilobytes over a limit, compression alone is often enough. If a platform needs an exact shape, such as a square profile picture, crop or use a preset that crops for you.
Pick the right output format
Format affects both quality and file size, so choose it deliberately rather than leaving the default.
- JPEG: best for photographs. It uses lossy compression, so each save discards a little data. It has no transparency.
- PNG: lossless and supports transparency. Ideal for logos, screenshots and graphics with sharp edges, but photos can become very large.
- WebP: supported by all current major browsers. It usually produces smaller files than JPEG or PNG at similar visual quality, and supports transparency.
Never resize a copy of a copy
Every time a JPEG is saved, the encoder throws away a little more information. Open, resize, save, then open that result and resize it again, and small flaws start to stack up into blocky edges and muddy colours. Always keep your original file and make each resize from it. If you need several sizes, create each one from the original rather than chaining them.
A related tip is to choose a quality setting around 80 to 90 percent for photos. Going from 100 to 85 percent usually cuts file size substantially with little difference you can see, while going below 60 percent tends to produce visible artefacts.
Common resizing mistakes
These problems cause most of the complaints about blurry or heavy images.
- Enlarging a small image and expecting it to look sharp.
- Uploading a huge photo and letting the page shrink it with CSS, which wastes bandwidth.
- Saving a photograph as PNG, which creates a very large file for no visual gain.
- Stretching an image to fit a space instead of cropping it.
- Forgetting that phone photos can carry an orientation flag, so a picture may appear rotated after processing.
Resizing privately in your browser
Many online resizers upload your pictures to a remote server. That is unnecessary: modern browsers can resize images on your own device using the Canvas API. With a browser-based tool, the file is read and processed locally, so personal photos and client artwork do not need to leave your computer or phone.
Try it free
Image Resizer
Resize by pixels or percent, lock the aspect ratio and export PNG, JPEG or WebP, all in your browser.
Frequently asked questions
Does resizing reduce image quality?
Shrinking an image keeps it sharp when done from the original file. Quality drops mainly when you enlarge an image or repeatedly re-save a JPEG.
What is the best format for a resized photo?
JPEG is the safest all-round choice for photos. WebP is often smaller at similar quality and is supported by current major browsers.
Can I make a small image bigger without it looking blurry?
Not reliably. Enlarging cannot add real detail, so the result looks softer. Start from the largest original you have.
What size should I resize a photo to for a website?
Export at about twice the width it is displayed at, and no more. For an 800 pixel wide content column, 1600 pixels wide is plenty. Larger files only slow the page down.
Why did my resized image get a different shape?
The aspect ratio was probably unlocked, or you chose a preset with different proportions. Lock the ratio to keep the shape, or use a fit mode that crops instead of stretching.
Is it safe to resize photos online?
It depends on the tool. Many sites upload your file to a server. A browser-based tool processes the file on your device. You can check by watching the Network tab in your browser's developer tools while you resize.
Keep reading
How Image Compression Improves Page Speed and Core Web Vitals
Smaller images load faster and help Largest Contentful Paint. See what to compress, which format to use and how far to go.
SecurityIn-Browser File Processing: What It Means for Your Privacy
Why tools that run in your browser keep files off remote servers, and what that does and does not protect.
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.