Centered Icon Maker
Create perfectly centered icons with custom backgrounds, padding, rounded corners, and shadows. Export as PNG, JPEG, or WebP in any size.
About
Placing a logo or symbol inside an icon frame requires precise arithmetic. A 1-pixel offset at 16ร16 is a 6.25% positional error - visible on every browser tab. This tool computes the exact scale factor s = min(W โ 2pw, H โ 2ph) to fit your image within the target canvas while preserving aspect ratio, then derives pixel-perfect center offsets. It handles transparent backgrounds, solid colors, linear gradients, configurable border-radius via arcTo clipping, and drop shadows. All rendering happens on an HTML Canvas element in your browser. No image data leaves your machine.
The tool covers standard platform requirements: favicons at 16, 32, 48px, Apple Touch at 180px, Android adaptive at 512px, Open Graph at 1200ร630px. Mismatched icon sizes cause blurry rendering on high-DPI screens or rejection by app store validators. Pro tip: Apple requires no transparency and no rounded corners in submitted assets - the OS applies its own mask.
Formulas
The core centering algorithm computes a uniform scale factor that fits the source image into the padded canvas area without distortion:
Center offsets position the scaled image exactly in the middle:
Where W, H = canvas width and height in pixels. w, h = source image natural width and height. p = padding in pixels (derived from percentage: p = P% โ min(W, H) รท 100). s = uniform scale factor. ox, oy = drawing offset from top-left corner.
Border radius clipping uses a rounded rectangle path. The effective radius is clamped: r = min(R% โ min(W, H) รท 200, min(W, H) รท 2). At R% = 100, the shape becomes a circle (when W = H).
Reference Data
| Platform / Context | Size (px) | Format | Transparency | Notes |
|---|---|---|---|---|
| Favicon (classic) | 16ร16 | ICO / PNG | Yes | Browser tab. ICO supports multi-size. |
| Favicon (modern) | 32ร32 | PNG | Yes | High-DPI tabs and bookmarks. |
| Favicon (large) | 48ร48 | PNG | Yes | Windows taskbar shortcut. |
| Apple Touch Icon | 180ร180 | PNG | No | iOS home screen. No transparency allowed. |
| Android Chrome | 192ร192 | PNG | Yes | manifest.json icon. |
| Android Adaptive | 512ร512 | PNG | Yes | Play Store listing, splash screens. |
| Microsoft Tile (small) | 70ร70 | PNG | Yes | Windows Start menu small tile. |
| Microsoft Tile (medium) | 150ร150 | PNG | Yes | Windows Start menu medium tile. |
| Microsoft Tile (large) | 310ร310 | PNG | Yes | Windows Start menu large tile. |
| Open Graph / Twitter | 1200ร630 | PNG / JPEG | No | Social media share preview. |
| Slack App Icon | 512ร512 | PNG | Yes | Workspace app directory. |
| Discord Bot Avatar | 256ร256 | PNG / JPEG | Yes | Minimum 128px recommended. |
| macOS App Icon | 1024ร1024 | PNG | Yes | Xcode iconset master size. |
| watchOS Icon | 1024ร1024 | PNG | No | Circular mask applied by OS. |
| PWA Splash (portrait) | 640ร1136 | PNG | No | iPhone SE splash screen. |
| YouTube Channel | 800ร800 | PNG / JPEG | No | Rendered as circle at 98px. |
| Instagram Profile | 320ร320 | JPEG | No | Circular crop. Minimum 110px. |
| Twitch Emote (large) | 112ร112 | PNG | Yes | Must also provide 28 and 56px. |
| Electron / Desktop App | 256ร256 | PNG / ICO | Yes | Tray icon. Use 16px for tray. |
| Custom (square) | Any ร Any | PNG / JPEG / WebP | Optional | User-defined dimensions. |