Image Tools • 5 min read

Image Sizes for Websites and Social Media: Resize, Crop and Compress

Practical pixel sizes for website banners, share previews, YouTube thumbnails and social posts, plus the right order to crop, resize and compress images.

Published: 2026-11-11 • Last Updated: 2026-11-11 • By Mohammed Zawwar Hussain

Interactive Online Tools Referenced in this Guide

Shape first, then size, then weight

  1. Crop to the right aspect ratio with the Image Cropper, so nothing gets stretched.
  2. Resize to the exact pixel size with the Image Resizer (keep the aspect-ratio lock on).
  3. Compress with the Image Compressor, or convert to WebP for websites.

Doing it in this order gives the smallest, sharpest result.

Common sizes

UseSize (px)Ratio
Link share preview (Open Graph)1200 × 6301.91:1
YouTube thumbnail1280 × 72016:9
Square social post / profile1080 × 10801:1
Portrait social post1080 × 13504:5
Story / vertical video cover1080 × 19209:16
Full-width website hero1920 wide (also serve ~1280 and ~768 versions)Varies

Platforms adjust their recommendations from time to time; check the platform's current help page for anything business-critical.

File size targets for websites

As a rough guide, aim for under 200 KB for a hero image and under 100 KB for content images. WebP at 75–80% quality usually achieves this for photos at the sizes above. Always set width and height on the <img> tag so the page does not jump while images load.

Keep the original

Resizing down and compressing both throw information away. Keep the full-size original so you can produce a new size later without quality loss.

Sizes that are safe to use today

Platforms change their layouts often, so check their current help pages for unusual formats. These sizes have been stable for years and work well:

UseSize (px)Ratio
Link preview (Open Graph: WhatsApp, LinkedIn, Facebook, X)1200 × 6301.91 : 1
Instagram square post1080 × 10801 : 1
Instagram portrait post1080 × 13504 : 5
Stories, Reels, TikTok, Shorts1080 × 19209 : 16
YouTube thumbnail1280 × 72016 : 9
Website full-width banner1920 × 600–800wide
Blog content image1200–1600 wideany
Favicon16, 32, 48 in one .ico1 : 1

For favicons, the Favicon Generator builds the multi-size .ico from one square logo.

Crop first, then resize

Resizing a 4 : 3 phone photo straight to 1080 × 1920 either stretches it or leaves bars. Decide the ratio first, crop to it with the Image Cropper, then resize. Keep the important part of the picture, such as faces and text, away from the edges: platforms overlay buttons, captions and profile pictures at the top and bottom of vertical formats, so leave roughly the top and bottom 250 px of a 1920 px story clear.

File size targets for fast pages

Pixel size and file size are different things. A 1600 px photo can be 150 KB or 3 MB depending on format and compression. For web pages, aim for:

  • Under about 200 KB for large hero images, and under 100 KB for content images.
  • WebP (or AVIF) instead of JPEG where your platform supports it; they are usually 25–50% smaller at the same visual quality.
  • PNG only for screenshots, logos and graphics with sharp edges or transparency.

The Image Compressor and Image Converter do both jobs; check the result on a phone screen, where most visitors will see it.

Responsive images in HTML

Phones do not need desktop-size images. With srcset, the browser downloads only the size it needs:

<img src="team-800.webp"
  srcset="team-400.webp 400w, team-800.webp 800w, team-1600.webp 1600w"
  sizes="(max-width: 600px) 100vw, 800px"
  width="800" height="533" alt="Our support team in the Riyadh office"
  loading="lazy">

Always set width and height (or a CSS aspect ratio) so the page does not jump while images load. That jumping is measured by Google as Cumulative Layout Shift and affects search rankings. Do not lazy-load the main image at the top of the page; it should load immediately.

Alt text, names and copyright

  • Write alt text that describes what the image shows for someone who cannot see it, in the page's language. Skip "image of".
  • Use descriptive file names such as riyadh-office-team.webp rather than IMG_4821.jpg; they help image search a little and help you a lot.
  • Only use images you took, licensed, or that are clearly free to use, and keep a record of the licence.

JPG, PNG, WebP or AVIF?

FormatStrengthsUse it for
JPGSmall photos, opens everywherePhotos for email, forms and older platforms
PNGLossless, transparency, sharp edgesLogos, icons, screenshots, diagrams
WebPSmaller than JPG and PNG, supports transparencyMost website images
AVIFSmallest files, best quality per byteWebsites where you can serve a fallback
SVGVector, perfectly sharp at any sizeLogos and icons that are drawings, not photos

Social networks re-encode everything you upload, so for social posts the choice matters less than starting from a sharp, correctly sized image.

Frequently Asked Questions

Why does my share preview look cropped? ↓
The image does not match the 1.91:1 ratio. Crop to 1200 × 630 and keep important text away from the edges.
Should I upload larger images for retina screens? ↓
For websites, serve a 2× version via srcset for small images like logos; for large photos, 1920 px wide is usually enough.
Are my images uploaded when resizing? ↓
No. The Image Resizer runs in your browser.
Why does my shared link show no image? ↓
The page probably has no og:image tag, or the image is too small or blocked. Add a 1200 × 630 og:image with the Meta Tag Generator and test with the Open Graph debugger.
Should I upload photos at the highest resolution? ↓
Platforms re-compress uploads anyway. Upload at the recommended size; anything larger only takes longer and may be compressed more aggressively.
Do I need double-size images for high-resolution screens? ↓
For sharp results on phones and Retina displays, provide images at about twice their displayed size and let srcset pick the right file, so phones on mobile data do not download desktop-size images.
What size should my logo be? ↓
Use SVG if you have it. Otherwise a PNG about twice the size it appears on the page, with a transparent background.