Audio fade in and fade out online
Add smooth fade in and fade out effects with customizable curve types, visual waveform preview, and crossfade support.
Add a fade to the start or end of a file, or crossfade two files into one. The fades are real gain automation, not a volume multiplier applied afterwards: the page schedules ramps on a GainNode inside an OfflineAudioContext and renders the whole track through it. Four curve shapes are available and they behave differently. Linear ramps at a constant rate. Exponential starts slow and accelerates. Logarithmic drops fast then eases out. The S-curve is built from a cosine shape and is the one that sounds most natural on music, because it avoids the abrupt corners at the beginning and end of the fade. Crossfade mode takes a second file, overlaps the two by the length you choose, and fades one out as the other comes in.
Key facts about Audio fade in and fade out online
| Mechanism | GainNode automation inside an OfflineAudioContext — linear and exponential ramps for those curves, 100 stepped values for logarithmic and S-curve |
|---|---|
| Curves | Linear (constant rate), exponential (slow then fast), logarithmic (fast then slow), S-curve (cosine, smooth at both ends) |
| Modes | Fade a single file, or crossfade two files into one continuous track |
| Presets | Quick fade 0.5 s linear, song intro 3 s exponential, song outro 5 s logarithmic, crossfade-ready 2 s S-curve, podcast 1 s in / 1.5 s out S-curve, cinematic 4 s in / 6 s out exponential |
| Crossfade default | 3 seconds of overlap using the S-curve |
| Curve preview | Each curve is drawn as a small SVG so you can see the shape before applying it |
| Exponential floor | Exponential ramps cannot reach true zero, so the curve bottoms out at 0.001 rather than silence |
| Output | 16-bit PCM WAV at the source's sample rate and channel count |
| Accepted input | MP3, WAV, OGG, FLAC, AAC and M4A, up to 500 MB per file |
What happens to your file
Nothing is uploaded and no engine is fetched. Both files, if you use crossfade mode, are read into ArrayBuffers in this tab, decoded by the browser's own decodeAudioData, rendered through an OfflineAudioContext on your CPU, and written back to a 16-bit WAV by JavaScript on this page. There is no network request in the whole path once the page has loaded. The result lives as a blob: URL in your own tab's memory until you download it and is released when the page closes.
About this tool
- 1
Choose the mode
Fade for a single file's start and end, or crossfade to blend two files into one. Crossfade mode shows a second drop zone.
- 2
Load your audio
MP3, WAV, OGG, FLAC, AAC or M4A up to 500 MB per file. The page decodes and shows duration for each.
- 3
Set the lengths
Fade in and fade out are independent. A half-second fade is a click fix; three to five seconds is a musical fade; anything longer is a deliberate effect.
- 4
Pick a curve
Use the inline curve previews. S-curve for music, linear for short technical fades, logarithmic for an outro that drops away quickly, exponential for a slow dramatic entrance.
- 5
Or use a preset
Quick fade, song intro, song outro, crossfade-ready, podcast and cinematic each set both lengths and the curve in one tap.
- 6
Render and download
The whole file is rendered through the gain automation in one pass and comes back as a WAV.
| Input formats | MP3, WAV, OGG, FLAC, AAC, M4A |
|---|---|
| Maximum file size | 500 MB per file |
| Output format | 16-bit PCM WAV |
| Fade lengths | From half a second in the quick preset to six seconds in the cinematic preset, adjustable in between |
| Crossfade output length | The two durations added together, minus the overlap you choose |
| Curve resolution | Logarithmic and S-curve are approximated with 100 linear segments, which is far finer than the ear can resolve |
| Browsers | Chrome, Edge, Firefox and Safari 14.1+ — Web Audio only |
| Speed | Offline rendering is much faster than real time; a full track renders in a second or two |
- A fade of 10 to 30 milliseconds is the standard cure for a click at a hard edit point, and it is far too short to hear as a fade.
- S-curve is the safe default for music. Linear fades have audible corners at the top and bottom of the ramp on sustained material.
- Logarithmic outros drop quickly and then hang, which is why they suit songs ending on a sustained chord.
- For a crossfade, both tracks should be at similar loudness first — otherwise the overlap has an obvious dip or bump. Normalize them before crossfading.
- Three seconds is a good crossfade default. Under one second it reads as a cut, over five it turns into a mash-up.
- Exponential ramps in Web Audio cannot reach absolute zero, so an exponential fade-out ends a hair above silence. On anything with a noise floor this is inaudible.
- If you only need to cut a file and avoid a click, the audio trimmer applies a fade at the cut point during export.
- Fade in and fade out with independent lengths
- Crossfade mode merging two files into one
- Four curve shapes with inline SVG previews
- Six presets from quick click-fix to cinematic
- Real gain automation rendered offline
- 16-bit WAV output at the source sample rate
- Adding a professional three-second fade-out to the end of a song
- Fixing the click at the start of a clip cut out of a longer recording
- Crossfading two takes of a podcast intro into one continuous file
- Building a seamless loop by crossfading the end of a track back into its start
- Fading a music bed in under a voiceover without opening a DAW
- Giving a cinematic trailer audio bed a long, slow entrance
Related tools
View allPart of Audio tools that run in your browser
Works well with this6
More audio tools10
Updated