Image dimensions are one of those things nobody thinks about until a hero image loads like it's 2005, or a link preview shows someone's chin instead of their face. This guide collects the sizes that matter, explains the one rule behind all of them, and shows how to resize a batch of images without losing quality.
The rule behind every number: display size × pixel density
An image should be about as wide as the space it's displayed in, multiplied by the screen's pixel density. Most phones and many laptops are "2×" or "3×" displays: a box that's 600 CSS pixels wide is drawn with 1,200 or 1,800 physical pixels. Give it a 600-pixel image and it looks soft; give it a 4,000-pixel image and the browser downloads seven times more data than it can use, then throws most of it away.
In practice, 2× the display width is the sweet spot. Going to 3× rarely makes a visible difference for photos and adds a lot of weight.
Websites
| Use | Recommended width | Notes |
|---|---|---|
| Full-width hero / banner | 1920–2560 px | Serve smaller versions to phones with srcset |
| Content image in an article | 1200–1600 px | Most article columns are 650–800 CSS px wide |
| Card or grid thumbnail | 600–800 px | Crop to a consistent aspect ratio |
| Product photo with zoom | 2000 px on the long side | Marketplaces often require at least 1000 px for zoom |
| Avatar | 256–400 px square | Usually displayed at 32–128 px |
| Logo (raster) | 2× its display size | Prefer SVG when you have it |
Link previews (Open Graph)
When someone shares your page on Slack, LinkedIn, Facebook, WhatsApp or iMessage, the preview image comes from the og:image tag. The safe size everywhere is 1200 × 630 px (a 1.91:1 ratio). Keep important content away from the edges, because some apps crop it to a square or a 2:1 strip. Images smaller than about 600 px wide may be shown as a small thumbnail instead of a large card.
Social media
Platforms change their layouts regularly, so treat these as starting points and check the platform's help pages for anything critical. They've been stable for a while:
| Platform | Format | Size |
|---|---|---|
| Square post | 1080 × 1080 | |
| Portrait post | 1080 × 1350 (4:5); the profile grid now previews at 3:4 | |
| Instagram / Facebook / TikTok | Story or reel | 1080 × 1920 (9:16) |
| Facebook / LinkedIn | Link or shared image | 1200 × 630 / 1200 × 627 |
| X (Twitter) | Single image in feed | 1600 × 900 (16:9) |
| YouTube | Thumbnail | 1280 × 720 |
| Standard pin | 1000 × 1500 (2:3) | |
| Profile banner | 1584 × 396 |
Uploading larger than these sizes usually doesn't help. The platform recompresses everything, often aggressively, and starting from the exact size gives its encoder less to destroy.
Most email templates are 600–640 px wide, a convention that comes from preview panes and still holds because it reads well on phones. Export images at 1200 px wide (2× for sharp screens) and set width="600" in the HTML. Keep each image well under 1 MB; many people read email on mobile data, and some clients clip very heavy messages.
Resizing without losing quality
- Always start from the original. Resizing an already-small, already-compressed copy compounds the losses.
- Only scale down. Enlarging can't add detail; the result is blurry however good the algorithm. If you need it bigger, find a bigger source.
- Keep the aspect ratio, and crop if you need a different shape. Stretching is always visible on faces and text.
- Compress after resizing, not before. JPEG or WebP at quality 75–85 suits photos.
Resizing a whole folder is where most time goes. Our Image Resizer takes a batch at once: set a maximum width and height, and each image, portrait or landscape, is scaled to fit without distortion, with an option to leave smaller images alone. Everything downloads as a single ZIP, and nothing is uploaded, which is handy for client work and personal photos. Then run the results through the Image Compressor if you need them smaller still.
Responsive images in one snippet
If you write HTML yourself, this pattern serves the right size to each device:
<img
src="photo-1200.webp"
srcset="photo-640.webp 640w, photo-1200.webp 1200w, photo-1920.webp 1920w"
sizes="(max-width: 800px) 100vw, 800px"
width="1200" height="800"
alt="Describe the photo"
loading="lazy">The width and heightattributes let the browser reserve space before the image loads, which prevents layout shift, one of Google's Core Web Vitals. Use loading="lazy" on images below the fold, but not on the main hero image, which should load as early as possible.