EditSafely

Remove a Border from a PNG

Auto-detect and crop out a uniform border baked into a PNG. Runs entirely in your browser, so your data never leaves your device.

Input

Drop a file here, or click to browse

Files never leave your device

Output

The result appears here as you type.

Options

How to use Remove a Border from a PNG

  1. 1. Upload the framed PNG. Add the image that has a uniform border baked into it, such as framed.png, that you want automatically detected and cropped away.
  2. 2. Set the color tolerance. Adjust Color tolerance (%) to control how much variation in the border's color is still treated as part of the frame rather than the actual content.
  3. 3. Download the cropped PNG. Save the result, such as framed.png with the solid border cropped away, once the detected frame has been removed and only the content area remains.

When to use Remove a Border from a PNG

Remove a Border from a PNG auto-detects a uniform border baked into an image and crops it away, without needing you to measure the frame's exact pixel width yourself. It suits scanned images and exported graphics that came with an unwanted frame attached.

  • Cleaning up a scanned document. A scanned page picks up a dark border from the scanner bed's edge. Auto-detecting and cropping that border leaves just the document content.
  • Removing a screenshot tool's frame. A screenshot utility adds a decorative window frame around every capture by default. Cropping that frame away leaves a clean image of just the content.
  • Fixing an exported graphic with unwanted padding. A design tool exports a graphic with a uniform colored margin that was not part of the intended artwork. Cropping it away restores the graphic to its actual bounds.

Examples

Trim a frame

Input

framed.png

Output

framed.png with the solid border cropped away

About the Remove a Border from a PNG tool

Remove a Border from a PNG runs as plain JavaScript in your browser tab, with no server behind it. Auto-detect and crop out a uniform border baked into a PNG. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's PNG Tools section, 108 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with the Color tolerance (%) setting, and the result refreshes the moment you change it. 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.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is Remove a Border from a PNG free to use?

Yes, it is completely free. All 2,658 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 Remove a Border from a PNG 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