Skip to content

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

6 min read · Published

Resizing is the quickest way to make an image fit a website, a form or a post. Done badly it stretches faces and blurs text; done well it is invisible. This guide covers the ideas you need: pixel dimensions, aspect ratio, cropping versus resizing and how to pick a target size.

Dimensions, resolution and file size

An image is a grid of pixels, and its dimensions are the width and height of that grid, for example 1600 by 900. File size depends heavily on how many pixels there are, so halving both dimensions leaves about a quarter of the pixels and usually a much smaller file.

You may also see DPI or PPI mentioned. That number only matters for printing, where it describes how densely pixels are placed on paper. For screens, the pixel dimensions are what count.

Keep the aspect ratio

The aspect ratio is the width divided by the height. A 1600 by 900 image has a 16:9 ratio. If you change only one dimension, or change both by different amounts, the picture is stretched or squashed. Locking the aspect ratio means that when you type a new width, the height updates to match.

Only break the ratio on purpose. If a destination demands a fixed shape that differs from your image, do not stretch it. Crop instead.

Resize or crop?

Resizing changes how many pixels the whole picture has. Cropping removes the edges and keeps a region of the original at the same pixel scale. They solve different problems: resize to make a picture smaller overall, crop to change its shape or remove unwanted parts.

A common sequence is to crop to the shape you need first, such as a square for a profile picture, and then resize the result to the final dimensions. Doing it in that order keeps the important part of the picture in frame.

Choosing a target size

Start from where the image will be shown. For a website, find the widest width the image is displayed at and aim for roughly that, with some extra if the site targets high-density screens. For email, images much wider than the message body just add weight, so a width around a thousand pixels or less is usually plenty. For social platforms, requirements change over time, so check the current recommended sizes in the platform help pages rather than relying on a number remembered from years ago.

Shrinking is safe. Enlarging is not: software cannot invent detail that was never captured, so an upscaled image looks soft and its file gets larger without looking better.

  • Web page content: about the display width of the layout column, plus headroom for sharp screens.
  • Email: roughly a thousand pixels wide or less.
  • Forms with limits: reduce dimensions first, then compress if the file is still too big.
  • Profile pictures: crop to a square, then resize.

Keep quality high while resizing

Always work from your original, not from an already-resized copy, and save the result under a new name. Downscaling in the browser is done by redrawing the image on a canvas, which is fast and keeps the result sharp for ordinary reductions. If you plan to compress as well, resize first and compress afterwards, since resizing removes the most data.

Resizing privately and in bulk

The TinyPixTools resizer and cropper work inside your browser, so your pictures stay on your device. You can set exact dimensions or a percentage, keep the aspect ratio locked, process many images together and download the results as a ZIP.

Try it yourself