You can use any song from your music library as your ringtone, but the song has to be shorter than 40 seconds and converted to a specific audio format first

iPhones don't let you drag a full-length song directly into the ringtone slot. The operating system requires ringtones to be in M4R format (a protected audio file type), and they must be 40 seconds or shorter. Most songs are three to four minutes long, so you'll need to trim the part you want and convert it. The easiest route is using GarageBand, which comes free on every iPhone, or your computer's iTunes or Music app if you own the song outright.

If you use a streaming service like Spotify or Apple Music, you can't convert those songs into ringtones — the files are locked to prevent copying. You can only use songs you've purchased and own, or songs you've recorded yourself.

Key Takeaways

  • Ringtones must be in M4R format and no longer than 40 seconds, so you'll need to trim and convert your song before it can work.
  • You can use GarageBand on your iPhone to trim a song and export it as a ringtone without needing a computer.
  • If you use iTunes or Music on a Mac or Windows computer, you can convert songs you own by trimming them, exporting as M4A, renaming the file to M4R, and syncing to your phone.
  • Streaming service songs (Spotify, Apple Music) cannot be converted to ringtones because they're protected files.
  • Once the ringtone file is on your iPhone, you set it in Settings > Sounds & Haptics > Ringtone.

Using GarageBand on your iPhone (the fastest method)

Open GarageBand on your iPhone and create a new project. Tap the loop icon (the circular arrow at the bottom left), then search for your song in your music library. Drag the song into the timeline at the top of the screen. You'll see the full song laid out as a waveform — the visual representation of the audio.

Tap and drag the right edge of the song clip to trim it down to 40 seconds or less. Listen to the trimmed section by pressing play. Once you're happy with the length, tap the three dots in the top right corner, select "Share," then choose "Ringtone." Name your ringtone and tap "Export." GarageBand will ask permission to save it to your phone's ringtone library — tap "Allow." The ringtone is now ready to use.

Converting a song on Mac using Music or iTunes

If you own the song on your Mac, open the Music app (on macOS Monterey and newer) or iTunes (on older systems). Right-click the song and select "Get Info." Go to the "Options" tab and set the start and stop times to create a clip no longer than 40 seconds. Click "OK."

Right-click the song again and select "Convert" > "Convert to AAC." A new version of the song will appear in your library — this is the trimmed version. Right-click it, select "Show in Finder," and the file will open in a folder. Rename the file extension from .m4a to .m4r. Drag this file into iTunes, then sync your iPhone. The ringtone will appear in Settings > Sounds & Haptics > Ringtone.

Converting a song on Windows using iTunes

Open iTunes and locate the song you own. Right-click it and select "Get Info." Go to the "Options" tab and set start and stop times for a clip under 40 seconds. Click "OK."

Right-click the trimmed song and select "Create AAC Version." A new file will be created. Open File Explorer and navigate to your Music folder, then to iTunes > iTunes Media > Music. Find the converted file (it will have a .m4a extension), right-click it, select "Rename," and change the extension from .m4a to .m4r. Connect your iPhone to your computer, open iTunes, go to your device settings, and drag the .m4r file into the Ringtones section. Sync your phone, and the ringtone will appear in Settings > Sounds & Haptics > Ringtone.

Setting your new ringtone as the default or assigning it to a contact

Once the ringtone file is on your iPhone, open Settings and tap "Sounds & Haptics." Tap "Ringtone" and you'll see your custom ringtone listed at the top. Tap it to select it as your default ringtone for all incoming calls.

To assign a ringtone to a specific contact instead, open the Contacts app, select the person, tap "Edit," and scroll down to "Ringtone." Tap it and choose your custom ringtone from the list. This way, you'll hear your custom sound only when that person calls.

Why the 40-second limit and M4R format exist

Apple limits ringtone length to 40 seconds to keep file sizes small and may support your phone doesn't use excessive storage. The M4R format is Apple's protected audio container — it's the same as an M4A file (the format iTunes uses), but with a different extension so your iPhone recognizes it as a ringtone rather than a song.

This protection system prevents ringtones from being easily copied or shared. If you try to use an unprotected audio file like an MP3, your iPhone won't recognize it as a valid ringtone, even if it's under 40 seconds.

What to do if your ringtone doesn't appear after syncing

If you converted a song on your computer and synced your iPhone but the ringtone doesn't show up, check that the file extension is actually .m4r and not .m4a. File extensions are sometimes hidden in Windows and Mac — right-click the file, select "Get Info" (Mac) or "Properties" (Windows), and look at the full filename. If it says .m4a, rename it to .m4r and sync again.

If you're using GarageBand on your iPhone and the ringtone doesn't appear after export, go to Settings > Sounds & Haptics > Ringtone and scroll to the top. Sometimes newly created ringtones take a few seconds to appear. If it still doesn't show, try restarting your iPhone.

Frequently Asked Questions

Can I use a song from Spotify or Apple Music as a ringtone?

No. Streaming services encrypt their files to prevent copying. You can only convert songs you've purchased and own, or songs you've recorded yourself. If you want to use a song from a streaming service, you'd need to purchase it separately from iTunes or another store that sells DRM-free audio.

What if I don't have a computer — can I do this only on my iPhone?

Yes. GarageBand on your iPhone can trim and export a ringtone without needing a computer. Open GarageBand, import your song, trim it to 40 seconds, tap Share > Ringtone, and export. This is the fastest method if you already own the song in your iPhone's music library.

Can I make a ringtone longer than 40 seconds?

No. iOS enforces the 40-second limit for all ringtones. If you try to export a longer clip from GarageBand, it will either trim automatically or show an error. The limit is built into the system and cannot be changed.

Why does my ringtone sound different than the original song?

When you convert a song to M4R format, the audio quality may drop slightly depending on the bitrate used during conversion. iTunes typically converts at 128 kbps, which is lower quality than the original file. If quality matters to you, check your conversion settings before exporting.

Will my custom ringtone sync to iCloud if I get a new iPhone?

Custom ringtones sync through iCloud if you have iCloud Backup turned on. When you set up a new iPhone and restore from your iCloud backup, your ringtones will transfer automatically. If you restore from a computer backup instead, make sure the ringtone files are included in that backup.