Song Key Finder

Drop in a track and find out what key it is in. The note histogram is shown with the answer, so you can see why.

Drop an audio file to find its key

MP3, WAV, M4A, FLAC or OGG

Your file never leaves your browser — the analysis runs on your device and nothing is uploaded.

Make your music video, from $29

Got the key? Melodious turns the whole track into a music video — See how

What the key finder returns on real tracks

The same five tracks, run through the detector above. Look at the label and the runner-up: they tell you which answers to trust and which to check.

Clear calls

  • Track 2 (0:38): G# minor, high confidence (1.00). Runner-up G# major

Close calls to check by ear

  • Track 1 (0:38): D# minor, medium confidence (0.65). Runner-up F# major, its relative key
  • Track 3 (1:20): C# major, estimated confidence (0.40). Runner-up B minor
  • Track 4 (2:57): C major, estimated confidence (0.26). Runner-up C minor
  • Track 5 (3:12): E minor, estimated confidence (0.07). Runner-up G major, its relative key

Why close calls cluster on relative keys

  • C major (C D E F G A B) and A minor (A B C D E F G)
  • G major (G A B C D E F#) and E minor (E F# G A B C D)
  • D major (D E F# G A B C#) and B minor (B C# D E F# G A)
  • F major (F G A Bb C D E) and D minor (D E F G A Bb C)

Measured by this page's detectors on a 48 kHz mono decode, the rate most browsers decode at, of five tracks from our own test library. These are what the tool returned, not verified answers, and the key reading in particular can change with the decode rate; the confidence labels say how far to trust each one.

How to find the key of a song

Drop the audio file onto the tool above. It folds the notes in your track onto the twelve note names, compares that pattern with the profile of each major and minor key and returns the closest match. The answer comes with a confidence label, the runner-up and the note histogram it came from. Nothing is uploaded and no account is needed.

Six tempo and key tools, and which one to open

These six pages run in your browser and share a small set of tools: a tempo detector, a key detector, a tap timer and a wheel. They are separate pages because people arrive with different things in hand, and the right page depends on what you have.

BPM finder: open it when you have the audio file and want its BPM.

Tap tempo: open it when you have no file, only a song playing somewhere or in your head.

BPM and key finder: open it when you want tempo and key from one file in one go.

Tempo finder: open it when you read tempo as a word such as Allegro, or want typical BPM by genre.

Camelot wheel: open it when you already know a key and want to know what mixes with it.

How the key finder reads your track

The tool takes about three hundred short slices spread across the file and measures the frequencies in each. Every frequency between roughly C3 and C7 is folded onto one of the twelve notes, so every A in every octave counts towards A, and the totals become the histogram shown with the answer.

Then it compares that histogram with the profile of each key. A major key leans on its tonic, fifth and third, and a minor key leans on its tonic, fifth and flattened third. The profiles come from the 1982 listening experiments of Carol Krumhansl and Edward Kessler, in which musicians rated how well each note fitted an established key. The best of the twenty-four matches wins.

Why relative major and minor get confused

C major and A minor contain identical notes, and so does every other relative pair. If a key were only a set of notes the two would be one key, and counting notes could never separate them. What separates them is emphasis: the note the music returns to and the chord it rests on. That shows up faintly in the histogram, and the profiles pick it up often but not always.

So the tool does not hide the problem. When the runner-up is the relative key it says so, and the label usually drops to estimated. Spend ten seconds on it: hum the note the song settles on, and you have the answer faster than any more computation would give.

What this key finder does not do

It gives one key per file. It does not follow modulations, name chords, read a key signature or work out the mode beyond major and minor, so a modal tune such as a Dorian groove will land on whichever of the twenty-four keys fits best, with a lower label. Heavy distortion and percussion bury the notes. It measures the pitch the recording sounds at, so a track sped up or slowed down will read at its actual pitch rather than its nominal key.

What a key is useful for

Writing a part that fits, choosing a sample that sits in tune, transposing a song into your vocal range and choosing a backing track for a cover all start with the key. Mixing one record into another starts with it too: the Camelot wheel turns a key into a code and shows what mixes with it, and the BPM and key finder reads tempo and key from one file.

From a key to a music video

A key the tool is reasonably sure of is carried into the video brief as a fact about the song, next to anything you type, and a reading that is close to a coin flip is left out. Melodious then plans the storyboard from your file and your words, scene by scene. The video is a paid product, separate from this page. The guide to writing a brief for your AI music video director shows what to add, and the AI music video generator page shows the result.

Frequently asked questions

How do I find out what key a song is in?

Drop the audio file onto the tool above. It measures how much of each of the twelve notes the track contains and matches that pattern against the twenty-four major and minor keys, then returns the best fit with a confidence label. To check it, play the song and hum the note it feels like it comes home to. That note is the tonic.

Why did the key finder say C major when I think the song is A minor?

Because those two keys use the same seven notes, and a method that counts notes cannot fully separate them. What differs is which note the music treats as home. The tool weighs that and says so when the runner-up is the relative key. When it does, trust your ear and pick the note the song settles on at the end of a phrase.

What does the note histogram under the result show?

Twelve bars, one per note name, showing how much energy the track puts on each, with every octave of a note folded together. A tall bar on the tonic and the fifth, with the scale notes next, is a key that fits. A flat, even histogram means the track gives the detector little to work with.

How is a key's confidence label worked out?

From the margin between the best-fitting key and the second best, scaled to a figure between 0 and 1. Above 0.75 is high, above 0.45 is medium, and at or under 0.45 is estimated. A key can fit well and still score low if its relative key fits almost as well, which is why close calls show as estimated.

Can the key finder handle a song that changes key?

It returns one key for the whole file, whichever dominates. A song that modulates up a tone for the last chorus will report the key it spends longer in. If you need the key of one section, cut that section into its own file and analyse it alone.

What does the key finder say about a drum loop or a spoken track?

Little, and it says so. With no sustained pitched notes there is nothing to fold onto the twelve notes, so you get low confidence or no key rather than an invented one. A confident key for a track with no pitched content would be the tool being wrong with conviction.

How do I find a song's key by ear?

Play the song and find the note that sounds like rest, usually where the melody ends the final phrase. Hum or play it on a keyboard. That is the tonic. Then decide whether the song sounds bright, a major key, or sombre, a minor key. Check your answer against the tool, and use the ear when the two disagree on a close call.

Why does the key finder show a sharp name and a flat name?

Some keys have two spellings with the same sound: D sharp minor and E flat minor are one key. The tool shows the sharp spelling and lists the flat one beneath it, because a musician or a chord chart will use whichever has fewer accidentals.

Does the song key finder upload my track?

No. The file is decoded and analysed on your device. You can watch the network tab while it runs, or go offline after the page loads and it still works.

You have the key. Want the video?

Attach the track and describe what you want. An AI director plans the storyboard scene by scene and renders it to your audio.

Start your video

More tools: BPM finder · BPM and key finder · Camelot wheel · Circle of fifths · Chord progression generator

We use analytics tools (GTM, Plausible, PostHog) to improve Melodious AI. Manage this in Privacy Settings anytime.