Home  /  Guides  /  Seven block sizes on one folder

What a Bulk Pixelate Effect Does to 63 Million Pixels

Updated 2026-11-27 · measured on 12 mixed files, 20,934,926 bytes, 63,016,384 pixels, seven block sizes from 2 to 100 px

The short answer

Set the block size to the feature you want gone, not to a feeling. On this batch 8 px rewrote 58.153% of all pixels but only 13.296% moved by more than 32 levels, and 41.847% came back byte-identical. The number that matters is not how many pixels changed, it is how many blocks were wide enough to flatten something.

Two consequences follow. A block size you copy off a screenshot will not repeat, because the grid can start anywhere: shifting the 8 px grid by half a block on a 4000 x 3000 landscape rewrote 7,171,856 pixels, 59.766% of the frame. And small blocks cost bytes, not save them: 2 px output was 21,083,992 bytes of PNG from 20,934,926 bytes of input, 1.0071 times the source.

This page treats the pixelate effect as a batch job: one block size, a folder of mixed files, a per-file account of what came out. The neighbouring measurements on the same twelve files are the threshold measurement (a level, not a block, and its count never moves), the blur measurement (a radius that softens instead of flattening), the sharpen measurement, the equalize measurement and the grayscale measurement. If you want the single-image case, start at the photo flipper.

Pixelation and threshold are the pair worth comparing, because both replace the fine detail with something coarse and both are one-number controls. Threshold throws the middle away and keeps two values; pixelation keeps every value and throws away the position. That difference is why a threshold changes the same 68.229% of this batch at every level, while pixelation changes 45.092% at 2 px and 71.341% at 100 px.

1. What was run and on what

Twelve files, 20,934,926 bytes on disk and 63,016,384 pixels across the 11 that decoded. Each readable file was converted to RGB, cut into squares anchored at the top-left corner, each square replaced by the mean of its own pixels rounded to the nearest integer, and the block re-expanded to the original dimensions. No resampling filter, no colour conversion, no dithering. Nothing left the machine: Pillow 13.0.0, numpy 2.5.4 and Python 3.13.14 on Windows.

What the twelve files were: two byte-identical 3000 x 4000 portrait JPEGs, one 4000 x 3000 landscape JPEG, one 3000 x 4000 grayscale JPEG, one 2000 x 1500 JPEG with orientation tag 6, one 3000 x 3000 PNG, one 1200 x 800 transparent PNG, one 128 x 128 PNG icon, one 1600 x 900 WebP, one 400 x 300 six-frame GIF, one 800 x 600 16-bit grayscale PNG, and one truncated 1,200-byte JPEG that failed to decode. The seven block sizes were 2, 4, 8, 16, 32, 64 and 100 pixels, which is the full slider range found on the tool whose page supplied this word.

2. The block size is a width, and the cell count is a square of it

Every row below covers the same 63,016,384 pixels. What changes is how many squares they are cut into, and how many pixels each one holds. Going from 2 px to 4 px cuts the cell count by a factor of 3.9, because both the columns and the rows halve; from 64 px to 100 px it falls by 2.5, because the ratio is only 1.56.

Block sizePixels per cellCells producedPixels changedShare changed
2 px415,754,09628,415,60045.092%
4 px163,938,52433,688,99853.461%
8 px64984,88136,645,73558.153%
16 px255.1246,98338,920,39361.762%
32 px1,019.461,81840,603,36664.433%
64 px4,036.415,61242,487,01567.422%
100 px9,996.36,30444,956,29271.341%

Cells produced is the sum over the eleven readable files of the columns times the rows after padding each file up to a whole number of blocks. At 16 px and above the average is not exactly the square of the block size because the small files are padded to a whole block and carry the slack.

Cells produced, one bar per block size 2 px 15,754,096 4 px 3,938,524 8 px 984,881 16 px 246,983 32 px 61,818 64 px 15,612 100 px 6,304 Bar width linear to 15,754,096 cells. Same 63,016,384 pixels throughout.
Each bar is the number of colour squares written for the whole batch. The last four bars are a pixel wide because the count really is that small, which is why the slider feels inert past 32 px.
Your call: whether 8 px or 16 px is the right look is a design decision and the table cannot make it. What the table settles is that your folder will not react evenly — a 3000 px photo at 16 px still has 187 columns, while a 400 px animation has 25, so the same number is subtle on one and brutal on the other.

3. Changed is not the same as visibly changed

A pixel counts as changed if a single channel moved by one level. That is not what your eye sees. Sorting the differences into two bands gives two very different pictures: at 8 px, 58.153% of pixels changed by at least one level, but 13.296% moved by 32 levels or more, and only 0.253% by 128 or more. The pixels that did not move at all are 41.847% of the batch, because most of them already sat in a flat area where the mean equals the original.

