Skip to content
Tutorial

How to Find the Key of a Song: 5 Easy Ways (2026)

How to find what key a song is in: by ear, from the chords or sheet music, or with a free key finder that also shows the relative key, Camelot code and BPM.

Editorial teamUpdated Oct 25, 202610 min read
How to Find the Key of a Song: 5 Easy Ways (2026)
On this page

What key is this song in? It's the first question when you want to sing a song in your range, play along on guitar, mix two tracks or build a remix. To find the key of a song you need two things: the home note the music keeps returning to, and whether it sounds major or minor. This guide shows five ways to get there: a free key finder that detects the key in seconds, finding it by ear, working it out from the chords, reading the key signature in sheet music, and looking it up. You'll also learn how relative major and minor keys work, what Camelot codes mean, and why two tools sometimes disagree.

What the key of a song means

The key of a song is its tonal center: one home note, called the tonic, plus a scale built on it. "A minor" means the music settles on A and draws most of its notes from the A minor scale. There are 12 possible home notes and two common modes, major and minor, which gives 24 keys.

  • The tonic is the note where a phrase sounds finished. Stop a song at the end of the chorus and it's usually the note you'd hum.
  • The mode describes the scale. Major keys tend to sound bright and settled, minor keys darker, though mood alone is a weak test.
  • Key isn't the same as chord. A song in G major uses several chords, such as G, C, D and E minor, but only one of them feels like home.

Knowing the key pays off quickly: singers can move a song into their range, players know which chords to expect, and DJs and producers can pair tracks that share notes.

Method 1: detect the key of a song with a free key finder

The fastest way to find the key of a song is to let software listen for you. Our free key finder runs in your browser: the file is decoded and analyzed on your own device, never uploaded, and you don't need an account.

  1. Open the song. Choose or drop an MP3, WAV, M4A, OGG or FLAC file of up to 100 MB. The tool reads up to the first 10 minutes.
  2. Read the key and the confidence. The result names the key and mode, such as E minor, with a confidence score. A low score means the harmony in the file isn't clear, so treat the answer as a guess.
  3. Check the other likely keys. The next two candidates are listed under the result. When confidence is low, the right answer is often one of them.
  4. Note the extras. You also get the relative key, the Camelot code and the tempo in BPM, and you can copy the whole result in one click.

Under the hood, the key finder measures how strongly each of the 12 pitch classes (C, C♯, D and so on) appears in the song, shown as the pitch class profile. It then compares that profile with templates for all 24 major and minor keys, a classic method from music psychology research known as the Krumhansl-Kessler key profiles, and the closest match wins. It's signal processing, not AI, which is why it can run entirely on your device.

Checking a whole DJ set or playlist? The BPM & Key Finder takes up to 50 tracks at once, gives each one its key, Camelot code and BPM, sorts them and exports a CSV.

Find the key of your song now

Drop in an audio file to see its key, relative key, Camelot code and BPM. Free, in your browser, and nothing is uploaded.

Open the key finder

Method 2: how to find the key of a song by ear

You don't need perfect pitch for this, just an instrument (or a free piano app) and a few minutes.

Step 1: find the home note

Play the song and stop at the end of the chorus or at the very end. Hum the note that feels like rest, the one the melody wants to land on. Then play notes on a keyboard or guitar until one matches your hum. When the two match, they blend into a single sound; when they're slightly off, you hear a wobble.

The bass is a good second opinion. At the end of a section, the bass usually plays the home note under the final chord.

Step 2: decide between major and minor

Play the major chord on your home note while the song plays, then the minor chord. For A, that's A major (A, C♯, E) and A minor (A, C, E). One will blend and the other will clash. The difference is a single note, the third: C♯ in A major, C in A minor.

Step 3: confirm with the scale

Play the scale of your key slowly over the song. If every note fits, you have the key. If one note keeps clashing, you may have picked a note a fifth above or below the real tonic (the most common mix-up), or the song uses a mode, covered below.

Method 3: how to find the key from the chords

