Home › Image Tools › Photo Stacking

Photo Stacking

Combine a series of photos of the same scene into one. Stack night-sky frames into star trails, average a burst to wipe out noise, or take the median of tourist shots so people walking through disappear. Everything is computed in your browser.

Last updated:

0 frames
Add photos or load the demo frames, then press Stack photos.
Stacking mode

Leave off for star trails from a tripod; turn on for hand-held bursts.

Advertisement
Advertisement

How to use the Photo Stacking

  1. Add your frames: drop 2 or more photos of the same scene, taken from a tripod or as a steady burst. A demo set of 16 night-sky frames is loaded first.
  2. Choose a mode: Lighten for star trails, Mean for noise reduction, Median to remove moving people, or Comet trails for fading trails.
  3. Exclude bad frames by clicking their thumbnails, and turn on auto-align for hand-held shots.
  4. Press Stack photos and compare the result with a single frame.
  5. Download the stacked image as JPG or PNG.

Stacking modes explained

ModePer-pixel ruleUse it forFrames needed
LightenBrightest value of each channel across all framesStar trails, light painting, fireworks, car light trailsAs many as possible (50–300)
Comet trailsLighten, with the running result dimmed a few percent before each new frameStar trails that taper like comets50+
MeanSum of all frames ÷ number of framesNoise reduction, silky water, simulated long exposure4–64
MedianMiddle value after sorting all framesRemoving people, cars and birds; removing hot pixels and satellite trailsAt least 5, ideally 10–20
DarkenDarkest value across all framesRemoving headlights and bright moving objects from a scene5+

Why averaging reduces noise

Random noise is different in every frame while the real scene stays the same. When N frames are averaged, the signal stays the same but the standard deviation of the noise falls to σ ÷ √N, so the signal-to-noise ratio improves by a factor of √N. Four frames give the same noise improvement as a sensor with four times the light-gathering area; going from 16 to 64 frames halves the noise once more. Median stacking reduces noise a little less than the mean (for normally distributed noise it leaves about 25% more noise, roughly 1.25 σ ÷ √N) but completely ignores outliers such as a person, a plane or a hot pixel that appears in only a few frames.

Shooting tips

  • Star trails: wide lens, manual focus at infinity, ISO 400–1600, 15–30 s exposures shot back to back for 30 minutes or more. The Earth turns 15° per hour, so one hour of frames makes 15° arcs. Point at the celestial pole for circles.
  • Noise reduction: shoot a burst of 8–16 frames with identical settings; lock exposure and focus.
  • Removing tourists: use a tripod and shoot 15–20 frames 3–5 seconds apart, so people move to different spots between shots.
  • Exclude frames with airplane lights, a passing car's headlights or a bumped tripod by clicking their thumbnails before stacking.
  • Use the 500 Rule Astrophotography Calculator to pick an exposure length that keeps stars as points in each single frame.

Frequently asked questions

What is photo stacking?

Photo stacking combines several photos of the same scene pixel by pixel. Depending on the rule used, it keeps the brightest value (lighten), the darkest (darken), the average (mean) or the middle value (median) of every pixel across all frames. Each rule creates a different effect, from star trails to noise-free images.

How do I make star trails from multiple photos?

Shoot many consecutive exposures from a tripod, for example 100 frames of 20 to 30 seconds with no gap between them. Load them here and choose Lighten. Each star is brighter than the dark sky around it, so keeping the brightest value of every pixel draws its path across the sky as a continuous arc.

How much does mean stacking reduce noise?

Random sensor noise drops by the square root of the number of frames. Averaging 4 frames halves the noise, 16 frames cuts it to a quarter, and 64 frames to an eighth. The scene must not move between frames, so use a tripod or turn on auto-align.

How does median stacking remove people from photos?

If a person stands on a given spot in fewer than half of the frames, the middle value of that pixel comes from the frames where the background is visible, so the person disappears. Take 10 to 20 shots a few seconds apart from a tripod. People who stand still in most frames will remain.

Do my photos need to be aligned?

Yes, stacking assumes every frame shows the scene in the same position. Tripod shots are already aligned. For hand-held bursts turn on auto-align, which corrects small shifts up and down and left and right, but not rotation or zoom. For star trails leave it off, because the stars are supposed to move.

Why are there gaps in my star trails?

Gaps appear when there is a pause between exposures. Use continuous shooting or an intervalometer with an interval just one second longer than the exposure time. The Comet trails mode can also make small gaps less noticeable.

Are my photos uploaded?

