Song Key Finder | Identify the Musical Key of Any Track

Online Song Key Finder

Instantly detect musical key, BPM, and Camelot scale from any audio file
Drag & Drop Audio File

MP3, WAV, M4A, FLAC (Max 50MB)

Analyzing Harmonic Profile…

Detecting BPM and pitch clusters

⏱️ BPM:
🎡 Camelot:
📊 Conf:
🎹 Scale Notes

Relative Key:

🎚️ Harmonic Mixing
🔄 Transposition Calculator

Find the new key for your vocal range

Original Key

How Song Key Detection Works

This tool utilizes an advanced Chromagram Analysis Algorithm. By analyzing the frequency spectrum of your audio file, the system identifies prominent pitch classes (C, C#, D, etc.). These pitch distributions are compared against standard Major and Minor scale profiles to determine the most statistically likely musical key signature.

Harmonic Mixing for DJs

We provide the Camelot Wheel Code (e.g., 8B, 9A). Mixing tracks with compatible codes ensures a seamless transition without clashing harmonic frequencies.

Transposition for Singers

Use the Transposition Calculator to see how shifting a song by semitones changes its root note, helping you find the perfect key for your voice.

More Pitch Tools

This free song key finder identifies the musical key of any audio recording — the tonal centre that determines which notes, chords, and scales belong together in that piece of music. Upload an MP3, WAV, or M4A file and the tool analyses the audio locally in your browser, returning the key name, major or minor classification, and Camelot wheel code for DJ mixing.

Knowing the key of a song is essential for singers choosing music that fits their range, guitarists and pianists learning to play along, producers and DJs mixing tracks harmonically, songwriters understanding the harmonic structure of reference tracks, and anyone who wants to transpose a song to a different pitch.


How to Use the Song Key Finder

Method 1 — Upload an Audio File

  1. Click Upload File and select an MP3, WAV, or M4A from your device
  2. Wait a few seconds while the tool analyses the audio locally in your browser
  3. The key result appears — note name, major or minor, and Camelot code
  4. All processing happens on your device — no audio is ever sent to a server

Best for: Any song where you have the audio file. Works reliably on most commercially produced tracks with clear harmonic content and consistent tempo.

Method 2 — Real-Time Microphone Detection

  1. Click Start and allow microphone access when prompted
  2. Play the song through speakers or another device near your microphone
  3. The tool analyses the incoming audio in real time and identifies the key
  4. Works best on sections with clear harmonic content — verse or chorus with chords

Best for: Songs you’re streaming, playing on vinyl, or listening to on another device where you don’t have the file.


What Is a Musical Key?

A musical key is the set of notes that forms the harmonic foundation of a piece of music. It defines:

  • Which notes belong — a key contains 7 of the 12 possible chromatic notes. Notes outside the key create tension or signal a key change
  • Which chords fit — the key determines which chord combinations sound natural together (called diatonic chords)
  • The emotional character — major keys tend to sound bright, resolved, and positive; minor keys tend to sound darker, more tense, or melancholic
  • The tonal centre — the note everything gravitates toward and resolves to (called the root or tonic)

There are 24 possible keys in Western music — 12 major keys and 12 minor keys, one for each note of the chromatic scale. Every song sits in (or moves between) one or more of these 24 keys.

For the broader relationship between notes, frequencies, and musical structure, the frequency vs note vs octave breakdown covers the fundamentals clearly.


All 24 Musical Keys — With Camelot Codes

The Camelot wheel is a simplified key compatibility system used by DJs for harmonic mixing. It assigns each of the 24 keys a number (1–12) and a letter (A for minor, B for major). Compatible keys for mixing are always adjacent on the wheel — same number different letter, or one number higher or lower.

KeyTypeCamelot CodeRelative Key
C majorMajor8BA minor
G majorMajor9BE minor
D majorMajor10BB minor
A majorMajor11BF# minor
E majorMajor12BC# minor
B majorMajor1BG# minor
F# / Gb majorMajor2BD# / Eb minor
Db / C# majorMajor3BBb minor
Ab majorMajor4BF minor
Eb majorMajor5BC minor
Bb majorMajor6BG minor
F majorMajor7BD minor
A minorMinor8AC major
E minorMinor9AG major
B minorMinor10AD major
F# minorMinor11AA major
C# minorMinor12AE major
G# / Ab minorMinor1AB major
D# / Eb minorMinor2AF# major
Bb minorMinor3ADb major
F minorMinor4AAb major
C minorMinor5AEb major
G minorMinor6ABb major
D minorMinor7AF major

How to use Camelot codes for DJ mixing: Your current track is 8B (C major). Compatible keys for your next track are 7B (F major), 9B (G major), and 8A (A minor) — one step clockwise, one step counter-clockwise, or the same number switching between major and minor. Any of these transitions will sound harmonically smooth.


Why Knowing the Key Matters

For Singers

The key of a song determines whether the melody sits comfortably in your vocal range or pushes you too high or low. A song in C major might have a chorus that reaches up to E5 — fine for a soprano, but a struggle for a bass. Knowing the key lets you use the pitch shifter to transpose the track down to a key that suits your range before practising.

Use the vocal range test online to find your personal range, then compare the song’s highest note to your comfortable ceiling. If the song’s top note sits above your supported range by more than a tone or two, the song needs transposing.

For Guitarists and Pianists

Knowing the key tells you exactly which chords to play. A song in G major contains the chords G, Am, Bm, C, D, Em, and F#dim — the seven diatonic chords of G major. Once you know the key, you can find the chords, understand why certain chord changes sound right, and improvise confidently in that tonal space.

The chord progression finder generates the diatonic chords and common chord progressions for any key — once the key finder gives you the result, plug it into the chord progression finder to get the full harmonic toolkit.

For DJs and Producers

Harmonic mixing — transitioning between tracks that share compatible keys — is the difference between a set that flows musically and one that clashes. The Camelot wheel code in the key finder result tells you instantly which other tracks will mix smoothly with the current song. Moving one step in any direction around the Camelot wheel guarantees harmonic compatibility.

Combine key detection with the BPM detector to get both tempo and key for any track — the two parameters that determine harmonic mixing compatibility.

For Songwriters

Analysing the keys of reference tracks tells you what tonal context they operate in — which chords are available, why certain progressions feel resolved or tense, and how you might draw on the same harmonic palette in your own writing. The key finder gives you the entry point; the chord progression finder shows you what chords that key makes available.


Major vs Minor — What the Key Classification Tells You

Every key result from the finder includes a major or minor classification. This tells you the mode — the character and emotional feel of the tonal centre.

Major keys use the major scale — a pattern of whole and half steps (W-W-H-W-W-W-H) that produces a bright, resolved, generally positive sound. Most pop, country, and upbeat music is in a major key.

Minor keys use one of three minor scales (natural, harmonic, or melodic minor) — the natural minor pattern (W-H-W-W-H-W-W) produces a darker, more tense or introspective character. Most sad songs, minor-key rock, and classical dramatic music operates in minor.

Relative keys: Every major key has a relative minor — a minor key that uses the exact same set of notes. C major and A minor share all the same notes; only the tonal centre differs. On the Camelot wheel, C major (8B) and A minor (8A) share the same number — same harmonic material, just with a different root. This is why mixing between 8A and 8B always sounds natural.

Parallel keys: C major and C minor share the same root note (C) but use different sets of notes. Switching from C major to C minor is a common compositional device — it produces a striking emotional shift while keeping the same tonal centre.


How Song Key Detection Works

The key finder uses digital signal processing to analyse the frequency content of the audio. Here’s the process:

  1. Frequency analysis — the audio is split into short time windows, each analysed using a Fast Fourier Transform (FFT) to identify which pitch classes (C, C#, D, etc.) are most strongly present at each moment
  2. Pitch class profile — across the whole track, the algorithm builds a “chroma vector” — a measurement of how strongly each of the 12 pitch classes appears
  3. Scale template matching — the chroma vector is compared against all 24 key templates (the 12 major and 12 minor scales) to find the best match
  4. Key assignment — the key whose scale template most closely matches the audio’s pitch class profile is returned as the result, along with a confidence score

This algorithm (a variant of the Krumhansl-Schmuckler key-finding algorithm) works reliably on most commercially produced music with clear harmonic content. For a deeper look at the frequency analysis that underlies this, see how FFT works in pitch detection.

All processing runs locally in your browser — no audio is uploaded to any server. Your files are never stored or transmitted.


When Key Detection Is Less Reliable

Key detection algorithms achieve around 85–90% accuracy on most mainstream music. Accuracy drops in specific situations:

Songs with key changes — if a track modulates (changes key mid-song), the algorithm returns the most dominant key across the whole track, which may not accurately reflect any single section. Use the microphone mode and analyse the specific section you’re interested in.

Ambiguous tonality — some jazz, contemporary classical, and experimental music deliberately avoids clear key centres. Modal music (Dorian, Lydian, Mixolydian, etc.) uses a scale structure that may be misidentified as the relative major or minor.

Heavy percussion and beat-heavy tracks — kick drums, snare, and hi-hats produce significant frequency energy that doesn’t correspond to any pitch class. In tracks where drums dominate the mix, the pitch-class profile is noisier and key detection can be less confident.

Very short clips — the algorithm needs sufficient audio to build a reliable chroma vector. Clips shorter than 15–20 seconds may give inconsistent results.

Heavily compressed or low-bitrate audio — compression artefacts introduce non-musical frequency content that can distort the pitch class profile. Use the highest quality audio file available for best results.

For troubleshooting unclear or unexpected results, the noise and background interference guide covers how signal quality affects audio analysis tools.


Transposing a Song After Finding the Key

Once you know the key, you can calculate how far to transpose a track to fit your vocal range or instrument. Transposing means shifting the entire pitch of the song up or down by a set number of semitones, while keeping the same tempo and rhythm.

Example: A song is in A major. Your comfortable singing range tops out at D5. The song’s chorus reaches F#5 — a minor third above your limit. You need to transpose down by 3 semitones, which gives you F# major (the same song, 3 semitones lower). Every note and chord drops by the same interval.

Use the pitch shifter to apply the transposition to an audio file — change the pitch without affecting the tempo, so you can practise at the right key before performing.

For manual transposition calculations — finding what key you’d be in after shifting by X semitones — the frequency to note converter helps you calculate the exact Hz values of the transposed notes.


How to Find the Key of a Song by Ear

The song key finder gives you an objective answer from the audio file — but it’s also worth understanding how musicians identify keys by ear, because that skill supports everything from improvising to sight-singing.

The detailed method-by-method guide is in the how to find what key a song is in article, but here’s the short version:

Method 1 — Find the home chord. The key’s tonic chord is where the song “rests” — the chord that sounds most stable and resolved. Hum along with the song until you find a note that feels like “home.” That note is likely the root of the key.

Method 2 — Match to an instrument. Play notes on a piano, guitar, or any instrument while listening to the song. The note that sounds stable and doesn’t create tension against the song is the root. The scale that fits all the melody notes is the key.

Method 3 — Use the tool. Upload the file and let the algorithm do it in seconds — then train your ear by trying to confirm the result before looking at it.


Frequently Asked Questions

What is a song key finder? A song key finder is a tool that analyses an audio recording and identifies its musical key — the tonal centre that determines which notes and chords the song is built around. It returns the key name (e.g., G major, B minor), the major or minor classification, and optionally the Camelot wheel code for harmonic mixing.

How do I find the key of a song? Upload the audio file to this tool and the key is detected automatically within a few seconds. Alternatively, use microphone mode and play the song near your device’s microphone for real-time key detection. For manual methods, see the how to find what key a song is in guide.

What is the Camelot code? The Camelot code is a DJ mixing system that assigns each of the 24 musical keys a number (1–12) and a letter (A for minor, B for major). Adjacent codes on the Camelot wheel are harmonically compatible — the same number switching between A and B, or one number higher or lower. It makes harmonic key compatibility immediately readable without music theory knowledge.

Can it detect minor keys? Yes. The tool distinguishes between all 12 major and 12 minor keys, returning both the key name and the major/minor classification.

How accurate is the key finder? With a clean, commercially produced audio file with clear harmonic content, accuracy is approximately 85–90%. Accuracy drops on tracks with key changes, heavy percussion dominating the mix, very short clips, or highly ambiguous tonality. The confidence score returned alongside the result indicates reliability.

Does it work for any genre? Yes, though accuracy varies. It works most reliably on pop, rock, country, classical, and EDM with clear chord progressions. Jazz, atonal music, and very percussion-heavy hip-hop tracks may produce less reliable results.

What file formats does it support? MP3, WAV, and M4A. For best results, use the highest quality file available — low bitrate MP3 files may produce slightly less reliable key detection due to compression artefacts.

Is my audio file uploaded to a server? No. All processing happens locally in your browser. Your audio file is never transmitted, stored, or shared anywhere. See the data security page for full details.

Can I use this to find the key for singing? Yes. Find the key, then use the vocal range test online to compare the song’s range against your voice. If the song is too high or low, use the pitch shifter to transpose it to a comfortable key.

What’s the difference between a song’s key and its BPM? The key is the harmonic tonal centre — which notes and chords the song uses. The BPM (beats per minute) is the tempo — how fast the song moves. Both are needed for harmonic DJ mixing. Use the BPM detector to find the tempo alongside the key.


Related Tools

  • BPM Detector — find the tempo of any song alongside its key for complete harmonic mixing data
  • Chord Progression Finder — once you know the key, get the full diatonic chord set and common progressions
  • Pitch Shifter — transpose a song to a different key after detection without changing the tempo
  • Audio File Pitch Detector — analyse the individual notes and pitch content of any audio recording
  • Vocal Range Test Online — find your vocal range to compare against a song’s key and decide whether to transpose
  • Frequency to Note Converter — convert Hz values to note names when working with transposition calculations
  • Note Finder — identify individual notes in real time from any sound source
  • Online Metronome — practise in the detected key at the correct tempo with a steady click
  • How to Find What Key a Song Is In — complete guide to identifying a song’s key by ear and by tool
  • 432 Hz vs 440 Hz — if you’re working across different tuning references, this explains how key detection is affected


Scroll to Top