Block sizeUnchangedMoved 1 level or moreMoved 32 or moreMoved 128 or more
4 px46.539%53.461%8.665%0.063%
8 px41.847%58.153%13.296%0.253%
16 px38.238%61.762%16.973%0.631%
32 px35.567%64.433%21.426%1.079%

Percentages of 63,016,384 pixels. A pixel is counted in the 32 band if the largest absolute difference across its three channels is at least 32 levels, so the bands are cumulative, not exclusive.

The practical reading: at 8 px the batch looks pixelated and 58% of its pixels are technically different, but 87% of those differences are smaller than 32 levels, which is the kind of shift a viewer reads as texture rather than as blocks. If your goal is "unmistakably pixelated", 8 px may not get there on a smooth photo; if your goal is "unreadable text", 8 px is already more than enough and you have spent quality for nothing.

Where the 63,016,384 pixels land at 8 px 41.847% 44.857% 13.043% unchanged changed by 1 to 31 levels changed by 32 to 127 changed by 128 or more Widths read from the 8 px column: 41.847 / 44.857 / 13.043 / 0.253 percent.
The visible part of an 8 px pixelation is the two dark segments, 13.296% of the batch. The 44.857% in the middle is a one-to-thirty level nudge that reads as grain.

4. Where the grid starts changes the picture

Averaging is anchored somewhere, and nothing in the file records where. The same 8 px applied with the grid moved half a block to the right and down rewrote 7,171,856 pixels of the 4000 x 3000 landscape, 59.766% of the frame, with 10.652% of pixels differing by 32 levels or more. On the 1600 x 900 screenshot the shift touched 66.413% of pixels, and on the 128 x 128 icon 75%, with 43.945% differing by 32 or more.

FilePixelsDifferent after half-block shiftShareDiffer by 32 or more
photo_landscape.jpg12,000,0007,171,85659.766%10.652%
screenshot.webp1,440,000956,35266.413%14.314%
small_icon.png16,38412,28875.000%43.945%

None of this is a defect. Averaging a different set of neighbours gives a different colour, and a different colour is the correct answer for that grid. It does mean that "block size 8" is not a recipe: two tools, or the same tool after a crop, can produce two versions and both are right. If you need the same look twice, keep the output, because the input plus the number is not enough to reproduce it.

Same edge, two grid origins grid at 0,0 grid shifted by 4 px The edge sits on a cell boundary, so the staircase is one cell wide. The edge now splits a cell, and the block colour is a blend of both sides.
The only difference between the two panels is where the first grid line falls. On the landscape photo this single choice changed 10.652% of pixels by 32 levels or more.
Your call: if a client compares your export against theirs and the blocks line up differently, that is the grid origin and not a bug, and only you can decide whether matching them matters. Re-exporting from the same tool with the same crop will match; a different tool may not, ever.

5. The files that barely move

Eleven files, one number, eleven outcomes. At 8 px the spread runs from 1.333% of pixels changed on a 16-bit grayscale scan to 76.425% on a square PNG. The reason is not the format, it is how much of the picture already sits in flat areas: a scan that varies by a few levels per pixel has blocks whose average is nearly the original pixel, while a photo with strong local contrast gets every block rewritten.

FilePixelsColumns at 8 pxUnchangedMoved 32 or moreMean difference
photo_square.png9,000,00037523.574%18.335%15.651
small_icon.png16,3841625.263%38.562%30.093
screenshot.webp1,440,00020036.713%16.699%14.554
exif_orient6.jpg3,000,00025038.933%16.139%13.682
photo_landscape.jpg12,000,00050041.513%13.202%11.265
gray_8bit.jpg12,000,00037550.834%10.011%8.591
logo_alpha.png960,00015096.647%2.584%2.717
animation.gif120,0005096.693%3.307%2.953
gray_16bit.png480,00010098.667%0.954%0.726

Mean difference is the average of the largest per-pixel channel difference, on a 0 to 255 scale. The two byte-identical portrait JPEGs are left out of the table because they repeat the same row; their numbers are 41.455% unchanged and 13.245% moved by 32 or more.

The icon is the interesting row. It is 16,384 pixels wide enough for only 16 columns, so an 8 px block is a sixteenth of the image and the mean difference reaches 30.093 out of 255 — the highest in the folder. If you pixelate a favicon at 8 px you are not adding texture, you are replacing the icon.

Visible change at 8 px, by file icon 128 38.562% square PNG 18.335% screenshot 16.699% landscape 13.202% gray 8-bit 10.011% animation 3.307% gray 16-bit 0.954% Bar width linear to 40 percent. Seven of the eleven readable files.
How much of each file actually looks pixelated at 8 px. The icon moves nine tenths of a bar; the 16-bit scan moves a sliver.

6. Bigger blocks are not always more change

