Skip to content

How to Resize Images for Your Website (Without Blurriness)

Match hero banners, thumbnails, and blog images to pixel specs without soft edges.

Use the free tool now — skip the reading if you already know what you need.
Open Resize Image
How to Resize Images for Your Website (Without Blurriness)

Most images on a website are the wrong size in one of two ways: they are far larger than the space they occupy, so the page loads slowly, or they are smaller than the space they occupy, so the browser stretches them and everything looks soft. Both problems are fixed by resizing to the dimensions the layout actually uses.

Work out the size your layout needs

Open the page in a browser, right-click the image and choose Inspect. The developer tools show two numbers: the rendered size in CSS pixels and the natural size of the file. If the natural size is much bigger than the rendered size, you are shipping wasted bytes. If it is smaller, the browser is upscaling and you are losing sharpness.

Multiply the rendered width by the pixel density you want to support. A 400px-wide card on a phone with a 2× screen needs an 800px-wide file. A 3× phone needs 1200px. Serving one file at 2× is the usual compromise: sharp on most devices, still reasonable in size.

Typical sizes by placement

  • Full-width hero or banner: 1600 to 2000px wide, 16:9 or wider. Keep it under roughly 250 KB after compression.
  • In-article image: 800 to 1200px wide, matching the text column.
  • Blog card or thumbnail: 400 to 600px wide in a 4:3 or 16:9 crop, under 80 KB.
  • Profile or author avatar: 200 to 400px square, usually shown as a circle.
  • Social share preview: 1200×630px, the size most networks crop from.

If your theme or CMS documents its own sizes, use those numbers. Guessing wastes a round of exports.

Resize and crop are different jobs

Resizing changes the pixel dimensions and keeps the whole picture. Cropping removes pixels from the edges. When the target slot has a fixed ratio, such as a 16:9 hero, resizing a square photo to fill it will stretch faces. Crop to the ratio first, then resize to the final width.

Use Resize Image with the aspect ratio lock on when you are scaling proportionally, and Crop Image when you need a specific ratio like 1:1 for avatars or 16:9 for banners. If your CSS uses object-fit: cover, the browser crops for you, but it cannot recover detail it never had, so the source still needs to be large enough for the slot.

Do not upscale small photos

Enlarging a 300px image to 1200px does not add detail. The result is a soft, slightly blocky image that looks worse than the small original displayed at its natural size. Always start from the largest copy you have: the original camera file, the design export, or the client's source asset. If only a small copy exists, choose a layout that displays it smaller instead of stretching it.

Pick the format before the final export

Photographs and screenshots with gradients compress well as JPG or WebP. Logos, icons, screenshots with flat colour and anything with transparency belong in PNG or WebP. WebP is smaller than JPG at the same visible quality and is supported by every current browser, so it is a safe default for site images. Use Image to WebP after resizing rather than before, so you only convert the file you are actually publishing.

Compress after you resize

Resizing removes pixels, compression removes data the eye is less likely to notice. Doing them in that order gives the smallest usable file. Run Compress Image on the resized output and check the result at 100% zoom, especially on text and sharp edges. Our guide on compressing images without losing quality covers which settings to change when a photo starts to look muddy.

Keep the file name and alt text useful

Rename files to something descriptive like team-meeting-2026.jpg instead of IMG_4821.jpg, and give every image an alt attribute that describes what it shows. Screen readers rely on alt text, and search engines use both the file name and the alt text to understand the image. Avoid stuffing keywords into either one.

Images that end up in documents

If the resized images are going into a report, invoice or scanned form, convert them in bulk with Image to PDF after resizing. Compressing first keeps the PDF under email and portal limits; the JPG to PDF guide walks through the order of steps.

Common mistakes to avoid

  • Resizing with the aspect ratio unlocked, which stretches the image.
  • Exporting at exactly 1× and then wondering why photos look soft on modern phones.
  • Uploading a 4000px camera file for a 400px thumbnail.
  • Converting to WebP before cropping, then cropping the converted file again.
  • Saving PNG for photographs, which can triple the file size for no visible gain.

When in doubt, resize to the pixel width the page renders at 2×, compress, and check the result on a real phone. That single pass fixes most of the speed and sharpness complaints a site gets.

Start now with Resize Image.

Frequently asked questions

There is no single size for every website image. A featured image may work well at 1200 × 630 pixels, a large hero banner may need around 1600–1920 pixels in width, and a thumbnail may need 400–800 pixels depending on its displayed size. Check your website theme and layout before choosing dimensions.

A featured image of 1200 × 630 pixels is a practical starting point for many blogs and social previews. Images within the article often work well at 800–1200 pixels wide. The ideal dimensions depend on the content column, theme, and whether the image needs to appear sharply on high-density screens.

Start with the largest good-quality original available. Use an image resizer, enter the required dimensions, and preserve the aspect ratio or crop the image appropriately. Avoid enlarging small images beyond their useful resolution, and apply compression carefully after resizing.

Yes, when the original image is much larger than its display area. Resizing to sensible dimensions reduces unnecessary pixels and can reduce the amount of data the browser must download. Use responsive image techniques when the same image needs to display at different sizes.

For some high-density displays, a source image around twice the CSS display dimensions can look sharper. For example, an image displayed at 400 pixels wide may benefit from an 800-pixel source. This is not a universal requirement; balance sharpness against file size and provide suitable responsive variants when possible.

JPG is widely suited to photographs, PNG is useful for graphics that require lossless quality or transparency, and WebP and AVIF can provide efficient compression for many modern websites. Choose a format that preserves the appearance you need and remains compatible with your site's browsers and image delivery setup.

Resizing oversized images can reduce the amount of image data a page needs to load and may help page performance. This can support user experience and Core Web Vitals, but resizing alone does not guarantee higher Google rankings. Relevant image content, descriptive alt text, suitable formats, and good page performance all matter.

Resize when you need to change the overall pixel dimensions while preserving the whole image. Crop when you need a particular composition or aspect ratio, such as a wide hero banner or square product card. Avoid stretching the image to fit a box because it distorts faces and objects.

Often, yes. Resize to appropriate pixel dimensions first, then use a suitable image format and compression setting to reduce file size. Check the final image at its intended display size. For detailed compression settings, see the PdfPeaks guide to compressing images without losing quality.
pdfpeaks.com pdfpeaks.com Resize Image Online Free - Image Resizer | PdfPeaks PdfPeaks Resize Image Online Free - Image Resizer | PdfPeaks Resize image online free. Change image size by pixels, cm or percentage, make it smaller or larger, and save as JPG or PNG. No sign-up, works on mobile.

Discussion

0 approved comments

Join thread

No comments yet. Start the discussion.