No. All frames are read and stacked with JavaScript on your device, so even large sets stay private and nothing is sent to a server.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Image Noise RemoverRemove grain and color noise from photos with median, bilateral or non-local means filters.Remove Object from PhotoBrush over unwanted objects, people or text and fill the area with matching background.Blend Two ImagesOverlay two photos with opacity, 16 blend modes, fades and free positioning, then download.GIF MakerTurn videos and images into GIFs, trim and compress.Background RemoverRemove image backgrounds automatically with AI.Photo EnhancerOne-click auto enhance: fix exposure, contrast, color cast and sharpness, one photo or a batch.Make Image TransparentRemove a white or solid-color background and save a transparent PNG, right in your browser.Photo to CartoonTurn photos into cartoons with smooth colors and bold outlines. Free, private, no upload.Add Watermark to PhotoAdd a text or logo watermark to one or many photos at once.Blur Image & Face Pixelate ToolBlur or pixelate faces, plates and backgrounds in a photo.Pixelate Image & Pixel Art ConverterTurn any picture into pixel art with retro palettes and dithering.Add Text to ImageAdd styled text layers with outline and shadow to any photo, then downloadRound Corners ImageGive any picture rounded, circle or squircle corners and save a transparent PNG.Grayscale Image ConverterTurn color photos into black and white with luma, luminance or average methods and sepia.Photo FiltersApply 27 one-click photo filters like Vintage, Noir and Teal & Orange with an intensity slider.Photo EditorEdit photos online: brightness, contrast, saturation, crop, rotate, flip and filters with undo.Image SharpenerSharpen soft or slightly blurry photos with a real unsharp mask and before/after view.Invert Image ColorsTurn any picture into a color negative, with R/G/B channel toggles and an intensity slider.Screenshot BeautifierPut screenshots on gradient backgrounds with padding, rounded corners, shadow and a browser frame.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.EXIF RemoverRemove EXIF, GPS location and other metadata from JPG, PNG and WEBP photos.Online PaintDraw and paint in your browser: brushes, shapes, fill bucket, text, undo and PNG export.Photo to SketchTurn any photo into a pencil, charcoal or color sketch in your browser and download it.GIF Frame ExtractorSplit an animated GIF into PNG frames with delays, a sprite sheet and ZIP download.Photo Frame MakerPut photos in polaroid, film strip, gallery, rounded or shadow frames with a caption.Duotone GeneratorTurn any photo into a bold two-color duotone image with presets, custom colors and intensity.Glitch Image EffectAdd RGB split, scanlines, slice shifts and noise to a photo for a digital glitch look.Add Date Stamp to PhotoStamp the EXIF or a custom date on photos in a retro orange camera font. Batch and ZIP download.Add Drop Shadow to ImageAdd a drop, long or reflection shadow to PNGs and photos and save a transparent PNG.Add Text to GIFPut captions on animated GIFs with outline, position and frame range, then download.Blur Photo BackgroundBlur the background of any photo for a portrait-mode look. AI subject detection, no upload.Brick Mosaic GeneratorTurn a photo into a toy-brick stud mosaic with a parts list and printable build guide PDF.Online Document ScannerTurn photos of paper into clean scans: auto edge detection, perspective fix, multi-page PDF.Add Film Grain to PhotoAdd realistic analog film grain, light leaks, fade and vignette to any photo, then download.GIF Speed ChangerSpeed up or slow down an animated GIF, or set each frame's delay, without losing quality.Halftone GeneratorTurn images into mono or CMYK halftone dots and lines; export PNG or SVG.Image Dithering ToolDither photos with Floyd-Steinberg, Atkinson or Bayer in 1-bit, Game Boy, CGA and retro palettes.Perspective CorrectionDrag 4 corners to straighten skewed photos of signs, screens and whiteboards, then download.Signature Background RemoverTurn a signature photo or scan into a clean transparent PNG: threshold, ink color, auto-crop.Skin SmoothingSmooth skin in portraits with face-aware retouching that keeps eyes, lips and skin texture sharp.Straighten ImageFix a tilted photo: rotate by any angle with a grid, auto-crop the corners or level the horizon.AI Style TransferRepaint your photo in the style of any painting or pattern with AI, right in your browser.SVG EditorEdit SVG files visually: move shapes, change colors, text and strokes, add shapes, edit the code.Symmetry Drawing ToolDraw mandalas and kaleidoscope art with radial and mirror symmetry, glow brushes and PNG export.Virtual Background MakerDesign 1920×1080 video call backgrounds with your name, title, logo, blur and branded templates.EXIF EditorEdit photo EXIF and IPTC: date taken, camera, GPS location, copyright and caption, in batch.Face Symmetry TestUpload a face photo to see left-left and right-right mirror composites and a symmetry score.Sports Tactics BoardDraw plays on basketball, soccer, football and hockey diagrams with players, arrows and animated frames.Add Outline to PNGAdd a stroke outline around transparent PNG cutouts: width, color, softness and double borders.Dehaze ImageRemove haze, fog and smog from photos with the dark channel prior. Free, private, in your browser.HDR Photo EffectGive any single photo an HDR look with local tone mapping, detail boost and a strength slider.Low Light Photo EnhancerBrighten dark and night photos with an adaptive tone curve plus noise reduction.Photo Mosaic MakerBuild a big picture out of many small photos by color matching, then export a high-res PNG.Photo to Oil PaintingTurn a photo into an oil painting with brush size, detail, impasto and canvas texture.Red Eye RemoverClick on red eyes to fix them automatically: adjustable threshold, undo, download the photo.Tilt Shift EffectMake photos look like miniature models with an adjustable tilt-shift focus band and blur.Colorize Black and White PhotoAdd natural color to old black and white photos with AI that runs in your browser. No upload.Draw on ImageAnnotate photos and screenshots with arrows, boxes, text, highlighter and numbered steps.Photo to AnimeTurn selfies and landscapes into anime-style art with AI in your browser. Free, no upload.Face Shape DetectorUpload a selfie to find your face shape on-device, with hairstyle and glasses tips.Add Background to Transparent PNGFill the transparent areas of a PNG with a color, gradient or photo, plus padding and shadow.Add Stickers to PhotoPut emoji and cute stickers on your photos; scale, rotate, flip and layer them, then save PNG.Color Splash EffectKeep one color, or a brushed area, in color and turn the rest of the photo black and white.Old Photo Face RestorerRestore blurry and damaged faces in old photos with AI (GFPGAN) in your browser. Free, no upload.Image Opacity ChangerMake an image semi-transparent with an opacity slider or fade, and save a transparent PNG.Photo to WatercolorTurn a photo into a watercolor painting with soft washes, color bleed, wet edges and paper texture.Product Photo White BackgroundRemove the background and center products on pure white at 2000 x 2000 for marketplaces. Batch.Redact ImageBlack out or pixelate private info in screenshots; burned in, metadata stripped, PNG download.
See all 69 Photo Effects & Editing →