Image Size Reducer
PNG centering tool

Center a PNG

Give the image a frame of the size you need and place the artwork at its exact midpoint, horizontally and vertically. Whatever is added around it stays transparent, so the result drops into any layout without a white box behind it.

  • Artwork placed at the exact midpoint
  • Canvas size set independently of the image
  • The added margin stays transparent
  • Square, wide, or tall frames
  • Nothing uploaded, nothing installed
Open the centering tool

What Centering Actually Changes

The image is not resized or redrawn. It is placed inside a larger or smaller frame, at a position worked out from the numbers rather than from the eye.

Position is the one thing about an image that is impossible to judge by looking at it. A logo can appear perfectly centerd on one background and visibly high on another, because the space above and below it is not equal even when the artwork's bounding box is. To center a PNG properly you measure the frame, measure the artwork, and put the difference in equal halves on both sides. That also separates two decisions that are usually tangled together. The size of the frame and the position of the artwork inside it are independent: a 512 pixel square canvas can hold a 200 pixel icon at its center, at its top left, or anywhere between. Files that need a fixed footprint, from an app icon to a sprite sheet, care about both, and they care about them in that order.

Why Center a PNG in the Browser

Two numbers decide the result, and the frame you add around the artwork never becomes part of the picture.

Placement worked out, not eyeballed

The offset is the remaining space split in half, so the artwork lands at the true midpoint rather than at the point where it happens to look right.

Frame size set on its own

Square, landscape, portrait, or a specific pixel value — the canvas can be any size without the image inside it being scaled to match.

Added area stays transparent

The margin that appears around the artwork is empty pixels, so the file still drops onto a colored page without a white box behind it.

The artwork itself is untouched

No resampling and no sharpening, which means a crisp small icon keeps every edge it had before it was given a bigger frame.

A lighter file than expected

Empty pixels compress extremely well in PNG, so a canvas much larger than the artwork usually costs very little in file size.

ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The logo that never sits straight in a header

A mark exported at whatever size the designer happened to be working at often arrives with more space on one side than the other. Nobody notices in isolation, and everybody notices when it sits next to a line of text that is properly aligned. Putting the mark on a square canvas at its exact center fixes the alignment once. From then on the file has a predictable shape, so the CSS that positions it does not need a magic offset for this one asset.
Center this image
Logo sitting off center beside a logo placed in the middle of a square canvas
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Sprite sheets need every frame in the same place

Games and animations are built from a strip of frames, and the frames only line up if each one occupies the same region of its cell. A character that stands two pixels lower in one frame produces a visible jitter that no amount of tweaking the animation code will hide. Centering each drawing inside a fixed cell before packing the sheet removes the problem at the source. It is a tedious task done by hand and a trivial one done by number, which is the strongest argument for a way to center a PNG in a batch rather than one at a time.
Center this image
Animation frames aligned inside identical canvas cells
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The app icon looks low in its rounded tile

Phone and desktop launchers crop icons into a rounded shape, and the crop is taken from the center of the file. Artwork that sits even slightly off center ends up with a heavy edge on one side and a thin one on the opposite side, which reads as a design mistake. A square canvas with the mark in the middle gives the crop the best chance of looking even. The margin around the artwork also matters here, since a mark drawn right to the edge of its frame loses its outline to the corner radius.
Center this image
App icon with even margins inside its rounded launcher tile
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

An avatar cropped differently in every template

Profile pictures get pushed through circles, squares, and rounded rectangles by whichever product is displaying them. A photograph centerd on a square canvas survives all three, while one exported tightly to the face can end up cropped through the top of a head. Leaving a little transparent space above and below is the cheap insurance. It also gives the person doing it a single rule to follow: center a PNG on a square, leave the same margin every time, and stop reasoning about each image separately.
Center this image
Portrait centerd on a square canvas shown in circular and rounded crops
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Canvas size and image size are two decisions