If you have a chord chart, or can work out the chords on guitar, the chords point straight to the key. Every major key has seven chords built from its own scale, always in the same pattern: major, minor, minor, major, major, minor and diminished. The table shows the chords of the keys guitarists and pianists meet most often.

KeyIiiiiiIVVvivii°
C majorCDmEmFGAmB°
G majorGAmBmCDEmF♯°
D majorDEmF♯mGABmC♯°
A majorABmC♯mDEF♯mG♯°
E majorEF♯mG♯mABC♯mD♯°
F majorFGmAmB♭CDmE°
B♭ majorB♭CmDmE♭FGmA°

The vi chord is the relative minor: A minor in C major, E minor in G major. A minor key uses the same chords as its relative major, centered on the vi chord instead.

  1. List every chord in the verse and the chorus.
  2. Find the row that contains them all. G, D, E minor and C appear together only in G major, or in its relative, E minor.
  3. Pick the home chord. The first and last chords, and the chord the song keeps resolving to, usually name the key. If the song centers on E minor rather than G, it's in E minor.
  4. Look for the V chord. A strong move from V to I, such as D to G, confirms the key. In minor keys the V chord is often major because of a raised seventh: an E major chord (with its G♯) in a song centered on A minor is a strong sign of A minor.

Pop and rock often borrow chords from outside the key. A song in G major might use F, which isn't in the G major row. That's usually the flat seven chord, a rock staple, and the key is still G. If the F keeps coming back, musicians would call it G Mixolydian, a mode with a lowered seventh.

Method 4: find the key from sheet music

Printed music shows the key signature at the start of every staff: a group of sharps or flats. Count them and read the table. Each key signature belongs to one major key and its relative minor, and the last column gives their Camelot codes.

Key signatureMajor keyRelative minorCamelot
No sharps or flatsC majorA minor8B / 8A
1 sharpG majorE minor9B / 9A
2 sharpsD majorB minor10B / 10A
3 sharpsA majorF♯ minor11B / 11A
4 sharpsE majorC♯ minor12B / 12A
5 sharpsB majorG♯ minor1B / 1A
6 sharpsF♯ majorD♯ minor2B / 2A
1 flatF majorD minor7B / 7A
2 flatsB♭ majorG minor6B / 6A
3 flatsE♭ majorC minor5B / 5A
4 flatsA♭ majorF minor4B / 4A
5 flatsD♭ majorB♭ minor3B / 3A
6 flatsG♭ majorE♭ minor2B / 2A

Two shortcuts save you the table:

  • Sharps: the major key is one half step above the last sharp. If the last sharp is C♯, the key is D major.
  • Flats: the major key is the second-to-last flat. With B♭, E♭ and A♭, the key is E♭ major. One flat on its own means F major.

To choose between the major key and its relative minor, look at the final chord or bass note, and watch for accidentals: music in A minor often marks G♯, the raised seventh. Keep in mind that a songbook arrangement may be written in a different key from the recording, so check the result against the track.

Method 5: look it up or let DJ software do it

For released songs, databases such as Tunebat list the key, Camelot code and tempo of tens of millions of tracks, and DJ apps such as rekordbox, Serato DJ and Traktor analyze the key of every track you add. Two catches: a database entry may describe a different version than yours (a remaster, a live take or a sped-up edit), and programs can spell the same key differently, such as D♭ major and C♯ major. If the answer matters, confirm it by ear or with the key finder on your own file.

Relative major and minor: why you see two answers

C major and A minor use exactly the same seven notes, all the white keys on a piano. They're called relative keys, and the only difference is which note feels like home. The relative minor sits three semitones below the major tonic (C down to A), and the relative major sits three semitones above the minor tonic.

Because the notes are identical, any key detector can waver between the two, which is why our key finder shows the relative key next to every result. To decide, listen to the end of the chorus. If it lands on a bright C chord, the song is in C major. If it lands on a darker A minor chord, it's in A minor.

The other common mix-up is a key a fifth away, such as C major and G major. They share six of their seven notes, so if neither the result nor its relative key sounds right, try the key a fifth above or below.

Camelot codes: mixing songs in key

