Free Online Key Finder
Drop in any track to detect its musical key and Camelot code - 100% in your browser, with nothing uploaded to any server.
Drop a track or click to browse
MP3 · WAV · FLAC · AAC · OGG · M4A
How It Works
- 1Your audio is decoded entirely in your browser - nothing is sent to any server.
- 2A chromagram is computed: the energy distribution across all 12 pitch classes (C through B) over time.
- 3The chromagram is matched against major and minor key profiles (Krumhansl-Schmuckler algorithm) to find the best fit.
- 4The detected key is mapped to its Camelot wheel notation so you can find compatible tracks instantly.
Related Tools
Find a Song's Key Without Uploading Anything
Unlike most online key finders, this tool never uploads your audio. The file is decoded and analysed entirely on your device through the browser's Web Audio API, so nothing is sent to a server, stored, or shared. That means you can find the key of a song without software, without creating an account, and without waiting on an upload - just drop a file in and read the result. It works on desktop and mobile, with no download required, making it a fast, private alternative to apps like Mixed In Key when you only need to check a track or two.
MP3 Key Finder
Drop in an MP3, WAV, FLAC, AAC, OGG, or M4A file and the key finder reads its musical key straight from the audio. Because decoding happens in the browser, an MP3 key finder that runs this way needs no plugin, no desktop install, and no upload step - the file never leaves the folder you dragged it from. Full-length tracks and long DJ mixes work too; the analysis reads up to two minutes from the main part of the track, which is ample for a reliable reading.
Song Key Detector: How It Works
TuneTapper's key finder analyzes your audio file directly in your browser using the Web Audio API and the Krumhansl-Schmuckler key-finding algorithm - the same approach used by professional audio analysis tools. No account required, no file uploads, completely free. Step by step, this is what happens when you drop in a file:
- Skip the intro. Dance tracks often open with drums only, which carry no key. The analysis skips the first quarter of the track (at least 20 seconds, at most 90) and reads up to two minutes from there, so it lands in the main, melodic section.
- Build a chromagram. The audio is split into short overlapping slices of about a third of a second. For each slice, the energy between roughly 300 Hz and 2 kHz is folded into the 12 pitch classes, C through B. Kick drums and sub-bass sit below that range, so they don't pull the result.
- Balance the slices. Each slice is normalized before it is added up, so one loud synth stab or riser can't outweigh two minutes of steady harmony.
- Find the tonic. The 12-note profile is compared with the Krumhansl-Schmuckler major and minor key profiles in all 12 transpositions. The root that fits best is the tonic.
- Decide major or minor. A second pass looks only at the higher frequencies, where melodies and chords sit, to choose between major and minor. This is where most key finders go wrong, so it gets its own step.
- Convert to Camelot. The key is mapped to its Camelot code, and the compatible keys for mixing are listed with it.
What Is Musical Key Detection?
Musical key detection (also called key estimation or key finding) identifies the tonal center of a piece of music. Knowing the key of a track is essential for DJs doing harmonic mixing - tracks in compatible keys blend together without clashing harmonies.
What Is the Camelot Wheel?
The Camelot Wheel assigns a number (1-12) and letter (A for minor, B for major) to every musical key. Tracks that share the same Camelot code, or codes that are one step apart, are harmonically compatible and will mix without dissonance. Use the Camelot Wheel Calculator to explore compatible keys for any detected result.
How Accurate Is This Tool?
The Krumhansl-Schmuckler algorithm achieves 70-90% accuracy on commercial music. It performs best on tracks with clear tonal centers - which covers the vast majority of EDM, house, techno, pop, and hip-hop. Atonal, heavily chromatic, or extremely percussive tracks may produce lower confidence scores.
Reading Your Result
The result shows the key in standard notation (for example Am or E♭), its Camelot code (for example 8A), and a confidence score. The confidence score is how closely the track's pitch profile matches the textbook profile for that key, on a scale up to 99. High scores mean a clear tonal center. Scores below about 70 usually mean the track is sparse, changes key, or leans on a mode that sits between major and minor, so treat the result as a starting point and trust your ears.
Under the result you get the keys that mix cleanly with it: the same code, one step up or down the wheel, and the relative major or minor. To see every compatible key at once, open the Camelot key pages or the Camelot Wheel Calculator.
Why Key Finders Disagree
If this tool, Rekordbox, Serato, Traktor and Mixed In Key give you different answers for the same track, it is rarely random. The usual reasons are:
- Relative major and minor. A minor and C major use exactly the same notes, so the only difference is which note feels like home. Detectors often swap the two. On the Camelot wheel these are 8A and 8B, which mix together anyway.
- Key changes. A track that modulates for its last chorus has two right answers. Each tool picks a different stretch of audio to analyse, so each can land on a different key.
- Sparse or percussive tracks. Techno loops, drum tools and rap beats with one bass note give the algorithm little to work with, and every tool has to guess more.
- Tuning and pitch shifting. Detection assumes standard A = 440 Hz tuning. A track that is tuned noticeably sharp or flat, or that was sped up or slowed down without key lock, can read one semitone away from its original key.
Looking for the Tempo Instead?
This page reports a BPM alongside the key, but if tempo is what you actually came for there are better-suited tools. The BPM detector reads the tempo from an audio file or from music playing in the room, and the tap BPM counter measures it from your own taps.
Frequently Asked Questions
- What audio formats does the key finder support?
- The tool supports MP3, WAV, FLAC, AAC, OGG, and M4A files. If your browser can play it, the key finder can analyze it - audio decoding is handled by the browser's native Web Audio API.
- Is my audio file uploaded to a server?
- No. Everything runs locally in your browser using the Web Audio API. Your audio file never leaves your device and is not stored or transmitted anywhere.
- How accurate is the key detection?
- The tool uses the Krumhansl-Schmuckler algorithm - the academic standard for musical key estimation. Accuracy is typically 70-90% on commercial music. It works best on tracks with a clear tonal center, which covers most EDM, house, techno, pop, and hip-hop.
- What is the Camelot notation shown in the result?
- The Camelot Wheel assigns each musical key a code like 8A (A minor) or 8B (C major). DJs use these codes for harmonic mixing - tracks that share the same number, or differ by one step, blend together without harmonic clashing.
- The result doesn't match what my DJ software says - why?
- Key detection is probabilistic. Different algorithms can disagree, especially for tracks with key changes, heavy modulation, or very sparse harmonic content. As a rule of thumb, if confidence is below 70%, try a section of the track that has more melodic content.
- How long can the audio file be?
- Any length. The tool skips the intro (the first quarter of the track, between 20 and 90 seconds) and analyzes up to two minutes from there, which is more than enough for reliable key detection. Only the analysis window is capped, for speed.
- It says A minor but my DJ software says C major. Which is right?
- Possibly both. A minor and C major share exactly the same notes, so key detectors often swap them. On the Camelot wheel they are 8A and 8B, which mix together without clashing, so for harmonic mixing the difference rarely matters.
- Can I find the key of a song on Spotify or YouTube?
- Not directly. Streaming audio is protected, so the key finder needs an audio file on your device, such as an MP3 you bought or a bounce from your own project. If you only need the tempo of something playing, the BPM detector can listen through your microphone.
- Does the key finder work on a phone?
- Yes. It runs in any modern mobile browser. Pick a file from your phone's storage and it is analyzed on the device itself, just like on a computer.