Guides › Photos
How to optimize images for a website on Mac
Updated 23 November 2026 · by Vistaar Studio
Short answer: resize each photo to the width the page really shows: about 1200 to 1600 px for photos inside a post, 1920 to 2560 px for a full-width banner. Save photos as JPEG at quality 70 to 80. Keep PNG for logos and screenshots with flat colour or transparency. Aim for roughly under 200 KB per content image.
Those figures are rules of thumb, not standards. A photo straight from a camera is often 4 to 8 MB, and your Mac can shrink it for free.
What the platforms say
Only what each platform's own help page states. Checked 23 November 2026.
| Platform | What its own help page says about image size and formats | Source |
|---|---|---|
| WordPress | An upload taller or wider than 2560 px is scaled down to that, and the scaled copy becomes the largest size used. Smaller versions are offered to browsers automatically. Recommended file size: not stated | WordPress core blog, developer docs |
| Shopify | Product and collection images up to 5000 × 5000 px (25 megapixels) and under 20 MB. For square product images, 2048 × 2048 px "usually displays best". Other sizes are created automatically, in a format the shopper's browser supports | Shopify Help |
| Squarespace | Upload up to 20 MB; "for faster loading, we recommend 500 KB or smaller". A width of 2500 px works for most images; narrower than 1500 px may look blurry. Makes seven widths from 100 to 2500 px and displays images as WebP | Squarespace Help |
| Wix | Images up to 50 MB. Images are converted to AVIF on the live site. Recommended file size: not stated | Wix Help |
| Google Lighthouse (PageSpeed Insights) | Compares each image file with the size it is shown at, counting screen density. Tests JPEGs against compression level 85. Target file size: not stated | Properly size, Efficiently encode, Modern formats |
So your job is to upload one sensibly sized file. The platform makes the phone-sized versions.
Step 1: pick the width
- Photo inside a blog post or page: 1200 to 1600 px wide.
- Full-width banner or hero: 1920 to 2560 px wide.
- Shop product photo: follow the shop's figure, such as Shopify's 2048 × 2048 px. Our product image sizes by marketplace table has the rest.
Why bigger than the column? Retina Macs and phones pack two or more screen pixels into each layout pixel. So export about twice the displayed width (1600 px for an 800 px column), and stop somewhere between 1600 and 2560 px.
Step 2: pick the format
- JPEG for photos. Every platform accepts it.
- PNG for logos, icons, screenshots and anything with a transparent background. Don't use it for photos: in our test the same 1600 px image was 199 KB as a JPEG and 1.43 MB as a PNG. If you have photos stuck in PNG, see how to convert PNG to JPG on Mac.
- WebP and AVIF are smaller still, but you rarely need to make them yourself, and AVIF isn't on Squarespace's or Shopify's lists of accepted uploads.
Step 3: resize and compress on your Mac
Preview (one photo, or a handful)
- Duplicate the photos first (⌘ D in the Finder). Preview changes the file you have open.
- Open them in one Preview window. To do several, click a thumbnail in the sidebar and press ⌘ A.
- Choose Tools › Adjust Size, set the units to pixels, keep Scale proportionally ticked and type the width, such as 1600.
- Choose File › Export, set Format to JPEG and drag the Quality slider to about three quarters.
Finder: Convert Image (quick, keeps originals)
- Select the photos in the Finder, Control-click and choose Quick Actions › Convert Image.
- Set Format to JPEG (the choices are JPEG, PNG and HEIF).
- Set Image Size to Large or Medium (the choices are Small, Medium, Large and Actual Size) and click Convert. Copies appear next to the originals.
Terminal: one sips command for a whole folder
Open Terminal, type cd and a space, drag the folder in and press Return. Then run:
mkdir -p web && sips -Z 1600 -s format jpeg -s formatOptions 75 *.jpg --out web/
Resized copies go in a new web folder; your originals stay as they are. -Z 1600 sets the longest side, formatOptions 75 the JPEG quality. To set the width instead (better for tall photos), use --resampleWidth 1200 in place of -Z 1600.
We ran it on macOS 26.2 on 37 photo-style 1920 × 1080 test images, 10.4 MB of JPEGs in total. This is what one of them did at 1600 × 900:
| Setting | One test image (255 KB at 1920 px) | All 37 |
|---|---|---|
| 1600 px, quality 60 | 137 KB | 5.6 MB |
| 1600 px, quality 75 | 199 KB | 8.1 MB |
| 1600 px, quality 85 | 259 KB | 10.4 MB |
| 1200 px, quality 75 | 131 KB | not run |
| 1600 px, AVIF, quality 75 | 66 KB | not run |
This is one test image, and it was already small, so your results will vary. Note the quality 85 row: it came out slightly bigger than the file we started with. Re-saving at a high quality setting can add weight.
Three things to watch:
-Zalso enlarges. In our test,-Z 3000blew the 1600 px image up to 3000 px and 507 KB. Pick a number below your smallest photo.- The pattern is case-sensitive.
*.jpgdid not match a file namedA.JPG. Use*.JPGfor camera files. - sips can't write WebP here.
sips -s format webpfailed with "Can't write format: org.webmproject.webp".sips --formatslisted AVIF and HEIC as writable, and-s format avifworked.
For Shortcuts and more folder methods, see how to batch resize images on Mac. To hit one exact figure, see how to resize a photo to 50 KB on Mac.
Step 4: check the result
Select a file in the Finder and press ⌘ I to see its size and dimensions, or run sips -g pixelWidth -g pixelHeight web/photo.jpg. After you publish, test the page in Google's PageSpeed Insights.
Why not just upload the camera original?
Uploads are slow and storage fills up: WordPress's own developers wrote that a photo from an average modern smartphone "is easily over 5MB". Resize first and keep the originals in a separate folder.
We haven't tested what these tools do with the location and camera details stored inside a photo. If that matters to you, check a saved file before you publish it.
Doing a folder at a time: Pictailor
This is our own app, and the free methods above work. Pictailor, our batch photo resizer for Mac, does the same job with buttons:
- Batch resize a whole folder in one Save. Originals are never changed; copies go to a Pictailor folder beside them.
- Compress to an exact file size (for example under 500 KB, 100 KB or 20 KB), checked on the real saved file. It never enlarges a photo.
- Ready-made sizes for social posts and online shops, including the white square for Amazon and Shopify.
- Right-click photos in the Finder (Services) to resize without opening the app.
- Saves JPEG, PNG, HEIC, TIFF, PDF, ICO, ICNS and GIF. It does not write WebP or AVIF, so for a website use its JPEG or PNG output.
Pictailor is $5 direct from vistaar.studio, or $4.99 on the Mac App Store. It runs on Apple Silicon and Intel Macs with macOS 15 or later. Meet Pictailor →
FAQ
What size should images be for a website?
As a rule of thumb, about 1200 to 1600 px wide for photos inside a post or page, and 1920 to 2560 px for a full-width banner. Squarespace says 2500 px works for most images, and Shopify says 2048 x 2048 px usually displays best for square product photos. Your platform makes the smaller versions for phones.
How many KB should a website image be?
There is no official standard. A common rule of thumb is under 200 KB for a photo inside a page and under 500 KB for a large banner. Squarespace's help page recommends 500 KB or smaller for faster loading.
Is JPEG or PNG better for websites?
JPEG for photos, PNG for logos, screenshots and anything with flat colour, sharp text or a transparent background. A photo saved as PNG is far heavier: in our test the same 1600 px image was 199 KB as a JPEG at quality 75 and 1.43 MB as a PNG.
Can a Mac save WebP?
Not with the built-in sips tool on macOS 26.2. It can open WebP, but writing one fails with the error Can't write format: org.webmproject.webp. It can write AVIF and HEIC. You rarely need to make WebP yourself, because Shopify, Squarespace and Wix convert uploaded images for visitors.
Does resizing reduce quality?
Making a photo smaller throws away pixels, but you won't see it as long as the file is still at least as wide as the space it fills on the page. Quality drops when you enlarge a small image or save a JPEG at a very low quality setting.