Back to Blog
Image Tools

How to Resize Images for the Web: Dimensions, DPI and Format Guide

2026-02-25 5 min read

Oversized images are the #1 cause of slow websites. Learn the optimal image dimensions for websites, social media, and email, and how to resize without quality loss.

A 4000ร—3000 pixel photo from your camera is overkill for a website that displays it at 800ร—600. Serving oversized images is one of the easiest performance problems to fix โ€” and it has a measurable impact on page load time and SEO.

Optimal Image Dimensions for Common Uses

  • Full-width hero image: 1920ร—1080 px (or use srcset for responsive)
  • Blog post featured image: 1200ร—630 px
  • Instagram post: 1080ร—1080 px (square) or 1080ร—1350 px (portrait)
  • Twitter/X post image: 1600ร—900 px
  • LinkedIn post: 1200ร—628 px
  • Thumbnail (card/grid): 400ร—300 px
  • Product image (e-commerce): 800ร—800 px minimum

DPI for Web vs Print

For web use, DPI is irrelevant โ€” what matters is pixel dimensions. A 72 DPI setting vs 300 DPI makes no difference in how an image looks on a screen; it only affects printing. Web browsers ignore DPI metadata and just use pixel dimensions.

Maintaining Aspect Ratio

When resizing, always lock the aspect ratio to avoid distortion. If you need to fit an image in a specific box (e.g., 200ร—200 px), crop after resizing โ€” don't stretch. Distorted images look unprofessional and reduce perceived quality.

Resize Without Losing Quality

Scaling down preserves quality (you're removing pixels). Scaling up degrades quality (you're inventing pixels). Always start with the largest version of your image and resize down to your target dimensions.

Use our Image Resize tool to resize any image to exact dimensions in seconds, directly in your browser.

image-resize web performance dimensions

More Articles