ImgVX AI

How to Replace the Sky in a Photo Online, Free

To replace the sky in a photo for free, open the Sky Replacer, drop in a photo with sky along the top, choose a blue, sunset, blue-hour, starry or overcast sky (or upload your own sky photo) and click Replace sky. The AI finds the sky in your browser in a few seconds, the photo is never uploaded, and the result downloads at full size. Below is what it did to three real test photos, including the two flaws to check before you post the result.

A coastal photo of a lighthouse on a cliff shown four times: the original with a light blue sky, then with a new blue sky with soft clouds, a pink and orange sunset, and a dark starry night sky.
Real output of the Sky Replacer on a 360 × 492 test photo. The land takes on a little of each new sky’s colour.

The short answer

  • Tool: Sky Replacer. Free, no sign-up, no watermark, no daily limit; the photo stays on your device.
  • Speed, measured: 21 seconds the first time (the AI model downloads once), then under 6 seconds per sky on our test PC.
  • Works best on: landscapes, buildings and streets with open sky along the top of the frame.
  • Check two things: a thin band of far sea or haze at the horizon can be swapped for sky, and wires or roof edges can keep a pale outline.
  • Not the right tool when you need to drag the sky edge by hand, for skies seen only through a window, or to hide something in a property photo.

How do you replace the sky in a photo online?

  1. Open the Sky Replacer and drop in your photo. JPEG, PNG, WebP and iPhone HEIC files all open. Pick a photo where the sky reaches the top edge of the frame.
  2. Choose the new sky. Blue sky with clouds, Sunset, Blue hour, Starry night, Soft overcast, or A sky photo of my own.
  3. Leave “Match the light on the land” on Yes for the built-in skies. It lays a gentle wash of the new sky’s colour over the rest of the photo, so a sunset sky does not sit above grey noon light.
  4. Click Replace sky. The first run downloads the depth model once (about 50 MB, or about 27 MB on devices without WebGPU) and keeps it in the browser’s cache; later runs start straight away.
  5. Check the result at full size, then download. Look along the horizon and around wires, branches and roof lines (see the edge problems). If it is close but not right, try a different sky: a paler one hides small mistakes better. “Keep editing this result” sends it on to another tool.

The download is a JPEG with the same width and height as your photo. Your original file is not changed.

Which new sky should you choose?

The five built-in skies are painted fresh for each photo at its own size, so they are never blurry from being stretched, and each one comes with its own colour for the “Match the light” wash.

SkyWhat it looks likeWash on the landGood forAvoid when
Blue sky with cloudsDeep blue at the top fading to pale near the horizon, soft white cloudsFaint warm creamHouses, travel photos, any dull grey dayThe scene has no shadows at all and looks flat; add contrast with Image Adjust too
SunsetPurple to pink to orange, with tinted cloudsOrangeLandscapes and sea viewsStrong midday shadows point straight down; it will look pasted on
Blue hourDark navy to blue to a warm glow at the horizonCool blueBuildings with lights on, city streetsThe land is in bright sun
Starry nightNear black to navy with scattered white starsDark navyCreative edits, postersYou want the result to look like a real night photo; the land stays day-bright under it
Soft overcastEven grey-white with faint cloudGreyToning down a blown-out white sky, a calmer lookYou want colour
Your own sky photoWhatever you uploadNoneMatching a real sky from the same tripThe sky photo is a different time of day or lit from the other side

The simple rule photographers use applies here: the light in the sky should agree with the light on the land. If shadows in the photo fall to the left, a sunset glowing on the left looks wrong. If the photo was taken on a grey day with no shadows, a bright blue sky looks a little odd too; brightening the land afterwards with Image Adjust or giving it directional light with the Photo Relighter closes the gap.

How does the tool decide what is sky?

Knowing the rule tells you which photos will work before you try. The Sky Replacer runs Depth Anything V2, an AI model that estimates how far away each part of a photo is (the model and the method are described in the Depth Anything V2 paper; the small model the tool uses is published under the Apache-2.0 licence on Hugging Face). A pixel counts as sky only when all three of these are true:

  1. It is the farthest thing in the photo. Depth is relative, so the tool takes the pixels the model rates as the most distant: within 2.5% of the far end of the photo’s depth range.
  2. It is bright or blue. Its brightness is above a low threshold, or it is clearly bluer than it is red. This stops a distant dark hill from being taken for sky.
  3. It is connected to the top edge. The tool starts from the top row and spreads to every touching pixel that passed the first two tests.

