EIT easy-image-tools / Fit PNG onto background

Fit PNG onto background

Places the image centered on a canvas of the given size with a transparent or colored background.

Nothing found — try another word.

01

Fit PNG onto background

Nothing found — try another word.

Canvas size
Width
Height
Background
Opacity

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Fit PNG onto background places an image in the middle of a new canvas of the size you choose — a consistent square backdrop for a product shot, room around a logo, or the exact frame size a template expects. The image keeps its own resolution and is never scaled to fit, so a small picture stays small and centered rather than being blown up to the edges. Opacity at 0 leaves the margin fully transparent; raising it fills the margin with the Background color you pick. Processing happens in your browser, and the files never leave your device.

  • Runs entirely in your browser: no upload, no server, no signup.
  • An exact target canvas with the image centered, never scaled.
  • A picture larger than the canvas grows the canvas instead of being cropped.
  • Margin transparent at Opacity 0, or filled with the Background color.
  • For the same margin on all four sides use the add padding tool instead.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Set Canvas size in width and height, or choose one of the presets.
  3. Leave Opacity at 0 for a transparent margin, or raise it and pick Background.
  4. Download the result from the Download button as PNG, JPG, WebP or BMP.

Questions

What if my image is bigger than the canvas size?

The canvas grows to fit the picture instead of the picture being cropped or scaled down. Nothing is lost, but the output is then larger than the size you typed, and the result tile tells you it grew. Resize the image first if it must fit exactly.

Is the margin transparent or white?

Whichever you set. Opacity 0 leaves the added margin fully transparent, which is the useful setting for logos and cutouts; Opacity 100 fills it with the Background color, white by default.

Does fitting change the image quality?

No. The pixels are copied into the middle of the new canvas untouched, so the picture is as sharp as the source. Only the export format matters, and a lossy format applies its own compression when you save.

How is this different from adding padding?

Padding adds the same number of pixels on all four sides, while this tool takes an exact target canvas and centers the image inside it. For a plain transparent margin use add padding; for a fixed frame size such as 1080 by 1080, use this one.

Related tools