FFmpeg Cookbook

Ringtone Maker

Cut a segment from any audio or video and export it as an M4R ringtone for iPhone or an MP3 for Android.

Local processing only — your file never leaves the browser
🔔
Drag & drop an audio or video file, or tap to select
MP3 / M4A / WAV / MP4 / MOV and more, up to 200 MB
🎵
iPhone ringtones work best at 30 seconds or less (alert tones up to 40s); Android accepts longer MP3s. A short fade is applied at the start and end so the loop sounds clean.
Making ringtone… 0%
Download ringtone
Setting it on iPhone: a browser cannot install ringtones directly. Save the .m4r file, then add it via Finder (macOS) or iTunes (Windows) with your iPhone connected, or rebuild it inside the GarageBand app on the phone. On Android, set the downloaded MP3 from Settings → Sound → Ringtone.

What this tool does

  • Pick a start time and length (up to 40 seconds) and cut the exact segment you want
  • Export M4R (AAC) for iPhone or MP3 for Android
  • Automatic short fade-in and fade-out so the loop sounds clean
  • Accepts audio and video sources (MP3, M4A, WAV, MP4, MOV, and more), up to 200 MB
  • Runs locally with ffmpeg.wasm — your file never leaves your device

How to use

  1. 1

    Drop a file

    Select any audio or video file that contains the sound you want.

  2. 2

    Set start and length

    Enter where the ringtone should begin and how long it runs. iPhone ringtones are capped at 30 seconds (40s for alert tones).

  3. 3

    Choose the output

    M4R for iPhone, MP3 for Android.

  4. 4

    Make it and download

    Preview the result, then download the ringtone file.

What each setting means

Start (seconds)
Where the ringtone begins in the source. 0 starts from the beginning.
Length (seconds)
How long the ringtone plays. Clamped to 40s for M4R (iPhone), 60s for MP3.
Output
M4R is AAC inside an MP4 container renamed .m4r — the format iPhone expects. MP3 plays directly on Android.

Common pitfalls

Symptom: The .m4r file will not set as a ringtone on iPhone

Cause: A browser cannot install ringtones directly into iOS. The file is valid; iOS just needs it imported through a sync tool.

Fix: Connect the iPhone and add the .m4r via Finder (macOS) or iTunes (Windows), or rebuild it in the GarageBand app on the phone.

Symptom: The ringtone is longer than expected on iPhone

Cause: iPhone ringtones are limited to 30 seconds; longer files may be rejected or trimmed.

Fix: Keep the length at 30 seconds or less for iPhone ringtones.

Symptom: The cut starts or ends abruptly

Cause: The segment boundaries land in the middle of a loud passage.

Fix: Adjust the start time slightly, or rely on the built-in fades which smooth the edges.

Equivalent FFmpeg commands

Reference commands you can run on the desktop FFmpeg CLI.

Cut a 30s M4R for iPhone (from 12s)
ffmpeg -ss 12 -t 30 -i input.mp3 -vn -c:a aac -b:a 192k -f mp4 ringtone.m4r
The .m4r extension needs an explicit -f mp4 (or build as .m4a and rename).
Cut a 30s MP3 for Android
ffmpeg -ss 12 -t 30 -i input.mp3 -vn -c:a libmp3lame -b:a 192k ringtone.mp3
Add fade in/out
ffmpeg -ss 12 -t 30 -i input.mp3 -vn -af "afade=t=in:st=0:d=0.5,afade=t=out:st=29.5:d=0.5" -c:a aac -f mp4 ringtone.m4r

Browser support & limits

  • A browser cannot install the ringtone onto iOS — a sync step (Finder/iTunes/GarageBand) is still required.
  • Runs in the browser, so source files are limited to ~200 MB.

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 this set the ringtone on my iPhone automatically?

No — and no website can. iOS does not allow a browser to install ringtones. This tool creates a correct .m4r file; you then import it via Finder/iTunes with the phone connected, or through the GarageBand app.

What is an M4R file?

It is simply AAC audio in an MP4 container with the .m4r extension — the format iOS uses for ringtones.

How long can an iPhone ringtone be?

Up to 30 seconds for ringtones (40 seconds for text/alert tones). This tool caps M4R length at 40 seconds.

How do I set the ringtone on Android?

Download the MP3, then go to Settings → Sound → Ringtone (wording varies by phone) and pick the file, or set it from your music/files app.

Is my file uploaded?

No. Everything runs in your browser via ffmpeg.wasm; the audio never leaves your device.

Related tools