How much do transparent borders and format choice cost? A benchmark of 3,476 flat-graphic logos

By Rocco Bombardieri · Published · Data collected 2026-11-30 · Licensed CC BY 4.0

Adding 25% transparent padding per side to a flat logo raises its PNG pixel count by 125.0% and its median file size by 13.7%. Trimming restored the original pixels for 3476 of 3476 icons padded by 100%. Lossless WebP is a median 54.3% smaller than PNG.

Key findings

  • Padding costs bytes, but far fewer than pixels. At 100% padding per side the canvas has 800.0% more pixels than the 512 px original, yet the median PNG is only 71.5% larger (mean 78.1%, 90th percentile 112.3%).
  • Even modest padding is not free. At 10% per side the median PNG grows 5.8% (90th percentile 9.4%); at 25% it grows 13.7% (90th percentile 20.6%).
  • Trimming is lossless on this corpus. After trimming, 3476 of 3476 icons padded by 100% are pixel-identical to their trimmed unpadded render.
  • Format matters more than padding. Median PNG is 12,545 bytes; PNG palette is a median −35.5%, lossless WebP −54.3%, lossy WebP q80 −49.8%, AVIF q50 −68.7%. All of them kept the alpha channel.
  • Resolution scales sub-linearly on flat art. Doubling the render size to 1024 px (4x the pixels of 512 px) changes the median PNG by +158.7%.

Corpus: 3,476 flat SVG brand icons from the CC0 simple-icons package, rendered with sharp. Medians are across icons.

How was this measured?

How much does transparent padding add to a PNG?

Overhead is the percentage change in file size versus the same icon at 0% padding, using the same encoder.

PNG size overhead by transparent padding level
Padding per sideCanvasPixel overheadPNG medianPNG meanPNG p90Palette median
10%614×614+43.8%+5.8%+6.4%+9.4%+3.9%
25%768×768+125.0%+13.7%+15.2%+20.6%+9.5%
50%1024×1024+300.0%+29.8%+32.7%+45.2%+17.8%
100%1536×1536+800.0%+71.5%+78.1%+112.3%+35.6%

Baseline (0% padding): median PNG 12,545 B (12.3 KB), mean 13,264 B; median PNG palette 7,856 B.

Pixel overhead vs median PNG size overhead, by padding level
10% · pixels+43.8%
10% · PNG bytes+5.8%
25% · pixels+125.0%
25% · PNG bytes+13.7%
50% · pixels+300.0%
50% · PNG bytes+29.8%
100% · pixels+800.0%
100% · PNG bytes+71.5%

Does trimming bring the file back to its original size?

Trimming restored the original pixels: 3476/3476 at 10%, 3476/3476 at 25%, 3476/3476 at 50%, 3476/3476 at 100% icons were pixel-identical to the trimmed unpadded render, and re-encoding the trimmed PNG gave exactly the same byte length in 3476, 3476, 3476, 3476 of 3476 icons respectively.

Trimming also removes the margin that the icons already carry inside their own 512 px square. Against the 0% render, the trimmed PNG is a median −2.1% (mean −3.9%), and the visible content fills a median 88.3% of the 512 px canvas area. You can do this in the browser with Triim's trim tool.

Which format is smallest for flat graphics with transparency?

File size by format at 512 px, no padding
FormatMedian bytesMean bytesMedian vs PNGSmaller than PNGAlpha keptPixel-exact
PNG (sharp defaults)12,54513,264baseline-100.0%100.0%
PNG palette (8-bit indexed, compressionLevel 9)7,8568,481−35.5%100.0%100.0%100.0%
WebP lossless5,5346,150−54.3%100.0%100.0%100.0%
WebP lossy q806,0536,665−49.8%100.0%100.0%lossy
AVIF q503,7874,207−68.7%100.0%100.0%lossy

"Alpha kept" is the share of encoded files that decode with an alpha channel. "Pixel-exact" compares decoded RGBA with the source render (colour of fully transparent pixels ignored); lossy formats are not tested for exactness.

Median file size by format (512 px, bytes)
PNG12,545
PNG palette7,856
WebP lossless5,534
WebP lossy q806,053
AVIF q503,787

For when to pick which format, see WebP vs PNG for logos and graphics; to change format in your browser, use the convert tool.

How does output size change PNG file size?

PNG size by render size
Render sizePixels vs 512Median bytesMedian vs 512p90 vs 512
256×256−75.0%5,110−58.7%−55.8%
512×512+0.0%12,545baseline-
1024×1024+300.0%33,076+158.7%+190.4%
Median PNG size by render size (bytes)
256 px5,110
512 px12,545
1024 px33,076

If a PNG is larger than expected, work through why your PNG is so large and resize with the resize tool.

What are the limitations?

Download the data

Licensed CC BY 4.0: reuse freely, with attribution to Rocco Bombardieri and a link to this page.

How do I cite this?

Text

Bombardieri, R. (2026). PNG transparency & format benchmark 2026. Triim. https://triim.ca/research/png-transparency-benchmark-2026

BibTeX

@misc{bombardieri2026pngtransparency,
  author       = {Bombardieri, Rocco},
  title        = {PNG transparency \& format benchmark 2026},
  year         = {2026},
  publisher    = {Triim},
  url          = {https://triim.ca/research/png-transparency-benchmark-2026},
  note         = {Open dataset, CC BY 4.0}
}

Related