DJs often write keys as Camelot codes: positions on a wheel numbered 1 to 12, with A for minor keys and B for major keys. C major is 8B, A minor is 8A, and relative keys always share a number. From any code, three moves usually sound smooth:

  • The same code: 8A to 8A.
  • One number up or down, same letter: 8A to 7A or 9A, keys a fifth apart.
  • The same number, other letter: 8A to 8B, the relative major or minor.

So a track in E minor (9A) can blend into A minor (8A), B minor (10A) or G major (9B). The key finder shows the code with every result, the sheet music table above lists all 24, and the BPM & Key Finder can sort a whole set by Camelot code.

Why key finders disagree, and how to double-check

  • Key changes. Many songs modulate, often up a step for the last chorus. A tool that reports one key per file, like ours, gives the key that dominates the whole song. Analyze sections separately if you need each key.
  • Modes and blues. Songs built on Dorian, Mixolydian or blues scales don't fit major and minor templates neatly, so expect the result to name the nearest major or minor key.
  • Tuning. Bands that tune down a half step, a habit in rock, and older recordings that drift from standard pitch can sit between two keys.
  • Sped-up and slowed versions. Playing a track about 6% faster raises it one semitone, so a sped-up edit is in a different key from the original. Check the exact file you'll use.
  • Little harmony. Drum intros, rap over a sparse beat and heavy distortion give the analysis little to work with. Watch the confidence score.

When two readings disagree, play the suggested tonic chord over the chorus. The right key sounds settled; the wrong one sounds like it's still waiting to resolve.

What to do once you know the key

Find the key and BPM of a whole set

Drop in one song or up to 50 to get each track's key, Camelot code and BPM, sort them for mixing and export a CSV. Free, and nothing is uploaded.

Open the BPM & Key Finder
FAQ

Frequently asked questions

How do I find what key a song is in quickly?+

Drop the file into a free key finder such as ours. In a few seconds it reports the key and mode, a confidence score, the relative key and the Camelot code, all inside your browser. Without a tool, hum the note the chorus ends on, find it on an instrument and test its major and minor chords against the song.

What key is a song in if there are no sharps or flats?+

A key signature with no sharps or flats means C major or A minor. Check the last chord and the bass note: if the music comes to rest on C, it is C major. If it rests on A, and you see G sharps along the way, it is A minor.

Can I find the key of a song from YouTube or Spotify?+

Our key finder works on audio files saved on your device and doesn't take streaming links. For a song you can only stream, use the by-ear method while it plays or look it up in a song database. If you own a copy of the track, drop that file into the key finder.

How do I know if a song is in a major or minor key?+

Find the home note, then play its major chord and its minor chord while the song plays. The one that blends is the mode. Mood alone can fool you: plenty of upbeat songs are in minor keys, and many sad ballads are in major.

Why does the key finder show the relative minor instead of the major?+

Relative keys such as C major and A minor use the same seven notes, so the analysis can lean either way. Our key finder shows the relative key next to every result. To choose, listen for which chord feels like home at the end of the chorus.

What is the Camelot key of a song?+

It's the song's key written as a position on the Camelot wheel, which DJs use for harmonic mixing. Numbers run from 1 to 12, A means minor and B means major, so A minor is 8A and C major is 8B. Codes that match, sit one number apart or share a number usually mix well.

Can a song be in more than one key?+

Yes. Many songs change key, often for a final chorus, and some move between a major key and its relative minor. Our key finder gives one overall key per file, the one that dominates. To find every key, analyze the sections separately or follow the changes by ear.

How do I find the key of a song on guitar?+

Play single notes on the low E or A string until one matches the note the song resolves to, then strum the major and minor chords on that note. If the guitarist uses a capo, the chord shapes don't name the key: G shapes with a capo on the second fret sound in A.

Is the key finder free, and is my song uploaded?+

It's free, needs no sign-up and runs in your browser. The file is decoded and analyzed on your device and never uploaded. It reads MP3, WAV, M4A, OGG and usually FLAC files up to 100 MB, and analyzes up to the first 10 minutes.

FIND YOUR VOICE

Ready to try it yourself?

Pick a voice or clone your own and turn text into natural speech.

Start creating