Spacergif.org is a free tool for web designers to generate spacer images. Copy the code below to get a 1×1 pixel transparent .gif image.
<img src="https://img.spacergif.org/v1/spacer.gif" aria-hidden="true" alt="">
Spacergif.org Image API
Generate custom colors, sizes, opacity, and different file types of spacer images with the Spacergif.org image API. Using the API is as easy as writing an
<img> tag. Check out the API Documentation to learn how.
Over the past 365 days, Spacergif.org has served spacer images. To put that into context, that's about images every second, every day, all year long.
In the time it's taken you to read this, we've served up spacer images!
What's a spacer.gif?
In the days of HTML-table based web design, a transparent 1×1 pixel gif was often used to hold open empty HTML table cells in a page layout. The image could be resized to any dimensions and invisibly prevent a table cell from collapsing and ruining a layout.
Today, modern CSS relies less and less on these kinds of "design hacks", and allow for more layout possibilities than ever before. For various reasons, some email clients are stuck in the past and most email designs need to be coded with these ancient HTML-table layout techniques to accommodate them.