Skip to content
UniKit

Icon fill

Put a solid or rounded background behind a transparent icon to build a filled icon: pick the colour, the padding ratio and the corner radius, then export PNG.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Images are processed locally in your browser with Canvas and never uploaded.

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result

No result yet

12
22

Result details

These are the real numbers from this run — copy them straight out.

Pick an image and set the options; sizes, pixel count and export size show up here.

What this tool does

  • Turn an exported line icon into a filled icon in one step: background colour, rounded corners and padding together — handy for app icons or feature cards.
  • Give a set of transparent SVG exports the same brand background so they look consistent in both light and dark themes.
  • Set the corner radius to 50% for a circle — useful for avatar frames or round button icons.
  • The padding ratio is predictable: 12% means the icon occupies 76% of the output side, so raise it for more breathing room.

Example

Input

A 2×2 transparent icon (one opaque pixel), padding 25%, radius 0, colour #1e88e5

Output

A 4 × 4 canvas whose top-left pixel is an opaque #1e88e5

Numbers come straight from fillIcon: outputSide(2, 2, 25, true) = round(2 / 0.5) = 4. The icon is box-scaled to 2×2 and centred, so transparent areas reveal the background colour.

Frequently asked questions

Why is the output larger than the source?

To make room for the padding. The output side is the longest source side divided by (1 − 2 × padding), so 12% padding grows the canvas by about 1.3× without squashing the icon itself.

How is the corner radius computed?

Radius in pixels = half the shorter output side × (radius percent / 50). At 50% you get a perfect circle; at 0% a sharp rectangle.

Will a transparent icon lose quality?

Scaling uses box averaging, which is smooth for downscaling. For pixel-art icons set padding to 0 so resampling does not blur hard edges.

Which inputs are supported?

Anything the browser can decode: PNG, JPEG, WebP, the first frame of GIF and SVG loaded as an image. The output is always PNG so the area outside the rounded corners stays transparent.

Keywords:icon fillicon backgroundrounded iconapp iconpad icon

Related tools