Wondering why some PNGs appear pixelated first and sharpen later? Here is png interlacing explained: PNG’s optional Adam7 scheme splits an image into seven passes, so a rough preview of the whole picture shows up early.
This page is one part of the wider guide to the png file format.
| Item | Value |
|---|---|
| Interlacing scheme used in PNG | Adam7 (optional) |
| Number of subimages | seven passes |
| Repeating tile pattern | 8 × 8 pattern |
| Passes in GIF interlacing | four passes, vertical only |
| Share of pixels after the first pass | 1/64 = 1.5625% |
| Date the method was suggested | February 2, 1995 |
These figures come from the Wikipedia page on the Adam7 algorithm. They can change, so check the source before you rely on them.
What interlacing does in a PNG
Interlacing changes the order in which a picture’s pixels are stored, not what the picture looks like once everything has loaded. In PNG it is optional. Wikipedia’s Adam7 page describes Adam7 as best known as the interlacing scheme optionally used in PNG images.
The idea is simple. An interlaced image is split into seven subimages, and those subimages are stored in the file in numerical order. A viewer that reads the data as it arrives can draw a rough version of the whole picture early, then refine it as later subimages come in.
If you want to see how a PNG is organised internally, the png file structure page is a good companion to this one.
How the Adam7 pattern works
Adam7 defines an 8 × 8 pattern and replicates it across the full image. Each cell in the pattern carries a number, and that number says which subimage the pixel belongs to. Because the pattern repeats, every pixel in the picture lands in exactly one of the seven subimages. The details are on the Adam7 algorithm page.
Reading the pattern gives you a few useful facts:
- The first pass takes a single pixel from each tile, so it is a very coarse overview.
- The middle passes fill in the gaps in both directions, which sharpens the picture step by step.
- The last pass supplies all the odd-numbered rows of the tile, so it finishes the image.
Adam7 works in both dimensions at once, horizontally and vertically. That is the main reason the early passes already hint at the whole image rather than only its top edge.

The seven passes and how much of the image each covers
The pixels in each pass add up to a growing share of the image. The table below shows the running total of pixels encoded after each pass.
| Pass | Total pixels encoded at that point |
|---|---|
| Pass 1 | 1/64 = 1.5625% |
| Pass 2 | 1/32 = 3.125% |
| Pass 3 | 1/16 = 6.25% |
| Pass 4 | 1/8 = 12.5% |
| Pass 5 | 1/4 = 25% |
| Pass 6 | 1/2 = 50% |
| Pass 7 | 1/1 = 100% |
The running totals are taken from the Wikipedia Adam7 algorithm page; check it before you quote them elsewhere.
Notice how the total roughly doubles with each pass. The early passes are tiny, so the first rough picture arrives fast, and the last two passes carry most of the remaining detail.
Viewers rarely show the raw sparse pixels. The same page says that when rendering, the image will generally be interpolated at earlier stages, rather than just these pixels being rendered. It adds that an approximation of the entire image can be perceived much more quickly in the early passes, particularly with interpolation such as bicubic interpolation (source).
Adam7 compared with GIF interlacing
GIF also has an interlacing mode, but it is simpler. Wikipedia’s comparison notes that Adam7 uses seven passes and operates in both dimensions, against only four passes in the vertical dimension for GIF.
- Adam7 (PNG): seven passes, rearranging pixels horizontally and vertically.
- GIF: four passes, rearranging rows only.
Because GIF’s scheme only reorders rows, an early GIF pass shows thin horizontal slices spread over the picture. Adam7’s early passes sample the picture in both directions, so the first preview looks like a blocky copy of the whole image.
For a related PNG topic, you can read what is apng next.
Where Adam7 came from
The scheme carries the name of its proposer, Adam M. Costello, who put it forward on February 2, 1995, and of the seven steps involved. Costello rearranged an earlier five-pass scheme that Lee Daniel Crocker had proposed. You can find the history in the Adam7 algorithm article.
Other ideas were on the table at the time. The same article says alternative speculative proposals included square spiral interlacing and Peano curves, but these were rejected as being overcomplicated.
For the image sizes and connection speeds in question when PNG was developed, a seven-pass scheme was seen as sufficient, and preferable to a simple five-pass one (source).
Trade-offs of the early passes
Adam7 favours a simple implementation over perfect early quality. The Wikipedia article says it offers worse frequency behavior, showing pixelation artifacts at the early stages, in return for simpler implementation (source).
The article also likens Adam7 to a multiscale model, similar to a discrete wavelet transform with Haar wavelets. Unlike that transform, it starts from an 8 × 8 block and downsamples the image rather than filtering first. The practical result is a preview that looks blocky until later passes arrive.
The source pack used for this page does not measure file size or decoding time, so it makes no claim about either. If those matter for your images, test an interlaced and a non-interlaced copy of your own file and compare.
Frequently asked questions
Does every PNG use interlacing?
Show answer
No. Interlacing is an option, and many files simply store pixels in the ordinary row-by-row way. The Adam7 page describes it as the scheme optionally used in PNG images, so it is up to whoever saves the file (source).
Why is it called Adam7?
Show answer
The name joins the first name of its proposer, Adam M. Costello, with the count of steps in the scheme, seven (source).
How many passes does PNG interlacing have?
Show answer
Seven. Each pass adds another subimage until the final one fills in everything that is still missing, and the subimages are stored in order (source).
Is Adam7 the same as GIF interlacing?
Show answer
No. GIF’s method only moves in the vertical direction, whereas Adam7 spreads its pixels across the picture both ways, which is why its first approximation of the whole image arrives sooner (source).



