EditSafely

Align PNG Center of Mass

Shift the content of a PNG so its center of mass, not its bounding box, sits in the middle of the canvas.

Runs on your device, nothing uploaded

Drop images anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG · several at once

Your PNG files never leave this tab

Align PNG Center of Mass is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Align PNG Center of Mass

  1. 1. Add the PNG. Drop one or more PNG files with a shape on a transparent or plain background. Each is processed in your browser.
  2. 2. Choose the weighting and axes. Opacity suits cutouts on transparency; Darkness or Brightness suit artwork on a solid background. Center on both axes or only one.
  3. 3. Pick the canvas behavior and download. Keep size shifts the content inside the same canvas; Grow to fit adds transparent space so nothing is cut off. Then download the PNG or a ZIP of the batch.

When to use Align PNG Center of Mass

Align PNG Center of Mass finds the weighted center of the visible content and moves the content so that point lands on the canvas center. Shapes that are heavier on one side, such as a play icon or a speech bubble, then look centered to the eye even though their bounding box is no longer exactly in the middle.

  • Centering an icon set. Icons with asymmetric shapes look off-center in a grid when centered by their box. Aligning every icon by its weight makes the whole set look even.
  • Preparing product cutouts for a catalog. Background-removed product photos keep their subject in the visual middle of each tile, so a grid of shots looks consistent.
  • Balancing a badge or seal for print. A badge with a ribbon or a tab on one side reads as centered on packaging when its mass, not its outline, sits in the middle.

Examples

Balance an icon

Input

icon.png (heavier on the left)

Output

Same-size PNG with the icon shifted 6 px right

About the Align PNG Center of Mass tool

Align PNG Center of Mass is a free online tool that works entirely inside your web browser. Shift the content of a PNG so its center of mass, not its bounding box, sits in the middle of the canvas. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 3 settings, including Weigh pixels by, Center and Canvas; the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. A worked example further down the page shows exactly what the tool produces for a real input.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Is Align PNG Center of Mass free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

Which files does Align PNG Center of Mass accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I save the output?

Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.

Related tools

All PNG Tools →