Musical Key Finder for Audio Files

Listens to an audio file, measures how much energy falls on each of the twelve pitch classes, and compares that profile with the Krumhansl-Kessler major and minor key profiles.

Use the tool

Why this tool exists

Knowing the key helps you mix tracks harmonically, pick a scale for a solo or find a sample that fits. The method counts pitch classes over time and finds the key whose typical note usage matches best. A tuning estimate corrects for recordings that are slightly off A440.

It is a statistical guess. A song and its relative key (for example C major and A minor) share the same notes and are easy to confuse. Music that modulates, atonal music and noisy percussion give lower scores. The result lists three candidates with their Camelot wheel codes so you can see the close alternatives.

How to use it

  1. Choose an audio file.
  2. Press Run.
  3. Read the top three keys and their match scores.
  4. If the first two are a relative major and minor pair, trust your ear to choose.

Frequently asked questions

How reliable is it?

In our synthetic tests it named the right key every time. Real recordings are harder; a match above about 0.8 is usually dependable.

What is the Camelot code?

A wheel notation DJs use: 8B is C major and 8A is A minor, and neighbouring numbers mix well.

Does it use my whole file?

It analyses up to two minutes from the middle of the file.

Which key profiles are used?

The Krumhansl-Kessler probe-tone profiles for major and minor.