FFmpeg Cookbook

Fade In / Fade Out Tool

Add a fade-in at the start and a fade-out at the end of your video. Black or white fades, with optional audio fade.

Local processing only — your file never leaves the browser
🌅
Drag & drop a video, or tap to select
MP4 / MOV / WebM, up to 500 MB
🎬
The fade-out start position is calculated automatically from the video duration. Video is re-encoded with H.264 (CRF 23).
Processing… 0%

What to do next

What this tool does

  • Pick fade-in and fade-out lengths independently: 0.5–3 seconds
  • Black or white fade color
  • Optional audio fade (afade) with the same lengths — one checkbox
  • Fade-out start position is auto-calculated from the video duration
  • Local-only processing — your file never leaves the browser

How to use

  1. 1

    Drop the video

    MP4 / MOV / WebM, up to 500 MB. The video duration is read automatically.

  2. 2

    Set the fades

    Choose fade-in / fade-out lengths (none / 0.5 / 1 / 2 / 3 s) and the fade color (black / white). Audio fade is on by default.

  3. 3

    Run

    Hit "Apply fades" — when processing finishes, a preview and download button appear.

What each setting means

Fade-in length
How long the picture takes to emerge from black (or white) at the start. Set to "None" to skip.
Fade-out length
How long the picture takes to dissolve into black (or white) at the end. Start position = duration − fade-out length, computed automatically.
Fade color
Base color of the fade. Black is the standard; white suits bright vlogs and slideshows.
Audio fade
When checked, afade is applied with the same lengths so the audio ramps up and out smoothly with the picture.

Recommended settings

Vlogs / everyday videos
1 s in / 1 s out / black
The most natural, invisible default. Use this if unsure.
Slideshows / memory reels
2 s in / 3 s out / white
Slow white fades give a soft, gentle feel.
Fixing abrupt BGM cutoffs
0.5 s in / 2 s out / audio fade ON
The music tapers off at the end, so a mid-song ending still sounds intentional.

Common pitfalls

Symptom: Fade-out starts slightly off-position

Cause: Variable-frame-rate videos can report a duration that differs slightly from the real length.

Fix: The drift is usually under 0.1 s and not noticeable. If it bothers you, pick a fade-out 0.5 s longer.

Symptom: Audio fade has no effect

Cause: The video has no audio track, so afade was skipped automatically (fallback behavior).

Fix: Videos without audio get the picture fade only. This is expected.

Symptom: File size changed after processing

Cause: The video is re-encoded with H.264 (CRF 23) — the fade filter cannot be applied with stream copy.

Fix: Unavoidable by design. CRF 23 keeps quality loss virtually imperceptible.

Equivalent FFmpeg commands

Reference commands you can run on the desktop FFmpeg CLI.

1 s in + 1 s out (60-second video, black)
ffmpeg -i input.mp4 -vf "fade=t=in:st=0:d=1,fade=t=out:st=59:d=1" -af "afade=t=in:st=0:d=1,afade=t=out:st=59:d=1" -c:v libx264 -preset fast -crf 23 -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart output.mp4
st = duration − fade-out length. This tool computes it for you.
White fade (slideshow style)
ffmpeg -i input.mp4 -vf "fade=t=in:st=0:d=2:c=white,fade=t=out:st=57:d=3:c=white" -c:v libx264 -crf 23 -c:a copy output.mp4
c=white selects a white fade. Skip the audio fade and keep -c:a copy for lossless audio.
Fade-out only, audio included
ffmpeg -i input.mp4 -vf "fade=t=out:st=58:d=2" -af "afade=t=out:st=58:d=2" -c:v libx264 -crf 23 -c:a aac -b:a 128k output.mp4

Browser support & limits

  • Recommended max file size: 500 MB
  • Video is re-encoded with H.264 (CRF 23) — the fade filter cannot run under stream copy
  • Files whose duration cannot be read are rejected (required to position the fade-out)
  • Fade lengths are preset-only (0.5–3 s); use desktop FFmpeg for arbitrary values

Privacy

This tool runs ffmpeg.wasm directly in your browser. Files never leave your device — everything runs locally. Read the privacy policy →

Frequently asked questions

Can I apply only a fade-in, or only a fade-out?

Yes. Set the side you don't need to "None". If both are "None", the run button is disabled.

What happens with very short videos?

If the fade-out length exceeds the video duration, the start position is clamped to 0 and the whole clip fades out. For a 3-second fade we recommend clips of at least 6 seconds.

Does quality drop?

The fade filter modifies the picture, so the video is re-encoded with H.264 at CRF 23 — roughly YouTube delivery quality. The loss is virtually invisible.

I want to crossfade between two clips

This tool fades a single video at its start and end. For crossfade joins between multiple clips, use the transition option in the [Video Merger](/en/tools/concat/).

Should I add BGM before or after fading?

Add music first with the [BGM tool](/en/tools/bgm/), then run this tool — the picture and music fade out together for a cohesive ending.

Related tools

Related FFmpeg recipes