Making the frame larger is not the same as making the artwork smaller. Scaling the image down changes its level of detail and can soften a crisp line; extending the canvas leaves every pixel of the artwork exactly as it was and only adds empty space around it. That distinction is what makes centering useful for assets that must keep their exact rendering. A 24 pixel icon stays a 24 pixel icon whether the frame is 32 pixels square or 512, and the extra area is simply there to satisfy a layout that expects a bigger box. Anyone who only needs more room around a picture, without moving it, is looking at a different problem from the one this solves, and the answer there is a margin rather than a reason to center a PNG.
Center this image
Small icon unchanged in size inside a much larger transparent canvas
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Centering by eye stops working at scale

Dragging an image until it looks balanced is fine for one file. At forty files it becomes both slow and inconsistent, and the small differences between them are exactly what a reviewer notices when the assets are seen side by side. The arithmetic removes the judgement: the frame size minus the artwork size, divided by two, is the offset on each side. There is no setting to adjust and no second opinion to seek. That is why it pays to center a PNG for a whole icon set rather than one file at a time, even when a single image would take seconds by hand.
Center this image
Row of assets each placed at the midpoint of an identical frame
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The email signature logo shifts between clients

Email clients disagree about almost everything, and images are no exception: some render them at their natural size, others scale to the table cell they sit in. A logo that is tight to its own edges has nowhere to absorb that disagreement. A centerd mark on a slightly larger canvas gives each client some slack to work with, so a one pixel difference in rounding does not push the logo against the edge of its container. The transparent border is doing real work here even though it looks like nothing.
Center this image
Email signature logo with even transparent margins on every side
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

A product grid where nothing lines up

Storefronts show catalog images in a fixed square or rectangle, and the source photographs come from suppliers with wildly different framing. One fills the tile, the next floats in the middle with white space, and the grid looks assembled from several different shops. Putting each product on the same canvas at the same position is what makes the row look deliberate. It is a centering job rather than a resizing job, because the products are already the right size relative to each other and only their placement varies.
Center this image
Product grid where every image sits at the same position in its tile

How to Center a PNG

Four steps, and the only real choice is which canvas size the artwork has to sit inside when you center a PNG for a specific slot.

Step 1

Load the image

Drop the PNG onto the canvas. Its own dimensions are read and shown, since the frame size you pick is compared against them.

Step 2

Set the canvas size

Enter the size the file has to occupy, or pick a square preset. The value can be smaller than the artwork, in which case the image is cropped evenly on both sides instead of being scaled.

Step 3

Confirm the placement

The preview shows the artwork inside the new frame with the same margin on opposite sides. Check that nothing that matters has been cut off at the edges.

Step 4

Download the centered file

Save the result. It keeps the PNG format, and everything the artwork did not cover is left as transparent pixels.

Who Needs an Even Frame

Four kinds of work where the position of the artwork matters as much as the artwork itself.

SO

Store owners

catalog images shown in a fixed square tile

Supplier photographs arrive with every framing imaginable. Putting each product at the same position on the same canvas is what makes a category page look like one shop rather than a scraped collection.

FD

Front-end developers

icons and logos dropped into fixed layout slots

When the asset already occupies a predictable box, the CSS stops needing negative margins for that one stubborn file. It is a small thing that saves an argument with a designer every few weeks.

UD

UI designers

icon sets that have to look consistent in a toolbar

The difference between a tidy icon set and a loose one is usually a couple of pixels of position, not the drawing. Centering everything on one grid removes that inconsistency before anyone has to review it.

GA

Game artists

sprite sheets and animation frames

A frame that sits two pixels low produces a bounce that reads as a coding bug. Centering each cell first is quicker than tracking down where the jitter came from afterwards.

Frequently Asked Questions

What centering does to the image, and where it differs from resizing or adding a border.

Two numbers, and the artwork lands in the middle

Load the PNG, enter the canvas size the layout expects, check the preview, and download the centered file.

Center this image
Frame First

Position is a number, not an opinion

Looking at an image and deciding it seems centerd is exactly the judgement the eye is worst at, because empty space above a shape reads differently from empty space beside it. Working out the offset from the two sizes gives an answer that is the same every time, and that consistency is what makes a set of assets look like it was made by one hand.

Smaller files, same picture.