If you want to make your own iPhone ringtone out of a song, you're in the right place. We'll explain the two methods you can use for free to make it happen, and it'll take you only a couple of minutes - maybe less.

It doesn't even have to be a song: you can use any audio including recordings of your kids, a distinctive phone ringtone such as the one from the TV series 24 or something else entirely. You simply need to have the audio in a file saved on your computer, or on your iPhone. It's worth pointing out that you can't use songs from Apple Music or other streaming services because they're protected. Instead, you'll need an audio file that has no DRM - digital rights management.

One of the simplest ways to do this is to download the audio from a YouTube video

In this article, we'll assume you have the song or audio clip ready to use and show you how to convert it into a ringtone, then select it on your phone as a ringtone or even a notification for a text message.

One of the two methods uses the free GarageBand app on your iPhone, while the other is to use iTunes on Windows or Mac.

So, to turn that catchy riff into your new ringtone, read on.

1. Prepare your song

We'll start with the iTunes method. If you'd rather not use a computer, or don't have access to one, then scroll down to learn how to make a ringtone for your iPhone in GarageBand.

Before you start, the song you want to use must be in your iTunes library on your computer. It cannot be from Apple Music, as you cannot convert Apple Music tracks to AAC.

So if you don't have something suitable in your iTunes library, you will need to import at least one MP3 or AAC file into iTunes.

The file doesn't have to be a song. You could use the Voice Memos app on your iPhone to record real-world sounds or people's voices to turn into ringtones.

Just make sure you have the latest version (go to the Mac App Store, or the Microsoft Store on Windows 10), then launch iTunes by double-clicking its shortcut or by finding it in the Start menu.

From the Library, click on the album which contains the song, then right-click on the song you want to use and select Song Info as shown in the image above.

2. Choose timings

In the separate window that opens, click on the Options tab and then tick the Start and Stop boxes. Type in the times at which you want the ringtone to start and stop. If the song needs to start from the very beginning, there's no need to tick the Start box.

To know which times to enter into these boxes, you will need to listen to the track first and note down the time you want it to start. The stop time must be within 30 seconds, as that's the maximum length for a ringtone.

Top tip: If you want to be really precise about when you ringtone starts, use a decimal point. For example, if the section of music starts between 44 and 45 seconds, try entering 0:44.5 in the Start Time box. You can even specify the start and stop time in thousandths of a second, so you could type 0:44.652

When you've set the start and stop times, click OK to dismiss the window.

3. Create AAC version

Now, select the song again by clicking once on it. Then go to the File menu, choose Convert, then Create AAC version. (If you see 'Create MP3 version' or something else, the fix is in the next step.)

What will happen is that iTunes will save just the section of the song between the start and stop times you chose as a new track in your Library.

If your song is tagged with album and artist information, the new, short track will appear as a duplicate track in the same album. You can identify it based on its duration, shown to the right-hand side. If the album, artist and song info isn't present, it will appear as a new album in your Library with a single song in it.

3a. AAC Encoder

If you didn't see an option to Create AAC version in step 3, it's because your CD rip settings aren't set correctly. To change this, click the Edit menu and choose Preferences...

Now click Import Settings... next to 'When you insert a CD' and choose AAC Encoder from the drop-down menu next to 'Import using:'.

4. Reset start & stop times

As a matter of housekeeping, click on the original album containing the song and right-click on it. Click Song info and then click the Options tab.

Now untick the start and stop times to return them to their original times then click OK.

Otherwise, when that track is played in future, it will only play the section between your start and stop times. You probably don't want that to happen.

5. Find the new AAC file

Navigate to the duplicate track (or duplicate album which contains the newly created track) that you're going to use as a ringtone.

Right-click on the song in the album and click Show in Windows Explorer. If you're on a Mac, the option is called Show in Finder.

This is so that you can change the file's extension (so it becomes a ringtone), which we'll do in the next step.

6. Change the file extension

The file should now be highlighted in the window which opens up, and it should be called something.m4a (where 'something' is the name of your song.

If you can't see the .m4a part (i.e. you see only 'Dancing Queen' and not 'Dancing Queen.m4a'), it's because Windows is set to hide the extensions. Here's how to show the file extension for editing

Once you can see the m4a part, right-click on the file and choose Rename. Now change the extension from .m4a to .m4r and press Return, Enter or just click in some white space.

On a Mac, the process is very similar, and on both Windows and macOS, you'll see a warning asking if you're sure you want to change the extension. Click Yes on Windows, and click 'Use .m4r' on a Mac.

Click Yes when asked if you want to change the extension.

NOTE: As this is a step which trips up a lot of people, please be aware that you cannot simply add .m4r when renaming the file. If the file extensions are hidden in Windows, all you're doing is changing your file from 'Dancing Queen.m4a' to 'Dancing Queen.m4r.m4a'.

This will not work!

7. Import & sync ringtone

Apple cut the bloat out of iTunes in version 12.7, removing the App Store and various other things including Tones, which was where you could you easily see all your ringtones.

However, you can still sync your new ringtones to your iPhone in the latest version of iTunes.

To do it, connect your phone to your computer with its USB cable. If using Windows 10, tap 'Trust this computer' when it pops up on your iPhone screen. You may need to unplug and re-plug the USB cable if this message doesn't show up, unless you've done this step previously. Enter your phone's passcode as part of the 'trusting' process and wait until your phone icon appears in iTunes. Sometimes this can take a couple of minutes.

You might see a message in iTunes asking 'Do you want to allow this computer to access information on "Xxxx's iPhone"?' so click the Continue button to allow this access.

Look for your phone in the left-hand column under Devices. Click on it and the list should expand so you can see a Tones section. Click on that and you'll see any custom tones appear on the right (if you don't have any, that list will be blank).

