How to Get a PNG With a Transparent Background
Remove the background, preserve alpha transparency, and export a real transparent PNG with Canva, Photoshop, GIMP, code, or ScreenshotNeo.
Direct answer: remove or clear the image background, then export as PNG with transparency enabled. Choosing PNG alone does not remove an existing background. Both the image itself and the export settings must preserve transparency.
What makes a PNG transparent?
A transparent PNG has an alpha channel. Pixels can be fully opaque, partly transparent, or fully transparent. A white canvas behind a subject is still an opaque background, even if you save the file with a .png extension.
You therefore need two separate steps:
- Remove the background: delete it, mask it, or clear the canvas.
- Preserve transparency on export: choose PNG and enable the transparent-background option when the editor provides one.
Many editors display transparent areas as a gray checkerboard. That checkerboard is an editor display convention; it is not part of the exported image.
Choose the right workflow
| Starting point | Best workflow | What to check |
|---|---|---|
| Photo with a subject | Use an automatic background-removal tool, then refine the mask | Hair, shadows, glass, and small gaps around the subject |
| Logo or design canvas | Clear or hide the background layer before export | No white rectangle or hidden layer being flattened into the file |
| Existing PNG that looks opaque | Inspect the alpha channel and export settings | The file may be PNG but contain only opaque pixels |
| Automated website capture | Use a screenshot API that supports transparent backgrounds | Confirm the page background is transparent and the returned format is PNG |
Canva: remove a photo background and download a transparent PNG
Canva documents a background-removal workflow for photos. Upload or open the image, choose BG Remover, review the result, and refine it if necessary. Then download the design as PNG with Transparent background enabled. Canva describes the removal and refinement workflow on its Background Remover page.
- Open a design and add your photo.
- Select the photo and choose BG Remover.
- Inspect the edges. Correct missing parts of the subject or leftover background where the editor allows refinement.
- Choose Share, then Download.
- Set the file type to PNG.
- Turn on Transparent background.
- Download the file and open it in an editor that shows transparency.
Canva says transparent-background design downloads are available on Pro, Teams, Business, Education, and Nonprofits plans. Canva Docs cannot be downloaded with a transparent background. See the Canva Help Center instructions for the current plan and export details.
Canva edge checks
- Zoom in around hair, fur, leaves, cables, and other fine detail.
- Check that shadows are intentional. An automatic remover may erase a soft shadow or leave part of the original background.
- Place the result over both a light and a dark temporary background to reveal halos.
- Make sure you selected the image rather than the page background before running BG Remover.
Photoshop: remove the background with a layer mask
Photoshop provides a Remove Background quick action for a subject layer. Adobe recommends refining an imperfect result with the Brush tool on the generated layer mask, then saving as PNG to retain transparency. The documented workflow is in Adobe Photoshop Help and Adobe’s transparent-background guide.
- Open the image and select the subject layer.
- Run Remove Background.
- Inspect the mask at high zoom.
- Select the mask thumbnail and paint with white to restore subject pixels or black to hide leftover background.
- Use a soft, small brush around hair and other fine edges; use a harder brush for clean product edges.
- Choose File > Export or Save As, select PNG, and ensure transparency is preserved.
When Photoshop’s automatic result needs cleanup
Use a layer mask instead of erasing pixels permanently. Masks let you revise the cutout without damaging the original layer. Check for colored fringes caused by background spill, especially around hair, transparent objects, and reflective surfaces.
GIMP: preserve alpha transparency
GIMP supports PNG alpha transparency. The GIMP manual explains the general concept: add or use an alpha channel, remove or hide the background, and save in PNG so transparent pixels remain transparent. The cited documentation is for the older GIMP 2.2 manual, so menu names may differ in current releases; use it as a format reference: GIMP Saving Images with Transparency.
A typical GIMP process is:
- Open the image.
- Add an alpha channel to the layer if one is not already present.
- Select and delete the background, or add a layer mask and hide it.
- Check the checkerboard around the subject.
- Export as PNG and keep the option that preserves transparency.
Automate transparent website captures with ScreenshotNeo
If the “image” is a webpage or design rendered in a browser, removing a background manually is often the wrong layer of the stack. ScreenshotNeo is a website screenshot API with a transparent-background option, plus full-page capture, element capture, custom CSS and JavaScript, waiting rules, device presets, and PNG, JPEG, WebP, or PDF output. Use the transparent-background setting documented in the ScreenshotNeo API documentation for your request.
cURL
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python
import requests
r = requests.get(
"https://api.screenshotneo.com/v1/shot",
params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
timeout=90,
)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
Node.js
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`Screenshot failed: ${res.status}`);
const data = Buffer.from(await res.arrayBuffer());
await import('node:fs/promises').then(fs => fs.writeFile('shot.webp', data));
Why use an API for this job?
- Cookie and consent banners, newsletter popups, and chat widgets can be removed before capture.
- Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed; response headers identify the page verdict and billing state.
- The API supports custom CSS and JavaScript, selectors, waits, blocking rules, headers, cookies, user agents, timezone, geolocation, resizing, caching, signed links, asynchronous jobs, webhooks, and bulk capture.
- An MCP server provides
take_screenshot,get_page_info, andcapture_pdftools for Claude, Cursor, and other MCP clients.
Common reasons a PNG is still opaque
| Symptom | Cause | Fix |
|---|---|---|
| White rectangle around the subject | The original background was never removed | Remove or mask the background before exporting |
| Checkerboard appears in the editor but not elsewhere | The viewer may display transparency differently | Open the file in another image editor or place it over a contrasting background |
| Transparent export option is missing | The editor or plan may not support it | Check the product’s current export requirements; Canva documents plan limits |
| Jagged or haloed edges | Automatic selection included background pixels | Refine the mask with a brush and inspect at high zoom |
| Only part of the image is transparent | Some background pixels remain on another layer | Inspect every visible layer and hide or clear the background layer |
| API capture has a solid page color | The webpage itself paints a background | Use custom CSS or the API’s transparent-background option, then verify the returned PNG |
| Downloaded file is not a PNG | The export format or response extension was changed | Select PNG explicitly and inspect the file type before publishing |
Edge cases to check before publishing
- Transparent objects: glass, smoke, and hair often need manual mask work because their edges contain partial transparency.
- Shadows: decide whether the shadow is part of the subject. Removing it can make a product look cut out; keeping it can add unwanted background color.
- White artwork: a white logo is visible on dark backgrounds but can look missing on a white page. Test the actual destination background.
- Color fringing: background spill can remain around edges after removal. Refine the mask or use edge cleanup tools.
- Large canvases: transparent padding increases dimensions and file size. Crop excess empty space when the image will be placed in a layout.
- Animation: a static PNG cannot contain animation. Use an appropriate animated format when motion is required.
Performance, reliability, and cost notes
For a single manual cutout, the editor you already use is usually fastest. Automatic removal saves time on simple subjects, while careful mask refinement takes longer but gives better control on difficult edges. Exporting a large transparent canvas can create a larger file than a tightly cropped subject.
For repeated webpage captures, browser automation adds startup time and operational work: browser binaries, fonts, waits, cookie banners, failed navigations, and retries all need handling. ScreenshotNeo supports waiting rules, caching with a chosen TTL, asynchronous jobs with signed webhooks, and bulk capture of up to 100 URLs per call. Only clean shots are billed; failed loads, bot checks, blank pages, timeouts, and cache hits are not billed, and the response includes X-Page-Verdict and X-Billed headers.
ScreenshotNeo’s Free plan includes 1,000 shots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is available on every plan. Yearly billing gives two months free. Keep your API key on the server, set practical timeouts, and cache stable pages when repeated captures do not need fresh content.
Checklist: verify the file is truly transparent
- The background is removed, hidden, or cleared in the source.
- The editor shows transparency around the subject.
- PNG is selected as the export format.
- Transparent-background export is enabled where required.
- The result is checked over both light and dark backgrounds.
- Edges, shadows, and fine details are reviewed at high zoom.
- The final file is cropped to a useful canvas size.
FAQ
Does changing JPG to PNG make the background transparent?
No. Conversion changes the file format; it does not remove opaque pixels. Remove the background first, then export as PNG.
Can a PNG have a transparent background and a colored subject?
Yes. Transparency applies to the background pixels and edges; the subject can retain its normal colors.
Why does my transparent PNG look black in one application?
Some viewers use a black or another solid color to display transparent pixels. Check the file over a different background in an editor that supports alpha transparency.
Should I use a layer mask or erase the background?
A layer mask is safer because you can refine it later. Permanent deletion is acceptable when you have a backed-up original and no further editing is needed.
Can ScreenshotNeo return a transparent screenshot?
Yes. ScreenshotNeo includes transparent background capture. Configure that option in the API request as described in the documentation.
Or skip the browser setup
Use ScreenshotNeo when you need transparent webpage captures in a pipeline. Cookie banners, popups, and chat widgets are removed before the shot; bot checks, blank pages, and failed loads are never billed; an MCP server lets AI agents take screenshots; 1,000 screenshots a month are free with no card, and paid plans start at $5 for 3,000.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Create a free ScreenshotNeo account and start with 1,000 screenshots per month at no charge.


