How to make a before and after GIF
An animation shows the change happen instead of asking the viewer to compare two pictures. It works best with a matched pair: the same framing, so only the subject changes as the divider moves.
- Choose your before photo and your after photo, or try the sample photos.
- Pick a transition. Wipe uncovers the after photo across the before photo; Split moves a divider between them; Crossfade blends one into the other.
- Choose the direction and motion. Back and forth sweeps over and returns; One way plays the change, then starts again.
- Set the transition and pause lengths. A slower transition is easier to follow; a pause at each end lets viewers see each version whole.
- Pick a width, edit the labels, and watch the live preview.
- Download a GIF, or a video for platforms that prefer video.
GIF or video?
A GIF plays almost anywhere an image can appear — websites, forums, chat apps, documentation, and most email clients — and loops without a play button. GIFs are limited to 256 colours per frame, so smooth gradients can band, and file sizes grow quickly with width and length.
A video is much smaller for the same size and keeps full colour, and many social apps, including Instagram, accept video but not GIF files for posts. The video download records the animation in your browser: recent versions of Chrome, Edge, and Safari can record MP4, while Firefox records WebM. If a site will not accept WebM, convert it or use a browser that records MP4.
| Where it will appear | Format | Suggested width |
|---|---|---|
| Email newsletter or chat | GIF | 480 px |
| Website, blog, or portfolio | GIF, or an embedded slider | 640–800 px |
| Instagram, TikTok, or Facebook post | Video | 1080 px |
| Slides and presentations | Video, or GIF for short loops | 1080 px |
Make a smaller GIF
Every frame of a GIF is stored as a separate image, so the transition length and width have the biggest effect on file size. The pauses at each end cost almost nothing, because a pause is a single frame displayed for longer.
Photo grain makes a big difference too. The example animation above, made from a grainy 1920s photograph at 480 pixels wide, is about 3 MB as a GIF for a single loop. Recorded as an MP4 video, two loops of the same animation take about 340 KB.
- Choose a smaller width — halving the width roughly quarters each frame.
- Shorten the transition, or choose One way instead of Back and forth.
- Wipe and Split usually compress better than Crossfade, where every pixel changes in every frame.
- Keep photos simple: noise, grain, and detailed textures produce larger files.
What makes a good before and after animation
Line up the two photos first. When the framing matches, the moving divider reveals the change; when it does not, the whole picture appears to jump. Use the same viewpoint, lens, and light, and crop both photos the same way.
Keep the motion calm. Fast flashing between images is uncomfortable for some viewers and can be harmful for people with photosensitive conditions, so avoid very short transitions on high-contrast images. Pair the animation with a caption that explains what changed, and keep a still image for places where motion is not appropriate.
Common questions
Is the before and after GIF maker free?
Yes. There is no account, watermark, or limit. Add the optional BeforeAfterly credit only if you want to.
Are my photos uploaded?
No. Each frame is drawn and encoded in your browser, and the GIF or video is created on your device.
Why can I not post the GIF to Instagram?
Instagram does not accept GIF files for posts. Download the video instead, at 1080 pixels wide.
Why does my GIF look grainy?
GIFs can show at most 256 colours per frame, so smooth skies and gradients may show bands or dots. Use the video download for full colour.
How long does it take?
A GIF usually takes a few seconds; larger widths and longer transitions take longer. Video is recorded in real time, so it takes as long as two loops of the animation.
Can I make an interactive version instead?
Yes. A slider lets viewers drag between the photos. Use the comparison tool to present it, or embed it on your website.
BeforeAfterly is free and needs no account. The site uses analytics; see the privacy policy.