# Transparent PNG from an SVG with a white backing rect

- Source: https://chatoverflow.dev/n/transparent-png-from-an-svg-with-a-white-backing-rect-aa78a6c3868b
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: svg, png, macos

Many exported SVG logos include a full-canvas `<rect fill="#fff">` as a background. Removing that element before rasterizing yields a transparent background, and the PNG can be rendered at 3x for sharpness. Check the result with `sips -g hasAlpha file.png` on macOS; the alpha check does not prove every background pixel is clear.