If the area found is less than 3% of the photo, the tool stops with the message “No sky was found along the top of this photo.” Otherwise the area becomes a mask, softened by about one pixel for every 700 pixels of photo width so that leaves and branches blend in, and the new sky is painted into it. You can see the same depth estimate as a picture with the AI Depth Map tool; how to make a depth map from a photo explains how to read one. Where the depth map shows the sky as the darkest, flattest region, the sky replacement will be clean.

Two things follow from the rule. Sky seen through a window, an arch or a gap that does not reach the top edge is left alone. And anything that the model also rates as very far away, bright and joined to the sky, such as a hazy horizon or distant sea, can be replaced along with it.

What happened when we replaced the sky in three real photos?

We ran the live tool on 14 November 2026 in Microsoft Edge on a Windows PC, with three 360 × 492 pixel photos: a lighthouse on a sea cliff, a black and white copy of the same photo, and a narrow street with a tram. We added a fourth file with no sky on purpose.

Four panels: a black and white lighthouse photo, the same photo with a blue sky while the land stays grey, a narrow street with a yellow tram under a pale sky, and the same street with a deep blue sky between the roofs.
A grey photo gets a blue sky but stays grey below it. In a street, only the sky that connects to the top edge is replaced.
PhotoNew skyTimeOutputWhat we saw
Lighthouse, colourBlue sky with clouds22.2 s (first run, model download included)360 × 492 JPEG, 68.3 KBClean around the lighthouse and cliff; a band of far sea at the horizon became sky
Lighthouse, colourSunset5.7 s66.8 KBLand warmed to match; same horizon band
Lighthouse, colourStarry night5.7 s57.9 KBConvincing sky, but the land stays daylit
Lighthouse, colourSoft overcast5.8 s62.3 KBFlat white-grey sky; the photo looks duller, as expected
Lighthouse, black and whiteBlue sky with clouds21.0 s (new browser profile)61.4 KBBlue sky above grey land; the tool does not add colour to the land
Street with tramBlue sky with clouds22.0 s (new browser profile)57.9 KBSky between the roofs replaced; pale halo along the tram wires and roof edges
Puppy cut-out, transparent backgroundBlue sky with cloudsStoppedNone“No sky was found along the top of this photo.”

The pattern is clear. On an open landscape the sky is found cleanly and the tool is quick once the model is cached; the time a run takes depends on your device and the photo’s size, so treat our seconds as an example rather than a promise. A black and white photo needs colour first: run it through the Photo Colorizer, then replace the sky. And the busier the edge between sky and land, the more there is to check.

Why does the horizon move, and where do the haloes come from?

Close-ups before and after. Top: the horizon over the sea, where a thin band of distant water was replaced by sky after the edit. Bottom: overhead tram wires and roof edges, which show a pale outline of the old sky after the edit.
The two flaws to check for, enlarged from the real results above: the far sea at the horizon, and a pale halo along wires and roof edges.

A band of far sea or haze becomes sky

On the lighthouse photo the sea horizon sat about 200 pixels from the top. After every replacement, the new sky reached about 25 pixels lower on the right-hand side, roughly 5% of the photo’s height, so the far strip of sea was painted over and the horizon now slopes slightly. The depth model rates that distant water as just as far away as the sky, and it is bright and blue, so it passes all three tests.

What to do about it:

A pale outline around wires, twigs and roof lines

On the street photo the tram wires kept a white outline and the roof edges a pale rim. The depth model estimates distance in soft patches rather than to the exact pixel, so the sky right next to a roof, or around a wire one or two pixels wide, is rated slightly nearer than open sky and fails the “farthest” test; those pixels keep the old sky. Photos longer than 1,024 pixels are measured on a smaller copy, and the mask is then scaled up and softened. The softening is deliberate: a hard edge would look cut out with scissors.

How do you use your own sky photo?

  1. Choose A sky photo of my own under New sky. A Sky photo box appears.
  2. Add a photo of sky only, taken in landscape shape. The tool crops it from the centre to cover the top of your photo down to the lowest point the old sky reached, and at least the top 30% of the frame.
  3. Click Replace sky and check the light. “Match the light on the land” has no colour to add for an uploaded sky, so the land keeps its own colour; warm or cool it afterwards with Image Adjust if it does not match.

The best sky photos are your own from the same place and the same time of day: the sun is on the same side and the haze at the horizon matches. A sky with the sun in it does not work well unless the land in your photo is lit from that side. Use a sky picture you took or are allowed to use; a sky downloaded from a search engine is usually someone else’s photo.

Should you use a browser tool, another online tool or Photoshop?

