Free Key Detector Online

HPCP Chromagram · Camelot Notation · No Upload

Detect the musical key and Camelot value of any track using HPCP chromagram analysis. Confidence scoring, alternative candidates, harmonic neighbors — runs entirely in your browser.

Drop your audio file here

MP3, WAV, FLAC, OGG — processed locally, never uploaded

Browse file
MP3WAVFLACOGG

What Is Musical Key and Why Does It Matter?

The musical key of a track defines the set of notes that sound "at home" within that piece of music. Major keys sound bright and uplifting; minor keys sound darker and more emotional.

For DJs, knowing the key of every track enables harmonic mixing — blending tracks that share compatible keys. When you mix in key, transitions sound musical and intentional. Our free key detector online gives you both standard notation (e.g., "A minor") and the Camelot Wheel value (e.g., "8A") used by professional DJ software.

How Our Algorithm Works

01
Mono Mix + Band-pass Filter: Audio is mixed to mono, then filtered to 80Hz–5kHz to focus on the tonal range and remove sub-bass rumble and high-frequency noise.
02
HPCP Chromagram: Harmonic Pitch Class Profile: for each spectral peak, energy is distributed across pitch classes using a Gaussian window, and harmonics (2f–8f) are summed to reinforce the fundamental. This is the same approach used by Essentia (Rekordbox/MIK).
03
Multi-Segment Analysis: 4 segments of 20s each are analyzed independently. Segments agreeing with the majority key get full weight; outlier segments are down-weighted. This eliminates intro/outro key confusion.
04
Three-Profile Matching: The chroma vector is compared against 24 key profiles using three systems: Krumhansl-Schmuckler, Temperley-Kostka-Payne, and Temperley 2007 — averaged for maximum robustness across genres.
05
Confidence Scoring: Confidence combines the score gap between top candidates and segment consistency. High consistency across segments = higher confidence.

Camelot Wheel Reference

Minor (A)
1AG# / Ab minor
2AD# / Eb minor
3AA# / Bb minor
4AF minor
5AC minor
6AG minor
7AD minor
8AA minor
9AE minor
10AB minor
11AF# minor
12AC# minor
Major (B)
1BB major
2BF# major
3BC# major
4BG# / Ab major
5BD# / Eb major
6BA# / Bb major
7BF major
8BC major
9BG major
10BD major
11BA major
12BE major

Frequently Asked Questions

Related Tools

From the Blog