Free · processed in your browser · free account to download
Put Any Photo Subject on a Black Background
Drop a portrait, product or object photo into the box to cut out the subject and set it against pure black (#000000). Compare the cutout with the original and download a clean JPG. Your image is not uploaded.
How do I put a black background behind a photo?
Drop a JPG, PNG, WebP, AVIF or HEIC file up to 30 MB into the box above. Your browser isolates the subject and composites it over solid black (#000000). Use the compare slider to check the edges; the full-size file is built at 95% quality on its own, ready to download.
How it works
01
Add the photo
Drag a JPG, PNG, WebP, AVIF or HEIC (.heif) image up to 30 MB into the box, or click to pick one from your device.
02
Wait for the cutout
Your browser masks the subject on your device, so the photo is not uploaded. The first run takes a few seconds longer.
03
Check the dark backdrop
Drag the compare slider across the preview (up to 1200 px on the long side) to see how hair, shoulders and product edges sit against #000000.
04
Download the black-background JPG
The full-resolution image (capped at 4096 px on the long side) is rendered at 95% quality once the preview is ready; click Download to save your -black-bg.jpg file. Downloading needs a free HeyDreaming account.
When a solid black backdrop works best
Shooting a true black background in a room is tricky: any stray light turns a black cloth into dark gray and shows folds or dust. Replacing the backdrop digitally fills every pixel behind the subject with RGB 0, 0, 0 (#000000), which makes metallic watches, jewelry, glass bottles, neon signs, stage portraits and dark-mode app graphics stand out without background clutter.
Because dark backdrops make bright edge fringes easy to spot, photos taken against a neutral or dim room blend into #000000 more naturally than photos shot in front of a bright sunlit window.
How the mask and composite work
Your browser analyses a 1024×1024 working copy of the photo to produce an alpha mask, which is then applied to the full-size picture. Alpha values at or below 8% are pushed to 0, values at or above 92% are pushed to 255, and values in between are stretched so the transition edge stays smooth without leaving a foggy background.
The live compare slider uses a preview copy up to 1200 px on the long side. The full mask is then applied to the photo at full resolution (up to 4096 px on the long side), drawn over a #000000 canvas, and saved as an 8-bit sRGB JPG at 95% quality.
What changes in the file and honest limits
Large flat areas of pure black compress very efficiently in JPG, so replacing a busy room with #000000 often shrinks the file size in bytes even at 95% quality. The tool prints the pixel dimensions and the before-and-after byte change on the result row before you download.
Photos larger than 4096 px on the long side are scaled down to 4096 px first. Camera metadata (EXIF, date, GPS) and embedded color profiles are stripped, and wide-gamut Display P3 colors are converted to standard sRGB. Fine blonde hair or sheer fabric shot against a bright white wall can keep a thin light rim where background light mixed into the edge pixels.
What this tool does not do
It does not relight the subject to match a dark studio, add a manual brush to clean up bright edge halos, or preserve EXIF metadata and wide-gamut color profiles.
Keep exploring
Related free tools
Questions
Black Background: FAQ
Is my photo uploaded to a server?
No. Your image is not uploaded and stays on your device; the cutout is made in your browser tab. Usage events such as tool runs and file sizes are logged in Google Analytics, never your photo.
Is the background pure #000000 black?
Yes. The canvas is filled with #000000 before your cut-out subject is drawn on top, and no shadow is needed on black. Any pixel where the subject mask is 0 becomes pure black.
Why do I see a thin light edge around hair on a black background?
When a photo is taken in front of a bright wall or sky, the edge pixels of hair and clothing contain a mix of subject color and bright background light. Because the tool cuts out the shape without recoloring the pixels, that bright mix is noticeable against #000000.
Which file formats can I use?
You can drop in a JPG, PNG, WebP, AVIF or HEIC (.heif) file up to 30 MB. The finished image is saved as a JPG at 95% quality by default, with -black-bg added to the file name; pick PNG, WebP, TIFF or PDF in the Format menu at download instead if you need one.
What happens if my photo is larger than 4096 pixels?
Images with a long side above 4096 px are scaled down to 4096 px before the mask is computed, and the page notes the resize under the output.
Can I choose dark gray or navy instead of pure black?
This page always uses #000000. If you want charcoal gray, navy, or any custom hex shade, use the change background color tool, or use the batch editor to apply a custom background color to a folder of photos at once.