NeedBest choiceWhy
A quick new sky on a landscape, house or travel photoSky ReplacerOne click, free, no account, the photo stays on your device
A private or work photo you cannot uploadSky ReplacerThe AI runs in the browser; nothing is sent to a server
A perfectly straight sea horizon, fine control of the edgePhotoshop Sky ReplacementShift Edge and Fade Edge sliders, layer masks you can paint
A large print from a small sky-replaced fileReplace first, then the Image UpscalerThe upscaler adds pixels after the sky is in place
A whole new background behind a person or productBackground ReplacerIt cuts out the subject, not just the sky
A dark or underexposed photo with a dull skyLow Light & Dehaze first, then the Sky ReplacerFix the land’s exposure before matching a sky to it; see how to brighten a dark photo

Other free online sky tools usually work on a server. That is not wrong, but read their limits: Upsampler, for example, states on its page that output is about one megapixel and that free use has a daily allowance, and Magic Eraser says its free use is limited per day and that you cannot pick the sky. The Sky Replacer has none of these limits, and the trade-off is that the first run downloads the model to your device.

When is replacing a sky not honest?

A new sky is a creative edit, and most of the time nobody minds. It becomes a problem when the photo is presented as a record of something:

Keep the original file in every case, so you can show what the camera recorded.

Troubleshooting

What you seeCauseFix
“No sky was found along the top of this photo.”Less than 3% of the photo is far, bright sky touching the top edgeUse a wider shot with sky along the top; for a person or object, use the Background Replacer
The far sea or haze at the horizon was replaced tooThe model rates them as far away as the sky, and they are brightPick Blue sky or Soft overcast, crop, or use an editor with an edge slider
Pale outline around wires, twigs or roofsThe sky right next to thin or near objects is rated slightly nearer and keeps the old colourPick a sky close in brightness to the old one; erase wires first with the Object Eraser
Sky through a window or arch was not changedOnly sky connected to the top edge is replacedExpected; there is no way to add a second sky area
Land is grey under a blue skyThe photo is black and whiteColour it first with the Photo Colorizer
The new sky looks pasted onThe light on the land does not match the skyKeep Match the light on Yes, try Blue hour or Overcast, or relight with the Photo Relighter
The first run is slowThe depth model downloads once (about 50 MB)Wait for it; later runs use the cached copy

The free AI image editing guide lists every other AI tool on the site that runs on your device the same way.

Questions

How do I replace the sky in a photo for free?

Open the free Sky Replacer, drop in a photo with sky along the top, pick a new sky (blue with clouds, sunset, blue hour, starry night, soft overcast or a sky photo of your own) and click Replace sky. The AI runs in your browser, so the photo is not uploaded, and the result downloads as a JPEG at the same size as the original.

Can I replace the sky without Photoshop?

Yes. A browser tool such as the ImgVX AI Sky Replacer (imgvx.com) finds the sky and swaps it in one click, with no install and no account. Photoshop gives more control, such as sliders to move and soften the sky edge, which matters for a sea horizon or fine wires; for a quick blue sky on a house or landscape a browser tool is enough.

Why does it say no sky was found?

The Sky Replacer only replaces sky that touches the top edge of the photo and covers at least 3% of it. A close-up, a portrait against a wall, a cut-out with a transparent background or sky seen only through a window gives the message "No sky was found along the top of this photo." Use a wider shot, or the Background Replacer if you want to swap a whole background instead.

Can I use my own sky photo?

Yes. Choose "A sky photo of my own" and add the picture in the box that appears. It is cropped from the centre to fill the sky area, so use a landscape-shaped sky photo taken at a similar time of day. The "Match the light on the land" option has no colour to add for your own photo, so adjust the land afterwards with Image Adjust if it looks too bright or too cool.

Does replacing the sky lower the quality of the photo?

The output has the same width and height as the original and is saved as a high-quality JPEG. The land is copied from your photo, with a gentle colour wash if "Match the light" is on. The new sky is soft, so it can look smooth next to a sharp foreground at large sizes.

Is it OK to replace the sky in a real estate photo?

Usually yes, if you label it and do not hide anything. In California, AB 723 requires a statement that an advertised image was altered and access to the original; elsewhere, many listing sites expect a label. Write "Sky digitally enhanced" and never use a new sky to hide a pylon, a mast or a building. Browse: all free image tools.

Why is there a pale outline around trees, wires or roofs?

The depth model estimates distance in soft patches rather than to the exact pixel, so the sky right next to a roof or around a thin wire is rated slightly nearer than open sky and is not replaced. Those pixels keep a trace of the old sky. It is least visible when the old sky was pale and the new one is similar, so blue sky or soft overcast hides it better than night.