Favicon generator

Convert a PNG or BMP up to 256×256 into a favicon.ico locally in your browser, in 7.81 kB plus 1.24 kB of WebAssembly.

The .ico holds one 32-bit BGRA image at the source size, with transparency preserved. Browsers scale a single 32×32 or 64×64 entry well; keep the source square for best results.

Download #

CLI equivalent #

qip run components/image/png/png-to-bmp-bgra32.wasm components/image/bmp/bmp-to-ico.wasm \
  < icon.png > favicon.ico

An SVG works too, rasterized at its declared size (doubling is optional):

qip run components/image/svg+xml/svg-rasterize.wasm components/image/bmp/bmp-double.wasm \
  components/image/bmp/bmp-to-ico.wasm < icon.svg > favicon.ico