Square Icon Creator

Uploads an icon PNG, decodes it onto an off-screen canvas, and centers it on a fully transparent square canvas sized to its larger dimension (padding rather than cropping), then lets you download the square icon. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool pads a non-square icon into a perfect square, entirely in your browser, centering the original content without cropping it.

It's the same square-padding operation used by the site's general PNG square creator, applied here to icon-sized assets.

What Is Square Icon Creator?

A client-side icon squaring tool that reads an uploaded icon's pixel data, computes a new square canvas size equal to the icon's larger dimension, and centers the original icon within it on a transparent background.

Unlike a resize or crop, this never distorts or clips the icon's content — it only adds transparent margin to the shorter dimension.

How Square Icon Creator Works

The tool takes the maximum of the icon's width and height as the new square's side length, then computes the centered offset needed on the shorter dimension.

It copies every original pixel to its new centered position on a fresh, fully transparent square canvas, leaving the rest of the canvas as transparent padding.

When To Use Square Icon Creator

Use it before uploading an icon to a platform that requires a square (1:1) image, when your source icon is wider or taller than it is square.

It's also useful as a preparation step before applying a circular mask, since the Round Icon Creator expects (and works best with) already-square input.

Often used alongside Round Icon Creator and Icon Space Adder.

Features

Advantages

  • Runs entirely client-side; the uploaded icon is never sent to a server.
  • Never crops or distorts the original icon's content.
  • Automatically centers the icon on the new square canvas.

Limitations

  • The output is always transparent-padded, not cropped — if you specifically want a square crop instead, use a cropping tool.
  • The final square size is determined by the icon's larger dimension, not a fixed target size like 512x512.

Examples

Square a wide icon

Input

A 200x100 icon PNG

Output

A 200x200 PNG with the original icon vertically centered, transparent top/bottom margin

The square's side length matches the icon's wider dimension (200), and the shorter dimension (100) gets equal padding above and below.

Leave an already-square icon unchanged

Input

A 128x128 icon PNG

Output

The same 128x128 PNG, unchanged

No padding is needed since width already equals height.

Best Practices & Notes

Best Practices

  • Use the Icon Space Remover first if your icon has excess transparent margin, so the resulting square isn't larger than necessary.
  • Follow up with the Round Icon Creator if you need a circular icon from square-padded content.

Developer Notes

The pure padding math lives in a lib function that thinly re-exports the shared square-canvas-centering function (also used by the general-purpose PNG square creator) under this icon-specific name, since an icon is just a PNG once uploaded and the underlying centering logic is identical.

Square Icon Creator Use Cases

  • Preparing a rectangular logo mark for a square app-icon slot
  • Normalizing a batch of differently-shaped icons to a consistent square canvas
  • Creating a square base before applying a circular avatar mask

Common Mistakes

  • Expecting the output to be a fixed size like 512x512 — it's sized to the input icon's larger dimension, not a standard target.
  • Applying this after already cropping the icon to a specific aspect ratio, which can undo the intended crop.

Tips

  • Trim excess transparent space first with the Icon Space Remover for the tightest possible square.
  • If you need a specific final pixel size, resize the squared result afterward with a general PNG resizer.

References

Frequently Asked Questions