Song Key Finder: Detect the Key of Any Song
TuneFreq's key finder listens to an audio file, your microphone, or a browser tab and tells you the song's musical key, its relative major or minor, its Camelot code for DJ mixing, and the exact tuning reference. It also spots key changes partway through a song. Everything runs on your own device, so it works with unreleased demos and private recordings.
How to Find the Key of a Song in Three Steps
- Open the studio and click Load Audio, or drag an MP3, WAV, FLAC, or M4A file onto the page. To analyze something playing in another tab (a streaming service or YouTube), use System Audio instead; to analyze an instrument, use Live Mic.
- Wait a few seconds while the progress bar runs. TuneFreq measures the tuning, builds a 12-note pitch profile of the whole song, and compares it with all 24 major and minor keys.
- Read the result in the Detected Key card: the key name, a confidence score, the relative key, the Camelot code, and up to three alternative candidates. If the song modulates, each key section is listed with a timestamp you can click.
How the Key Detection Works
A key is defined by which notes a piece uses most and which note feels like home. TuneFreq measures this directly from the sound:
- Tuning calibration. Not every recording is tuned to A4 = 440 Hz. Older records, orchestras, and some artists sit a little sharp or flat. TuneFreq measures how far the strongest pitches are from standard tuning and corrects for it before anything else, so a song tuned to 432 Hz or 446 Hz is still classified correctly. The measured reference is shown in the A4 badge.
- Chromagram. The audio is analyzed with an 8192-point Fourier transform. Each spectral peak is assigned to one of the 12 pitch classes (C, C#, D, and so on), and overtones that would falsely boost the fifth or the third above a loud note are reduced. The result is the bar chart you see in the studio.
- Key profiles. The 12-note profile is compared with reference profiles for every major and minor key, derived from listening experiments on how strongly each scale degree belongs to a key. The best match wins.
- Bass and cadence weighting. Relative keys such as C Major and A Minor share all seven notes, so the profile alone can't always separate them. TuneFreq analyzes the bass register separately and gives extra weight to the notes the bass rests on and to the opening and closing sections of the song, where the home key is usually clearest.
- Key change detection. The song is also scored in 8-beat windows. When the music settles into a different key for at least 32 beats, such as the classic last-chorus lift, TuneFreq reports a new key section and labels the chords in it with the new key's Roman numerals.
Tips for the Most Accurate Results
- Analyze the full song. A short clip of a verse may lean toward the relative minor or the dominant. The whole track gives the key profile more evidence.
- Check the alternatives. If the confidence is below about 70%, the second candidate is often the relative major or minor, or a key one step around the circle of fifths. Listen for which chord feels like the resting point.
- Use the chord timeline. If the first and last chords of the progression match the detected key's I or i chord, the result is almost certainly right.
- For live instruments, play for at least 10–15 seconds. The live key estimate and tuning calibration settle as more notes come in.
- Modal and atonal music (Dorian grooves, drones, heavy chromaticism) doesn't fit neatly into major and minor. TuneFreq will report the closest major or minor key, which is still useful for finding the tonal centre.
What to Do With the Key
Knowing the key helps in more ways than you might expect. Singers can transpose a song into a comfortable range with the studio's Transpose control. Guitarists can let TuneFreq suggest a capo position with easy open shapes. Producers can tune samples and basslines to the track. DJs can use the Camelot code to choose the next record; our Camelot wheel chart shows every compatible key at a glance, and the batch analyzer finds keys for a whole folder. To train your ear to hear the key yourself, read how to find the key of a song by ear.
Key Finder FAQ
Is the TuneFreq key finder free?
Yes. TuneFreq is free to use with no account and no upload limits. The site is supported by advertising.
Does the key finder upload my song?
No. Decoding and analysis run inside your browser on your own device. Your audio is never sent to a server.
Why does it say A Minor when I think the song is in C Major?
C Major and A Minor use exactly the same notes, so they are the hardest pair to tell apart. Check which chord the song starts and ends on: if it resolves to C, it is in C Major. The relative key is always shown under the result, and the Camelot codes 8B and 8A mix perfectly either way.
Can it find the key of a song on YouTube or Spotify?
Yes. Click System Audio in the studio, choose the browser tab that is playing the song, and tick Share tab audio. TuneFreq analyzes the sound live and builds a full result when you stop the capture.
How accurate is automatic key detection?
For most pop, rock, electronic, and hip-hop songs, automatic detection matches the published key the large majority of the time. Errors are usually near misses such as the relative key or a fifth away. The confidence score and alternative candidates help you judge each result.