On Android, you can add a background to a PNG in any modern browser by using a local tool that reads the transparent file, composites every pixel over one solid color, and exports an opaque PNG at the exact original pixel size. Because the tool runs entirely in the current tab, the source PNG is never uploaded; there is no server round-trip, no sign-up flow, and no install step. Android users frequently search for this task because logos, signatures, stickers, product cutouts, and design exports often arrive with transparency baked in, while the destination (a marketplace listing, an email attachment, a profile photo, or a slide deck) expects a normal opaque image. The tool accepts files up to 25 MiB and is capped at 16 megapixels with no edge longer than 12,000 pixels, which covers the vast majority of phone-sized PNGs. The output keeps the original filename with "-background" appended, so the transparent source and the flattened copy stay easy to tell apart inside the gallery or Files app. You need only Chrome, Firefox, Samsung Internet, Brave, or any browser with a working file picker and a color control.

add background to png on android
Add a Solid Background to a PNG on Android

Why a Browser Tool Is Enough on Android

Most Android users reach for the Play Store by reflex, and many real photo-editing tasks genuinely do need a native engine. Replacing PNG transparency with one solid color is not one of them. The browser tool reads the PNG into an in-memory canvas, walks each pixel, applies the standard source-over formula, and writes a new PNG. Every step is built into the browser already, so there is nothing extra to install.

Skipping an install also lets you skip the rest of the Android-app tax: the storage cost, the permission prompts, the forced sign-up, the ads between actions, and the privacy surface of an opaque upload pipeline. The tool's input contract is narrow on purpose: PNG only, because that is the format that carries an alpha channel in a predictable way across browsers and apps. A narrow contract keeps the output predictable, since the browser decodes one PNG, composites every pixel over one selected color, and exports one PNG.

ConcernBrowser toolTypical Android app
Install sizeNone20 to 150 MB on average
Sign-upNot requiredOften required to save or share
In-app adsNoneFrequent between actions
Source file uploadNever leaves the deviceOften uploaded to remote servers
Works after first page loadYes, in the current tabDepends on the app
Updates and permissionsNoneRecurring permission prompts

For most one-off "flatten this transparent PNG" tasks on a phone, the browser path is faster from launch to download than the Play Store install-to-open path of even a small app.

Adding a Background to a PNG on Android: The Steps

The whole flow takes roughly a minute on a typical phone once the page is loaded. You do not need to grant any permission beyond what the browser already asks for, and the source PNG is never uploaded. Open the Add Background to PNG tool in your browser of choice and follow the steps below.

  1. Open Chrome, Firefox, Samsung Internet, or Brave on the Android device and navigate to the Add Background to PNG page.
  2. Tap the file picker and select a transparent or partly transparent PNG from the gallery, Files app, or a downloaded file. The tool accepts PNGs up to 25 MiB.
  3. Tap the color swatch to open the browser color control. Type the six-digit HEX value of the destination color, for example #FFFFFF for marketplaces or #000000 for dark-mode apps.
  4. Tap "Add background." The browser will decode the PNG, composite every pixel over the chosen color, and render the result on the same canvas with the same dimensions.
  5. Inspect the opaque preview on the page. The reported width, height, and file size reflect the exact output, not the source.
  6. Tap the download button. The file saves to your default download folder with "-background" appended to the filename. The original transparent PNG is untouched and stays in place.

On most Android devices the new file lands in Files > Downloads or in the browser's own download manager. Chrome and Firefox both post a download completion notification to the shade, so a quick swipe down will surface it without hunting through folders.

How Soft Edges and Shadows Are Blended

Flattening a PNG is not the same as filling the transparent pixels with a single color. Anti-aliased text, soft shadows, hair, rounded icons, and feathered cutouts all carry partly transparent pixels along their edges. If those were simply overwritten with the chosen background, the edge would look fine in isolation but would suddenly clash whenever the new PNG was placed on a slightly different backdrop. Instead, the tool blends per the source-over rule defined by the W3C: source RGB multiplied by source alpha, plus background RGB multiplied by (1 minus source alpha), with the output alpha then set to 255, fully opaque. This is standard source-over compositing with an opaque backdrop, as documented in the W3C Compositing and Blending specification.

