Add audio to GIFs, sync music with short loops, and export polished social clips from a simple online editor.
Updated
Not inside the GIF itself: the GIF format stores pictures and their timing, with no place for sound. To add music, audio or a sound effect to a GIF, you pair the animation with an audio track and save the two together as a short video — an MP4 — which social networks and messaging apps play with sound.
That is what this page does, in your browser. Drop in an animated GIF, add an MP3, WAV, M4A or OGG file, choose the part of the song you want and download the result as an MP4. The free export needs no account, adds no watermark and does not upload your files.
If you would rather not hunt for the right moment yourself, AI Beat Sync does it: it measures the song's tempo, finds the chorus, starts the music exactly on a beat and keeps a whole number of GIF loops, so the animation and the music start over together.
A real run of the tool on this page: drop in a looping GIF, add a song, let AI Beat Sync pick the tempo, the chorus and a clip length of whole loops, then generate the MP4 in the browser and download it. The clip ends with the exported video, sound on.
GIF — the Graphics Interchange Format — dates from 1987. A GIF file holds a series of images, a palette of up to 256 colours for each, and a delay that says how long every frame stays on screen. That is the whole format: there is no audio track to fill, which is why no editor can put sound "into" a GIF file.
What people call a GIF with sound is a short video that looks and loops like a GIF. Many sites already turn uploaded GIFs into video behind the scenes, because video compresses moving pictures far better than a palette of 256 colours per frame. Exporting your GIF as an MP4 with a soundtrack simply does the same thing on purpose, with the music you chose.
Beat Sync sends your song to HueFold's music analysis, which measures the tempo in beats per minute, marks where every beat falls and splits the track into sections such as intro, verse, chorus and outro. The tool then makes two decisions for you.
First, where the music starts. It takes the strongest chorus — the chorus section with the most energy, or the most energetic section if the song has no chorus — and moves the start to the first beat of it. Starting on a beat is what makes a cut sound intentional rather than accidental.
Second, how long the clip runs. It rounds the length to a whole number of GIF loops, no shorter than 2 seconds and no longer than 20 seconds or the end of the song. Because the clip ends exactly where a loop ends, the GIF and the music finish together instead of the picture stopping halfway through its motion.
Beat Sync never changes the speed of your GIF or of your song. In the demo above it measured 119.93 BPM (shown as 120), found the chorus at 0:08 and kept four 2.0-second loops, for an 8.0-second clip. Your song is analysed only when you click the button, and files up to 20 MB are accepted.
A loop lands on the beat when it lasts a whole number of beats at the song's tempo. The arithmetic is short: BPM = 60 × beats in one loop ÷ the loop's length in seconds. A 2.0-second loop is exactly one bar of 4 beats at 120 BPM, or 2 beats at 60 BPM; a 1.5-second loop fits 80 or 160 BPM.
You do not need a perfect match. Beat Sync starts the music on a beat and ends the clip on a loop boundary either way; a song whose tempo fits the table below simply keeps the two in step for the whole clip, not only at the start and the end. For reaction GIFs, pick the hook or the line people will recognise. For a product or brand loop, a steady instrumental works better than vocals. For a sound effect, set Start at so the hit lands on the frame where the action happens.
| GIF loop | Loop = 2 beats | Loop = 1 bar (4 beats) | Loop = 2 bars (8 beats) |
|---|---|---|---|
| 1.0 s | 120 BPM | — | — |
| 1.5 s | 80 BPM | 160 BPM | — |
| 2.0 s | 60 BPM | 120 BPM | — |
| 2.5 s | — | 96 BPM | 192 BPM |
| 3.0 s | — | 80 BPM | 160 BPM |
| 4.0 s | — | 60 BPM | 120 BPM |
| 5.0 s | — | — | 96 BPM |
Once a song is loaded, three controls decide how it sits under your GIF. Start at chooses the moment in the song where the music begins. Clip length sets how long the video runs, from 2 to 20 seconds; the GIF simply repeats for as long as the clip lasts. Volume runs from 0 to 200%, which is enough to lift a quiet phone recording or to bring a loud master down under a voice.
The strip above the waveform shows six frames taken from your GIF, and the highlighted window on the waveform is the part of the song that will play. Section markers from Beat Sync show where the intro, verses and chorus begin, so you can see at a glance why the clip starts where it does.
The free export happens on your device. The page plays your GIF frame by frame together with the music and records both into one video file in real time, so an 8-second clip takes about 8 seconds. In recent Chrome and Edge that file is an MP4 with H.264 video and AAC audio, at your GIF's size up to 480 pixels on the long edge, and without a watermark; a browser that can only record WebM gets a WebM file. Nothing is uploaded for this step.
HD render does the same job on HueFold's servers with the engine behind HueFold Studio's exports, producing an MP4 up to 1080p; small GIFs are scaled up to a 1080-pixel long edge. It needs you to sign in, and it uploads your GIF and song so the server can render them. Because it does not depend on your browser's recording features, it is also the route to use where the free export is not available.
Continue editing in HueFold Studio uploads both files and opens them as an editable design, with the music already linked to the GIF. There you can run Beat Sync again, add fades, loop the music, place captions or stickers, change the canvas size and export from the same engine.
Most GIFs with sound fall into a handful of jobs. Each one wants a slightly different soundtrack, and the same three controls cover all of them.
The problems people run into most, and what fixes them.
Adding a song to a GIF does not change who owns the song. Social platforms may mute, block or remove videos that use copyrighted music without permission, so for anything public use your own recordings, tracks you have licensed, or music from a royalty-free library whose licence covers your use. The same goes for the GIF: a clip from a film or a show belongs to whoever made it.
Upload the GIF, add an audio file (MP3, WAV, M4A or OGG), choose where the audio starts and how long the clip runs, then click Generate video with sound and download the MP4. A GIF cannot hold audio itself, so the result is a short video that loops like the GIF.
Open this page in Chrome on your phone, choose the GIF and the sound from your files, and generate the video. There is no app to install. If your browser cannot run the free export, the page says so, and HD render works instead.
Yes. If the free in-browser export is not available in your browser, the page says so; sign in and use HD render, or continue in HueFold Studio. Both render on HueFold's servers, so they do not depend on the browser.
Yes. The in-browser export is free, needs no account and adds no watermark. HD render and HueFold Studio need a HueFold account.
On this page a clip runs from 2 to 20 seconds, and the GIF repeats for the whole clip. For longer edits, continue in HueFold Studio.
BPM is beats per minute, the tempo of a song. A GIF loop stays in step with the music when it lasts a whole number of beats: BPM = 60 × beats in one loop ÷ loop length in seconds. A 2-second loop fits 120 BPM exactly.
The free export records every frame of the GIF at up to 480 pixels on the long edge, which suits most GIFs. For a larger, sharper video use HD render: up to 1080p, with small GIFs scaled up to a 1080-pixel long edge.
Download the GIF file first, then upload it here. Make sure you are allowed to reuse it — the GIF and the music both belong to the people who made them.