Switch to your File Explorer Window - or Finder on a Mac - where your ringtone should still be highlighted (or refer to the Find the File step earlier). If it's not selected, click on it to do so.

Press Ctrl+C on your keyboard or Command+C on a Mac to copy the file. 

Go back to iTunes, click on Tones if this section isn't already selected and hit Ctrl+V (Command+V on Mac) to paste the tone.

What should happen is that the tone will appear in the list of tones and automatically sync to your iPhone in a few seconds.

Note: you can no longer drag and drop tones from an Explorer window to iTunes.

Mac users: Sometimes ringtones simply won't show up in the Tones section. There are two things to try here:

1- Delete the ringtone 'song' entry in your iTunes Music library (don't delete the actual file on your hard drive - choose to keep it when prompted). Then double-click on the .m4r file in Finder and it should show up in Tones.

2- If that doesn't work, try moving the .m4r file outside of your iTunes folder on your hard drive (such as to the desktop). Then double-click on it. 

8. Remove ringtone from library

More housekeeping!

You don't need to delete the new AAC version of the song you just created from your iTunes music library, but you should.

That's because it gets messy if you make lots of ringtones. It's also confusing to have single-track albums which won't play (because you changed the extension) and aren't the full song anyway.

9. Set your new ringtone

Now that the new tone is on your phone, all you need to do set it as your ringtone.

To do this, open the Settings app on your iPhone, then tap Sounds (also called Sounds & Haptics), then Ringtone.

Your custom tones will appear at the top of the list, above the default Ringtones. Just tap on one to make it your ringtone.

The fun doesn't stop there, as you can use your custom tones for other things such as text message alerts - or anything else...

10. Custom alert tones

If you want have a custom tone for text messages, tweets, Facebook posts, new voicemails, reminder alerts or anything else, it's exactly the same process as for a ringtone.

The only difference is that you'll need to select the appropriate section under 'Sounds & Haptics' on your iPhone.

Just tap on the type you want, Text Tone for example, and you'll see the Alert Tones list.

Scroll down past these, and you will see your Ringtones list. Your custom tones will again be at the top of this section.

It's not a great idea to use a 30-second song as a text message alert, though. And, in case you're wondering, there's no difference between a 'song' and a sound effect in iTunes, so you don't have to use part of a song from your music library as your custom alert tone.

All you need is a sound effect in a format iTunes can import (usually MP3), and it will be treated it just like any other song. Then, repeat the same process as for a ringtone to create and sync the sound effect to your iPhone, then select it as we've shown.

1. GarageBand method

If it isn't installed, open the App Store on your iPhone and search for GarageBand. It's free, but it does take up around 1.6GB of storage. You'll also need to make sure the song you want to make the ringtone from is on your iPhone. There are various ways to do this, from syncing with iTunes to downloading in another app. You can't use 'protected' songs, such as those from Apple Music - they must not have DRM (digital rights management).

2. Pick an instrument, any instrument

You can't directly open a song in GarageBand, as it's designed for creating them, not making ringtones.

So, after launching GarageBand, swipe and choose an instrument. It doesn't matter which. The keyboard is the first one in the list, so we'll use that. Tap on it to open it.

3. Open the editor

We don't want to play the keyboard: we simply want to get to the editor, so tap its icon at the top-left as highlighted.

4. Tap the loop icon

In order to import the song you're going to use for the ringtone, tap on the loop icon as marked.

5. Go the Music tab

Again, GarageBand is set up for importing loops, not songs. But you can still do it. So tap on Music at the top right to see the songs already on your iPhone.

6. Find your song

Tap on songs.

7. Find your song (2)

Scroll through the list, or tap on the letter it begins with from all the music on your iPhone. If you have downloaded podcasts, these will be show in this list as well, despite not being 'songs'.

8. Drag the song into GarageBand

You can tap the song to play it, but to get it into the GarageBand editor, you must tap and hold on it. Drop it into the second track down - not the keyboard track.

9. Trim the track

Tap on the waveform and drag the yellow sliders to set the start and end points of your ringtone. This can be a bit imprecise at the standard zoom level, but you can pinch apart to zoom in and trim more precisely.

As for the iTunes method, the same rules apply: you must make your tone less than 30 seconds long. (In fact, it can be up to 40 seconds long, but to use it as an alert notification or text tone, it has to be under 30 seconds.

You can't tell how long the selected audio is in GarageBand because, again, it's not designed for this. Time it using a stopwatch, watch or another device or by counting, if you think you're accurate enough.

10. Save it as a song

Tap the down arrow at the top left (marked) and tap My Songs. This saves your trimmed audio clip.

11. Export the song

Tap and hold on the 'song' and you'll see a context menu appear. From this, tap Share. 

12. Save your ringtone

Simply tap the Ringtone option.

13. Name your ringtone

Type in a name for your ringtone so you can identify it.

14. Set your song as a ringtone

After it has exported, tap Use sound as...

15. Choose the type of tone

You'll probably want to pick Standard Ringtone from the options, but you can use it as a Text Tone or even assign it to a particular contact  so you know who is calling. Of course, we're still in GarageBand at this point.

You can see your ringtone in the Settings app under Sounds and haptics and set it as a tone for other apps if you want to, or pick it later if you change ringtones in the meantime.