Icon Outline Adder

Uploads an icon PNG, decodes it onto an off-screen canvas, and traces its alpha silhouette to add a solid-color stroke that follows the icon's actual outline rather than drawing a rectangular frame, then lets you download the outlined icon. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool adds a solid-color outline to an icon that hugs its actual shape, entirely in your browser using the HTML canvas API.

Icons often need a border to stand out on busy or colorful backgrounds, and a shape-hugging outline reads much cleaner than a rectangular frame around the whole canvas.

What Is Icon Outline Adder?

A client-side icon outline generator that reads an uploaded icon's pixel data, expands the canvas by the requested thickness on every side, and fills any new pixel within that distance of the icon's original opaque content with a chosen color.

It's the same underlying operation as the site's general PNG stroke/outline adder, applied to icon-sized assets like app icons, favicons, and UI glyphs.

How Icon Outline Adder Works

For every pixel in the expanded output canvas, the tool checks whether it falls within the requested thickness of any originally-opaque source pixel; if so, it's colored with the outline color, otherwise it stays transparent.

Pixels that were already opaque in the source keep their original color untouched, so the outline sits entirely in the newly-added margin around the icon.

When To Use Icon Outline Adder

Use it when an icon needs to stay legible against a background whose color you don't control, such as a favicon shown on browser tabs of any color.

It's also useful for giving flat icons a stickers-style pop, or for meeting design guidelines that require a visible border around app icons.

Often used alongside Icon Shadow Adder, Icon Thickener and PNG Rotator.

Features

Advantages

  • Runs entirely client-side; the uploaded icon is never sent to a server.
  • Traces the icon's real silhouette instead of drawing a generic rectangular frame.
  • Supports any RGBA outline color and any whole-pixel thickness.

Limitations

  • Very thin, wispy icon details can produce a blobby outline once thickened, since the outline is based on proximity to any opaque pixel.
  • Large thickness values on large icons can take a moment to process, since every new pixel searches a neighborhood of source pixels.

Examples

Add a 4px black outline to a flat icon

Input

A 64x64 icon PNG, thickness 4, color #000000

Output

A 72x72 PNG with a 4px black ring hugging the icon's shape

The canvas grows by the thickness on every side to fit the new outline without clipping it.

Add a thin colored outline for contrast

Input

A 32x32 white icon, thickness 1, color #333333

Output

A 34x34 PNG with a subtle 1px dark outline

A thin outline is often enough to separate a light icon from a light background.

Best Practices & Notes

Best Practices

  • Use a thickness proportional to the icon's size — 1-2px for small icons, more for larger ones.
  • Choose an outline color that contrasts with the widest range of backgrounds the icon might appear on.

Developer Notes

The pure outline math lives in a lib function that thinly re-exports the shared shape-hugging stroke function (also used by the general-purpose PNG outline adder) under this icon-specific name, since an icon is just a PNG once uploaded and the underlying pixel operation is identical.

Icon Outline Adder Use Cases

  • Making a favicon legible on both light and dark browser tabs
  • Giving a flat app icon a sticker-style border
  • Meeting a platform's app-icon border guidelines

Common Mistakes

  • Picking an outline color too close to the icon's own colors, which reduces the contrast the outline is meant to add.
  • Forgetting that the output canvas is larger than the input — downstream tools that expect an exact original size may need a resize step afterward.

Tips

  • Combine with the Icon Space Adder if you need extra breathing room beyond just the outline itself.
  • Preview at 100% zoom before downloading, since thin outlines can be hard to judge at a shrunk preview size.

References

Frequently Asked Questions