Image guidelines to give clients before they upload
By Yash Garg · · 6 min read
The core upload targets: file size and dimensions
To keep a client website fast, tell clients to keep full-width hero banners under 500 KB and standard content images under 150 KB. According to one e-commerce platform's image size guidelines, websites should aim for image file sizes of about 500 KB when practical and keep most images below 2 MB. Setting boundaries stops clients from uploading camera-raw assets that destroy performance. For example, thumbnails should stay between 30 KB and 80 KB.
The driving factor behind these weight budgets is Core Web Vitals. Sites should strive to have Largest Contentful Paint (LCP) occur within 2.5 seconds or less for at least 75 percent of visits, as detailed in web.dev's guide to optimizing LCP. On most marketing websites and blogs, the hero banner is the single element evaluated as the LCP candidate.
When a client uploads a raw photo from a smartphone or stock library, mobile performance collapses. Serving desktop-sized images to mobile devices can use 2 to 4 times more data than needed, according to web.dev's documentation on responsive images.
Give clients clear pixel dimension bounds matching standard viewports:
- Full-width hero banners: 1920px to 2560px wide (16:9 or custom wide aspect ratio).
- Blog body images and inline cards: 1200px to 1600px wide.
- Square product shots and gallery items: 1024px to 2048px square.
Popular platforms try to intervene when clients ignore these dimensions, but automated handling has limits. For example, one popular CMS's core documentation on big images notes that the software automatically downscales images exceeding 2560px upon upload. While this prevents oversized files from breaking layouts directly, the original uncompressed file remains saved on the server disk, consuming hosting storage.
Choosing the right file formats
Clients need three practical rules for file formats:
- Photographs and complex scenes: JPEG or WebP.
- Logos, icons, and flat illustrations: SVG (or PNG with transparency if SVG is unsupported).
- Short looping animations: MP4 or WebM video instead of GIF.
Format choice determines visual clarity and baseline file weight. As documented in the MDN image file type guide, WebP offers much better compression than PNG or JPEG, supporting higher color depths, animated frames, and transparency.
Formats like AVIF compress files even further, but asking non-technical clients to export AVIF directly is impractical because consumer tools rarely offer AVIF export options. Standard WebP or quality-tuned JPEGs remain the practical baseline.
Warn clients against saving photographs as PNG files. Saving a detailed photo as a 24-bit PNG can create a file 5 to 10 times larger than the same image saved as WebP or JPEG. Instruct clients to reserve PNG exports for graphics requiring transparency when SVG is unavailable.
Alt text rules for accessibility and SEO
Every image requires an alt attribute in the HTML markup, but not every image requires written descriptive text. According to guidance in the Universal Design alt text guide, unless an image is purely decorative, you should use alt text that accurately describes the content of the image.
Teach clients to categorize images into three operational buckets:
- Informative images: Product diagrams or speaker headshots need a concise, one-sentence description of the visual facts.
- Decorative images: Backgrounds and abstract shapes serving no editorial purpose must have an empty alt text input (`alt=""`) so screen readers bypass them.
- Functional images: Icons or images inside buttons or links require alt text describing the action or destination (such as "Go to shopping cart"), not the graphic itself.
Clients should avoid filler phrases like "Photo of" or "Graphic of" because screen readers announce images automatically. Also caution clients against keyword stuffing, which harms accessibility and risks search penalties under major search guidelines.
A copyable image handoff cheat sheet
Copy this reference table into your onboarding documents or client portal so clients have exact specifications during content entry.
| Image Placement | Target Dimensions | Maximum File Size | Recommended Format | Purpose |
|---|---|---|---|---|
| Hero Banner (Full-Width) | 1920px to 2560px wide | 500 KB | WebP or JPEG | Page header, full-bleed backdrops |
| Content / Blog Body | 1200px to 1600px wide | 150 KB | WebP or JPEG | Article body, section cards |
| Product / Gallery (Square) | 1024px to 2048px square | 200 KB | WebP or JPEG | E-commerce items, modal zooms |
| Logos / UI Icons | Scalable vector | 30 KB | SVG (fallback PNG) | Branding headers, navigation items |
| Animated Graphic | Responsive dimensions | 1.5 MB | MP4 / WebM | Product loops, feature previews |
Pair this table with naming rules. Clients should name files using descriptive, all-lowercase words separated by hyphens (for example, oak-dining-table.jpg). Tell them never to upload raw camera exports like IMG_0942.jpg. Clean filenames help search crawlers categorize media assets accurately.
For optimization, recommend free browser tools like Squoosh or TinyPNG. For batch processing, suggest desktop utilities like ImageOptim on macOS or Caesium on Windows.
Providing this reference sheet during client handoff for agencies reduces maintenance requests. You can also pair these asset boundaries with our guide on how to stop clients breaking site layout to ensure layouts hold their shape across all screen widths.
CMS safeguards and developer fallbacks
Never depend solely on client discipline; teams rushing to meet deadlines will eventually upload raw photos. Your codebase must implement technical safeguards.
While those image size guidelines allow uploads up to 5,000 by 5,000 pixels and 20 MB, serving assets at that scale damages mobile performance. Your frontend templates should generate responsive HTML using native srcset and sizes attributes so mobile devices request smaller variants.
How you manage media depends on your architecture:
- Git-based content engines: Decap CMS stores content in your Git repository alongside code for easier versioning, as described in the Decap CMS overview. Similarly, the TinaCMS documentation notes that when users save changes in the CMS, it creates a commit back to the Git repository based on a defined content schema.
- AI-generated sites and Git sync: If you hand off a project built with Bolt, Bolt's Git integration documentation notes that it creates a commit every time you make an unbroken edit, checking GitHub every 30 seconds for external updates.
- Visual repository editing: For coded React, Next.js, or Vite sites, visual editors like TurnIntoCMS allow clients to click images on a live preview to update image sources and alt text directly. When a client uploads a picture, the editor commits the file straight into your GitHub repository on your chosen branch. TurnIntoCMS is free for one project, requires content to live in code or local imported data files rather than external databases, and does not provide an automated asset transcoding pipeline.
Common image upload mistakes and quick fixes
Mistake 1: Uploading raw camera files directly from smartphones
Clients often export high-resolution photos straight from phones, creating assets over 6000px wide.
- The fix: Configure pre-upload compression in your build pipeline, or provide a desktop tool like ImageOptim so clients downsize dimensions before uploading.
Mistake 2: Flattening marketing text directly into banner images
Clients frequently design banners with headlines and buttons baked into a JPEG background, which scales down into unreadable pixels on mobile screens.
- The fix: Build banner components with code fields for headline text and buttons over a clean background graphic, preserving responsive scaling, accessibility, and search indexing.
Mistake 3: Lazy-loading hero banners
Adding loading="lazy" across every image tag hurts site speed by delaying LCP candidate discovery.
- The fix: Keep native lazy loading on images below the fold, but set fetchpriority="high" and remove loading="lazy" from the primary hero asset.
FAQ
What is the ideal file size for images on a website?
Aim for under 500 KB on full-screen hero banners, and between 50 KB and 150 KB for standard in-body blog images, cards, and product shots. Small icons and thumbnails should stay below 30 KB to 50 KB.
Should I ask clients for WebP, AVIF, or JPEG files?
Ask clients for WebP or standard high-quality JPEGs. JPEGs are familiar to non-technical users, while AVIF encoding can confuse clients due to limited export support in consumer design software.
What dimensions should hero banner images be?
Export hero banners at 1920px to 2560px wide with an aspect ratio matching your layout (often 16:9). Images wider than 2560px waste visitor bandwidth without adding perceptible detail on standard screens.
Does every uploaded image need alt text?
Every image element must include an alt attribute, but decorative images should use an empty attribute so screen readers ignore them. Informative images require a short factual description, while linked icons must state their target destination or action.
Sources
- Website Image Size Guidelines for 2027 (shopify.com, checked November 21, 2026)
- Serve responsive images (web.dev, checked November 21, 2026)
- Optimize Largest Contentful Paint (web.dev, checked November 21, 2026)
- Image file type and format guide (developer.mozilla.org, checked November 21, 2026)
- Provide Alt text for each image (universaldesign.ie, checked November 21, 2026)
- Introducing handling of big images in a popular CMS (make.wordpress.org, checked November 21, 2026)
- GitHub for version control (support.bolt.new, checked November 21, 2026)
- Decap CMS overview (decapcms.org, checked November 21, 2026)
- Get Started and learn about TinaCMS (tina.io, checked November 21, 2026)