Skip to content
DeviceCheckHub

Key Finder

What key is this song in? Type its chords, press the notes you hear, choose a music file or play into your microphone. The key finder ranks all 24 major and minor keys, shows the Camelot and Open Key codes, and lists the scale and chords of the key. Everything runs on your device.

Try:

Press the notes of the melody or chords; start with the note that sounds like home

The file is analysed in your browser and never uploaded. Songs up to 15 minutes; a key change starts a new section.

Key by section

Each part of the song and its key appear here once a file is analysed.

    Play or sing near the microphone for 10 seconds or more. Nothing is recorded or sent anywhere.

    C major

    Camelot 8B · Open Key 1d · Relative key: A minor

    All 4 chords fit C major. A minor uses the same chords; C major comes first because the song starts on its key chord.

    Keys that fit, best first

    Change the chords, or pick another way in above. Press a key in the list to see its scale and chords.

    C major: scale and chords

    C D E F G A B

    ICiiDmiiiEmIVFVGviAmvii°B°

    Mixes well with (Camelot)

    A minor (8A), G major (9B), F major (7B)

    Practise it

    How to use the key finder

    1. Chords: type the chords in the order they come, such as C G Am F, or paste a whole chord sheet: chord lines over lyrics and [C] inline chords both work, and the words are ignored.
    2. Notes: press the notes of a melody, a riff or a chord. Start with the note that feels like home; it counts a little more.
    3. Song file: choose an MP3, M4A, WAV, OGG or FLAC file. It is analysed on your device, and a song that changes key is shown section by section with times.
    4. Microphone: press Start listening and play or sing. The answer updates while you play and settles after about ten seconds.
    5. The best key is at the top, with its Camelot and Open Key codes and its relative key. Below, the six keys that fit best are ranked; press any of them to see its scale, its chords in roman numerals, the keys it mixes with, and links to practise it.

    How to find the key of a song by ear

    The key of a song is its home note, the tonic, and whether it is major or minor. Most songs settle on the tonic chord at the end of the chorus or the song, so start there: sing or hum the lowest note that feels finished when the music stops. Then find that note on a piano or guitar. If the music around it sounds bright and open, the song is probably in the major key on that note; if it sounds darker or sad, the minor key.

    The chords help too. Write down the chords of the verse and chorus and look for the key whose seven chords contain them. In a major key the chords are I, ii, iii, IV, V, vi and vii°: in G major, G, Am, Bm, C, D, Em and F♯°. If your song uses G, C, D and Em, it is almost certainly in G major or E minor, and the first and last chords usually settle which. This is exactly what the finder does, for all 24 keys at once.

    Sheet music gives a third clue: the key signature. Each number of sharps or flats belongs to one major key and its relative minor, listed in the table below. Two sharps is D major or B minor; three flats is E♭ major or C minor.

    Major or minor? Relative keys

    Every major key shares its notes with one minor key, its relative minor, three semitones lower: C major and A minor, G major and E minor, F major and D minor. Their chords are the same, so a progression such as Am–F–C–G fits both. What decides it is which chord sounds like home. Songs in minor often add a major V chord (E or E7 in A minor), whose G♯ is outside C major, and that is a strong sign of the minor key. The finder counts that chord for minor keys and tells you when the two are a close call.

    How key detection from audio works

    For a recording, the finder measures how strongly each of the 12 notes sounds, octave by octave folded together: a chromagram. It then compares that pattern with the key profiles that Carol Krumhansl and Edward Kessler measured in listening experiments, which give how well each note fits each key. The key whose profile matches best wins, and the match score (from −1 to 1) shows how clear the result is. Drums, speech and noise spread energy over all 12 notes, so they are recognised and don’t produce a false key.

    Songs don’t always stay in one key. The finder also looks at the song in overlapping windows of 12 seconds and joins neighbouring windows in the same key into sections, so a final chorus that moves up a step starts a new section, with its time.

    Camelot and Open Key for DJs

    DJs mix tracks in compatible keys so the music doesn’t clash. The Camelot wheel numbers the keys 1 to 12 round the circle of fifths, with B for major and A for minor; Open Key, used by Traktor, does the same with d and m and starts the count from C major. A track mixes smoothly with another of the same code, with the other letter of the same number (its relative key), or with one number either side. The finder shows the codes for every result and lists the keys each one mixes with.

    CamelotMajor key (B)Minor key (A)Open KeyKey signature
    1B majorG♯ minor6d / 6m5 sharps
    2F♯ majorE♭ minor7d / 7m6 sharps
    3D♭ majorB♭ minor8d / 8m5 flats
    4A♭ majorF minor9d / 9m4 flats
    5E♭ majorC minor10d / 10m3 flats
    6B♭ majorG minor11d / 11m2 flats
    7F majorD minor12d / 12m1 flat
    8C majorA minor1d / 1mnone
    9G majorE minor2d / 2m1 sharp
    10D majorB minor3d / 3m2 sharps
    11A majorF♯ minor4d / 4m3 sharps
    12E majorC♯ minor5d / 5m4 sharps

    Tips for a sure answer

    Frequently asked questions

    How do I find the key of a song?

    Type its chords into the key finder, or press the notes of the melody, or choose the song file. Every key is scored and the best ones are listed with how well they fit. By ear: hum the note that feels like home at the end of a phrase. That note is the tonic, and whether the song sounds bright or sad around it tells you major or minor.

    How does the key finder work from chords?

    Each key has seven chords of its own. In C major they are C, Dm, Em, F, G, Am and B°. The finder counts how many of your chords belong to each of the 24 keys. A key chord at the start or the end counts a little extra, because most songs begin or end on it. Chords from outside the winning key are named, since they are usually borrowed for colour.

    Why does it say two keys fit equally?

    Every major key has a relative minor with exactly the same notes and chords: C major and A minor, G major and E minor. The chords alone can’t tell them apart, so the finder looks at which key chord the song starts or ends on, and tells you when it’s a close call. Trust your ear for the chord that sounds like home.

    Can it find the key of an MP3?

    Yes. Choose an MP3, M4A, WAV, OGG or FLAC file and it is analysed on your device; nothing is uploaded. The finder measures how much of each of the 12 notes the music holds and compares that with the key profiles from listening experiments. It also splits the song into sections, so a key change shows up with its time.

    What is the Camelot key?

    A code DJs use for harmonic mixing, from the Camelot wheel: numbers 1 to 12 go round the circle of fifths, B for major and A for minor. C major is 8B and A minor is 8A. Tracks mix smoothly with the same code, the other letter of the same number, or one number either side. Open Key, used by Traktor, is the same idea with d for major and m for minor.

    Are the key and the scale of a song the same thing?

    Nearly. The key is the tonic and the mode, such as A minor; the scale is the set of notes that key uses. A song in A minor mostly uses the A natural minor scale but often raises the 7th (G♯) on the V chord, which is the harmonic minor. The finder shows the scale of each key and its chords, including that major V.

    Why might the result be wrong?

    Songs that change key, stay on one or two chords, or use the modes (such as Dorian or Mixolydian) fit several keys. Recordings with heavy drums, distortion or detuned instruments blur the notes. Check the top two or three keys in the list, play the scale over the song, and keep the one that sounds right.

    Last updated · About DeviceCheckHub