Ideal Image Size for Websites: Pixels and KB for Every Image Type

The ideal image sizes for websites in pixels and KB: hero banners, blog images, product photos, thumbnails and logos, plus 2x images and a 6-step prep process.

Ideal image size for websites guide cover with an image icon

Table of Contents

For most websites, a full-width hero image should be about 1920 pixels wide and under roughly 300 KB, blog and content images about 1200 pixels wide and under about 150 KB, product images around 1000 to 1500 pixels square at 100 to 200 KB, and thumbnails or logos much smaller. These are practical targets, not strict rules: the goal is to upload images at the size they are shown (with a 2x version for sharp screens where it matters) and compress them so pages load fast on mobile data.

Key takeaways
  • Upload at display size, not camera size.
  • Keep most images under 200 KB, heroes under about 300 KB.
  • Use WebP where you can and add width and height attributes.
  • A whole page with images ideally stays around a few megabytes or less.
  • Resize and shrink with the free cropper and Image Compressor.

A 40 MB homepage

Imagine a new restaurant website in Banani. The owner uploads twenty photos straight from a professional camera: dishes, interior, chefs, each about 2 MB. The homepage alone weighs about 40 MB. On a phone with average mobile data, a visitor would wait a long time and burn through a noticeable part of their data pack just to see the menu.

The same twenty photos, resized and compressed sensibly, would total around 3 MB and look identical on a phone screen. That is what these targets are for.

Image typeWidth in pixelsTarget file sizeNotes
Full-width hero banner1920 (plus a smaller mobile version)Under about 300 KBYour LCP image on most pages
Blog featured image1200 to 1600100 to 200 KB1200 x 630 also works for social sharing
In-article image800 to 120050 to 150 KBMatch your content column width
Product image1000 to 1500 square100 to 200 KBLarger if you offer zoom
Thumbnail or card300 to 60020 to 60 KBGrids, related posts
LogoDisplay size x2Under 30 KBSVG is ideal for simple logos
Team or profile photo400 to 800 square40 to 100 KBCrop tight around the face

Why 2x images exist (and when to skip them)

Many phones and laptops have high-density “retina” screens that show more pixels per inch. An image displayed at 600 pixels wide may look slightly soft unless the file is about 1200 pixels wide. WordPress handles this automatically with responsive image sizes (srcset), serving larger files only to screens that benefit. For decorative images, the 1x size is usually fine.

How to prepare images, step by step

  1. Find the display widthRight-click the image area, inspect it, or ask your designer. Note the widest it ever appears.
  2. Crop to the right ratioBanners 16:9 or wider, products often 1:1. Use the image cropper.
  3. ResizeTo the width in the table above.
  4. ConvertUse WebP for websites where supported with the image converter.
  5. CompressQuality 70 to 80 with the Image Compressor.
  6. Name and describeDescriptive file name and alt text. See our alt text guide.
Run your page through PageSpeed Insights after uploading. If it still flags “Properly size images” or “Serve images in next-gen formats”, it will tell you exactly which files to fix.

Common mistakes

  • Uploading 5,000 pixel camera photos and letting the theme shrink them in the browser.
  • Using PNG for photos (files can be many times larger than JPG or WebP).
  • Saving banners with text as heavily compressed JPGs so the text looks fuzzy.
  • Forgetting width and height attributes, which causes layout shifts while loading.

Go faster

Hero images matter most for speed. Read how images affect LCP and our WordPress image optimisation guide.

Sources

Frequently asked questions

What is the best image size for a website banner?

About 1920 pixels wide for a full-width hero, with a smaller version for mobile, compressed to under roughly 300 KB.

How many KB should a website image be?

Most content images can be 50 to 200 KB. Hero images ideally stay under about 300 KB and thumbnails under 60 KB.

What size should blog featured images be?

1200 to 1600 pixels wide. A 1200 x 630 image also works well when the post is shared on social media.

Do I need retina 2x images?

For important images, a file about twice the display width looks sharper on high-density screens. WordPress serves the right size automatically with srcset.

Should I use PNG or JPG for website photos?

Use JPG or WebP for photos. PNG photos are usually much larger. Keep PNG for logos, icons and graphics with transparency.

Free toolTry the Free Image Compressor

Shrink photos for websites, email and forms in seconds, privately in your browser.

Open the free tool →
Written by Tanvir H

WordPress and Elementor web designer at Tanvir WebXprt, Bangladesh, with 7+ years of experience and 650+ projects. Tanvir builds the free tools on this site and writes practical guides for creators, learners and small businesses.

Learn more

Guides for this tool

Built by Tanvir WebXprt

Want a tool, website or app like this for your business?

Every free tool on this site is designed and coded by Tanvir H, a Bangladesh-based WordPress and Elementor web designer with 7+ years of experience and 650+ projects for clients worldwide. Fast, mobile-first, search-optimised websites that turn visitors into customers.

Website developmentWordPress, Elementor & e-commerce sitesfrom $899
Creative designWeb, graphic & brand identityfrom $220
SEO & paid adsRank on Google, run Meta & Google Adsfrom $300
Speed & fixesCore Web Vitals, bugs and upgradesCustom quote
  • 650+ projects
  • 7+ years
  • 4.9★ rating
  • Govt. registered freelancer

Contents

Was this helpful? Spread the word and share with your network!
Facebook
Pinterest
LinkedIn
Reddit
VK
X
Telegram
Threads
Tumblr
Email
WhatsApp
Pocket

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Article

How to crop a photo without losing quality guide cover with a zoom icon
How to Crop a Photo Without Losing Quality

Crop photos without losing quality: why cropping reduces resolution, how many pixels you need for each use, a 6-step method and why repeated saving hurts.