On the 400 x 300 six-frame GIF the changed share climbs from 6.4% at 16 px to 13.653% at 32 px, then 27.307% at 64 px, then falls to 16.667% at 100 px. That last drop is not a rounding error. At 100 px the frame is 4 columns by 3 rows, and each column is a wide vertical slice whose average happens to land close to the original colour of many of its pixels, so the picture collapses into broad bands and a large share of pixels ends up within a level or two of where they started.

The 128 px icon does the opposite: 64 px gives 100% changed and 100 px also 100%, because the whole frame becomes one block. A giant block turns the image into a single colour, and a single colour has nothing left to differ from: the 100 px result on the icon holds 4 distinct colours, the 64 px result 4, the 32 px result 16, and a whole-frame block exactly 1. Block sizes past a sixth of the short edge stop being pixelation and become a colour average.

File16 px32 px64 px100 pxColours left at 32 px
animation.gif6.4%13.653%27.307%16.667%10
small_icon.png74.933%100%100%100%16
photo_square.png81.045%84.763%88.048%92.545%6,441
photo_landscape.jpg62.142%63.954%66.197%69.426%6,503

Changed shares are of each file's own pixels. Colours left is the number of distinct RGB triples in the 32 px output, which is at most the cell count for that file.

7. Bytes: small blocks inflate, big blocks collapse

Pixelation usually gets described as a way to shrink a picture. On this batch it does the opposite until the block is large. 2 px wrote 21,083,992 bytes of PNG from 20,934,926 bytes of input, 1.0071 times; 4 px wrote 6,652,709, 8 px 2,135,740, 16 px 768,858, 32 px 384,939 and 100 px 252,258. That ramp is the point: a flat colour repeated over a few pixels is exactly the pattern a lossless encoder cannot compress, because every block boundary is a new run.

FileInput bytes2 px4 px8 px32 px100 px
photo_landscape.jpg2,403,7044,428,8741,377,378433,96074,26047,241
photo_square.png10,636,8404,231,2021,302,201404,98863,47637,811
photo_portrait.jpg2,443,4754,362,4391,347,708421,35372,26546,552
gray_8bit.jpg2,068,1472,005,482745,276276,31363,83745,993
screenshot.webp186,788535,202170,39755,6749,9836,612
small_icon.png22,2148,3492,7551,136463390

All outputs were written as 8-bit RGB or RGBA PNG with no optimisation pass. Totals across the eleven readable files: 21,083,992 bytes at 2 px, 6,652,709 at 4 px, 2,135,740 at 8 px, 768,858 at 16 px, 384,939 at 32 px and 252,258 at 100 px, against 20,934,926 bytes of input. The portrait row is counted once in the totals.

The icon breaks the pattern and it is worth seeing why: at 2 px its output is smaller than its source, 8,349 bytes against 22,214, because the source already had a busy anti-aliased edge that the blocks remove. A file that is already large and smooth will inflate; a file that is already small and noisy will shrink. The size change tells you what kind of picture you started with, not whether the pixelation worked.

Your call: whether to ship a 2 px pixelation as PNG at 1.0071 times the source, or re-save it as JPEG at some quality you choose, depends on whether the file is a cut-out. JPEG has no alpha, so a transparent logo cannot go that route; a photo can, and the trade is yours to make.

8. Transparency, frames, depth and orientation

Pixelation writes an image, and an image is a container for more than its pixels. Four things survive or do not, and the batch makes each of them visible.

FileBeforeAfterNote
logo_alpha.pngRGBA, 1,200 x 800RGBA, same alphaalpha bytes identical at 8 px; colour under transparency averaged
animation.gif6 frames, indexed, 12-colour palette1 framea still-image path keeps the first frame only
gray_16bit.png16-bit, 65,536 levels8-bit0.954% of pixels moved by 32 levels or more
exif_orient6.jpgorientation tag 6, stored 2000 x 1500no orientation tagpixels are what they are; the tag that tells viewers to rotate is gone

The transparency row is the one that bites in production. Alpha is copied through untouched, so a cut-out keeps its shape, but the colour of transparent pixels is averaged along with everything else. Where a transparent pixel shares a block with a visible one, its stored colour contributes to the block's average, and because the block is expanded over both, the fringe picks up whatever the invisible pixels were carrying. A cut-out saved on white and the same cut-out saved on black will pixelate to two different edge tones.

The orientation row is quieter and worse. A JPEG with tag 6 is stored sideways and rotated by the viewer; strip the tag without rotating the pixels and the file looks upright in your editor and lying on its side in the next tool. The pixels on this file did not move during pixelation, and neither did the instruction to rotate them: after saving through a path that does not carry EXIF, the tag reads empty.

9. Repeatability, cost and what the number cannot give you