Three edge cases are worth naming: a fully opaque source pixel stays exactly the same, a fully transparent pixel becomes exactly the chosen background color, and a partly transparent pixel becomes a weighted blend of the two. The blended result is rounded to ordinary 8-bit integer channels for the exported PNG.

A worked example: a pixel with source RGB (255, 0, 0) at alpha 0.5 over a chosen background of (0, 0, 255) is composited as 0.5 × (255, 0, 0) + 0.5 × (0, 0, 255) = (127.5, 0, 127.5). Rounded to 8-bit channels that is (128, 0, 128), which is purple. A half-transparent red edge over blue therefore reads as a purple blend, not a hard red line and not a hard blue line. The implementation is checked against external golden cases covering zero alpha, full alpha, values immediately above and below one half, representative channel mixtures, and the lowest nonzero alpha step.

Choosing the Right Background Color for the Destination

The whole point of flattening is to make the PNG match a destination that does not support transparency. That means the chosen color must match that destination, not be guessed from a checkerboard preview. White (#FFFFFF) is the most common safe choice; marketplaces, document bodies, plain email clients, and most slide templates accept it. But social graphics often need a brand color, dark-mode apps need a near-black tone like #000000 or #1A1A1A, and print layouts frequently demand an exact spot color. The browser color input supplies a six-digit hexadecimal value, and the logic validates that value before processing.

If you do not know the destination color, sample it from the real surface rather than guess from your gallery preview. A simple way on Android is to take a screenshot of the destination and use a color picker on a flat region of it. The result is only as accurate as the chosen HEX, so a few seconds of color picking up front usually saves a redownload later.

After the file is saved, open the new PNG in the Android gallery and inspect soft edges at normal viewing size. If a halo shows up against the real destination color, re-run the tool with a HEX that matches that surface more precisely. The new file just overwrites the previous one because nothing is saved server-side, so iterating on the color is cheap.

What the Output PNG Actually Contains

The output PNG keeps the exact source width and height, encoded as a normal 8-bit-per-channel PNG with the alpha channel set to 255 everywhere. The canvas is not cropped, resized, sharpened, denoised, or compressed toward a target file size; only flattened. Because opaque pixels do not benefit from PNG's transparency compression, the file size often grows a little compared with the original, and that is expected rather than a bug. The downloaded filename adds "-background" so it remains easy to distinguish from the transparent source.

PropertySource PNGOutput PNG
Width and height in pixelsOriginalIdentical to the original
Color depth8-bit per channel8-bit per channel
Alpha channel valueMixed, including 0Set to 255 (fully opaque)
Fully opaque source pixelsOriginal colorUnchanged
Fully transparent pixelsInvisibleEqual to the chosen background color
Partly transparent pixelsBlended with whatever was behindComposited over the chosen color, then opaque
FilenameOriginal nameOriginal name plus "-background"

The original PNG itself is never modified. The download is a separate file, so you can keep the transparent master in the gallery and the flattened copy wherever the destination needs it.

After the Background: Resizing or Converting for the Final Destination

Some destinations need a different pixel size than the source. For those cases, add the background first and then resize the opaque PNG in a separate step using Image Resizer. Doing the operations in that order keeps each result understandable and prevents a background change from silently altering geometry. The tool is designed for the common moment when a logo, product cutout, signature, icon, or exported design has transparency but the destination requires a normal solid background, so leaving the dimensions alone by default is intentional.

If the destination needs JPEG instead of PNG, download the opaque PNG and convert it with PNG To JPG. That separation keeps lossy quality choices from mixing with transparency flattening. For private product shots, internal logos, or any draft that should not leave the device, the same rules apply; every step runs in the current tab.

Combine these tools only when the workflow genuinely needs them. For most "make this transparent PNG sit on a normal background" tasks on an Android phone, the Add Background to PNG tool alone is enough to produce a usable, opaque, correctly sized result.

For a deeper look, see Black and White Photo Converter on Android (Browser).

For a deeper look, see Add a Border to an Image in Word: A Solid Approach.