image resizerresize imageimage dimensionsweb imagesphoto resize

How to Resize Images for Web, Email, and Social Media

Correctly sized images load faster and look better everywhere. Learn the right dimensions for common use cases and how to resize any image in seconds.

7 min read

Related Tool

Image Resizer

Open tool

Image resizing is one of the most routine tasks in web development and content creation. Oversized images slow down page loads. Images that are too small appear blurry on high-density displays. Knowing the right dimensions for each use case and resizing accurately is a skill that saves time and improves quality.

Why Resizing Matters for Performance

A full-resolution photo from a modern smartphone is often 4000 x 3000 pixels at 6 to 12 MB. Displaying that image at 400 pixels wide on a webpage sends 10 times more pixel data than necessary. The browser downloads the full image and then scales it down during rendering, wasting bandwidth and slowing the page.

Serving the image at the correct display dimensions (or slightly larger for retina displays) can reduce the file size by 90 percent or more compared to the original.

Common Dimensions for Web Use

Header and hero images: 1200 to 2000 pixels wide is typical for full-width desktop hero sections, accounting for retina displays. The height depends on the design.

Blog post thumbnails: 800 x 600 pixels or 800 x 450 pixels (16:9) are common choices. Card-style article listings often use 400 x 300 pixels.

Social media: Twitter card images are 1200 x 628 pixels. Facebook and LinkedIn shared images work best at 1200 x 630 pixels. Instagram square posts are 1080 x 1080 pixels. TikTok and Stories are 1080 x 1920 pixels (9:16).

Favicons: 32 x 32 pixels for most browsers, 180 x 180 pixels for Apple Touch Icons.

Email images: most email clients cap display width at 600 pixels. Use images 1200 pixels wide (for retina rendering) or 600 pixels wide as the practical limit.

Maintaining Aspect Ratio

Resizing with the aspect ratio locked changes the other dimension proportionally when you change one dimension. An image that is 2000 x 1500 pixels (4:3 ratio) resized to 800 pixels wide becomes 800 x 600 pixels. Resizing without locking the aspect ratio produces a distorted, stretched image.

Using the DevHexLab Image Resizer

Open the tool at /tools/image/image-resizer. Upload your image. Enter the target width or height. Toggle the aspect ratio lock (on by default) to maintain proportions. Click Resize and download the result.

Frequently Asked Questions

Can I upscale an image to a larger size?

Yes, but upscaling reduces sharpness because the tool must create pixel data that did not exist in the original. AI-based upscaling tools produce better results for upscaling than simple bilinear or bicubic interpolation.

What file format should the resized image use?

Use the same format as the original for most purposes, or convert to WebP at the same time for web use.

Resize to the correct dimensions before uploading any image to the web.