Sub topic 13
Digital ad sizes, formats and file-weight limits
This chapter assumes you can export images from a design tool, know the difference between vector and raster graphics, and have read a placement specification sheet. Digital ads fail review more often for broken specs than for weak design. You will learn which specs to check and how to meet them.
Pixels, not inches
Print files are sized in physical units. Digital ads are sized in pixels. A "300x250" banner is 300 CSS pixels wide and 250 tall. Ad networks publish a list of accepted sizes, and each placement accepts only the sizes on that list.
Common display sizes include:
| Name | Size (px) | Typical use |
|---|---|---|
| Medium rectangle | 300x250 | Inside article content |
| Leaderboard | 728x90 | Top of a page |
| Large mobile banner | 320x100 | Mobile pages |
| Half page | 300x600 | Sidebar |
| Square social | 1080x1080 | Feed posts |
| Vertical social | 1080x1920 | Stories and reels |
Always confirm the current list on the platform's own sheet, because networks change them.
Formats and file weight
Each placement allows certain formats and a maximum file weight, which is the size of the file in kilobytes.
- JPG suits photographs. It is small but lossy, so repeated saves lower quality.
- PNG suits flat colour, sharp text and logos. It can be heavy with photographic content.
- GIF gives simple animation but only 256 colours.
- HTML5 gives lightweight animation and is often packaged as a ZIP.
Typical limits are 150 KB for a standard Google Ads image, and often 150 KB for an HTML5 ZIP in many networks. Treat these as examples. The sheet for your placement is the authority.
Aim well under the limit. Heavy ads load slowly, and some networks reject or throttle them.
High-density screens
Phones and many laptops pack more physical pixels into each CSS pixel. A 300x250 image shown on a 2x screen looks soft. The fix is to supply a 2x file, here 600x500, and let the browser pick the right one. This HTML5 banner declares its size and offers both versions:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="ad.size" content="width=300,height=250">
<title>Spring Sale 300x250</title>
</head>
<body style="margin:0">
<a href="https://example.com" style="display:block;width:300px;height:250px">
<img src="banner.png" srcset="banner.png 1x, [email protected] 2x" width="300" height="250" alt="Spring Sale: 20% off">
</a>
</body>
</html>The ad.size meta tag tells Google Ads HTML5 uploads the banner's dimensions. The width and height attributes keep the layout at 300x250 whichever file loads. The alt text describes the ad for screen readers.
A practical workflow
- Create an artboard at the exact pixel size.
- Keep key text and the call to action away from the edges. Some placements overlay icons or crop slightly.
- Export at 1x and 2x in the allowed format.
- Check the weight. If it is too heavy, lower JPG quality, reduce photographic detail, or use fewer colours in a PNG or GIF.
- Preview in the platform's own tool.
Common errors
- Uploading the wrong size by a few pixels. The network rejects it.
- Using PNG for a photo, which produces an oversized file.
- Forgetting a visible border on white-background ads, so the ad blends into the page.
- Exporting small text that becomes unreadable at 1x.
- Looping GIFs beyond the allowed length or frame rate.
Exercise
A 320x100 mobile banner must stay under 150 KB. Your 1x JPG is 60 KB. What 2x size should you also export, and why should you check its weight?
Show answer
Export 640x200 pixels. It has four times the pixels, so the file will probably be much heavier than 60 KB and may exceed the 150 KB limit. Check it, then lower the quality or simplify the image if needed.
Exercise
A product photo with soft gradients is exported as PNG and is 400 KB. Which format would you try, and why?
Show answer
Try JPG. It compresses photographic content far better than PNG, so the file is likely to come in under the limit.