Two passes over the same eleven files at 8 px produced identical bytes: SHA-256 3195b5ccac4482a5ce1ff10c9a75977f12413106b3cfcf5673c66acd5ea8019b for the top-left grid and a4d02844466f01e0a798405aa003ef5689cde3b4b2d07eed93093641ed0eb149 for the half-block-shifted grid, each hash built from the files in a fixed order. Same input, same grid, same output, every time.

Wall clock for the whole folder was 8.12 seconds at 8 px and 7.29 seconds at 16 px in the first pass, which says more about disk reads of 20.9 MB than about the arithmetic. Treat the timing as scale, not as a benchmark, and note that the 4000 x 3000 file alone took 1,007 ms at 8 px, so a folder of several hundred photos is a coffee break in a browser tab, not a blink.

What the number cannot give you is a guarantee. The block size says how wide the squares are; it does not say where the grid starts, whether the averages round or floor, whether the padding at edges mirrors or repeats the last row, or whether the tool dithers the result. Two tools that both say 8 px can differ on 10.652% of a landscape's pixels by 32 levels or more, and neither is wrong. Look at the output before you send it.

See all measured guides

Frequently asked questions

Can I pixelate multiple images at once?

Yes, one block size can go across a whole folder, but the size is global and the files are not. At 8 px the batch produced 984,881 cells from 63,016,384 pixels, and the same 8 px changed 76.425% of a square PNG against 1.333% of a 16-bit grayscale scan. Sort the folder by pixel dimensions before you pick the number, because a 128 px icon and a 4000 px photo cannot share one sensible block.

Will pixelating make my image blurry?

No, it does the opposite of blur. Every block is filled with one flat colour, so edges become stairs, not gradients. On a 128 x 128 icon at 8 px the mean absolute error was 30.093 out of 255, against 0.726 on a smooth 16-bit grayscale scan, because the icon is mostly edges. A blur softens a boundary; pixelation moves it to the nearest grid line.

Is pixelating the same as pixelizing an image?

Same operation, two spellings, and both produce a single flat colour per block. What is not the same is the result at different sizes. Between 8 px and 32 px the visible share went from 13.296% to 21.426% of the batch while the cell count fell from 984,881 to 61,818, so the word you type does not matter and the number you type does.

What does the block size number actually measure?

It is the side length in pixels of each square that gets replaced by one colour. At 4 px every cell covers 16 pixels, so 3,938,524 cells were needed for 63,016,384 pixels. At 32 px each cell covers 1,024 pixels and 61,818 cells covered the same batch. Doubling the number halves the columns and the rows, which is four times fewer cells.

How do I pixelate a face or a plate so it cannot be read?

Size the block against the thing you are hiding, not against the whole picture. At 8 px on a screenshot of 1600 x 900, 16.699% of pixels moved by 32 levels or more, meaning most blocks barely differed from the original. A block that is smaller than the stroke width of a letter leaves the letter legible. Compare the output at 100% zoom before you send it, because proportional shrinking restores readable averages.

Why does changing the block size change so little of the picture?

Because most pixels already sit inside a block that is nearly one colour. At 8 px, 41.847% of the batch was byte-identical before and after, and 330,182 of the 984,881 blocks came from a region that was already one uniform colour, 33.525%. On a tight palette like a six-frame GIF, 96.693% of pixels did not move at all, because a 400 x 300 frame only holds 50 columns of 8 px.

Does the grid position change the result?

Yes, a lot, and no tool tells you where its grid starts. Shifting the 8 px grid by half a block on a 4000 x 3000 landscape rewrote 7,171,856 pixels, 59.766% of the frame, with 10.652% of pixels differing by 32 levels or more. Two tools running the same 8 px on the same file can therefore hand back different pictures, and both are correct.

What happens to a transparent PNG?

The alpha channel is untouched and the colour channels are averaged with the image edge as padding. On the transparent logo the alpha bytes were identical before and after at 8 px, while 3.353% of colour pixels changed. Where transparent pixels sit inside a block, their stored colour is averaged into the visible one, so a cut-out saved on white and the same cut-out saved on black will pixelate to different edges.

Why does a 16-bit grayscale scan barely change?

Because it is smooth before you touch it, and it is squashed to 8 bits first. The file carried 65,536 sample values from 0 to 65,535, and after conversion to 8-bit only 256 were left; at 8 px just 1.333% of its pixels moved by even one level, with a mean absolute error of 0.726 out of 255. Neighbouring samples differ by a handful of levels, so the block average lands almost on top of every pixel it replaces.

Is the output bigger or smaller than the original?

At small block sizes it is bigger. On a 4000 x 3000 landscape JPEG the 4 px output was 1,377,378 bytes against 2,403,704 bytes of source, 0.573 times, but the 2 px output was 4,428,874 bytes, 1.8425 times the source. That pixelated look is loads of tiny flat colours, which is the worst case for a lossless encoder, so save as JPEG if size matters and as PNG only for cut-outs.