🛠️ FreeTool.jp JP
FAQ Privacy Policy

Music Key Detector

Automatically detect musical key from audio files

🎵

音声ファイルをドロップ

MP3, WAV, M4A, OGG, WebM etc.

About Music Key Detector

The 'Music Key Detector' is a simple yet powerful free online tool that automatically analyzes and detects the musical key and scale (major or minor) of any audio file simply by dragging and dropping it into your browser.

Under the hood, it leverages the Web Audio API to perform FFT (Fast Fourier Transform) spectral analysis, computing a chromagram—a 12-dimensional pitch class profile vector (C, C#, D, D#, E, F, F#, G, G#, A, A#, B). It then calculates Pearson correlation coefficients against the 24 tonal profiles (12 keys × major/minor) experimentally derived by renowned music psychologists Krumhansl and Kessler, displaying the highest-correlated key as the detected result along with a confidence percentage.

Whether you need to quickly identify the key of sample loops for DTM and beat-making, plan harmonic mixing for DJ sets, determine the original key for cover performances or ear-training transcription, or find the transposition reference for karaoke singing—this tool delivers professional-grade tonal analysis across every musical scenario.

All processing runs entirely in browser-side JavaScript, meaning your audio data is never uploaded to any server, ensuring complete privacy while providing world-class key detection capabilities absolutely free of charge.

How to use Music Key Detector

  1. Drag and drop an audio file (MP3, WAV, M4A, OGG, WebM, etc.) onto the drop zone in the center of the screen, or click to browse and select a file.
  2. Once the file is loaded, an 'Analyze' button appears. Click it to begin automatic FFT analysis via the Web Audio API.
  3. When analysis completes, the detected main key (e.g., C Major, A Minor) is displayed prominently along with a confidence percentage.
  4. Additionally, a pitch class distribution chart for all 12 notes and a ranked list of the top 5 key candidates are shown, helping you evaluate ambiguous or multi-tonal tracks.

Benefits of Music Key Detector

  • [High-Accuracy Detection Based on Krumhansl-Kessler Theory]: By employing correlation analysis against tonal profiles derived from empirical music psychology research, this tool achieves reliable key identification including major/minor distinction—far superior to simple peak detection. The confidence score lets you instantly assess result certainty.
  • [Complete Browser-Side Processing for Privacy]: All audio analysis runs entirely within browser JavaScript (Web Audio API + OfflineAudioContext), meaning your audio files are never transmitted to any external server. You can safely analyze unreleased tracks and work-in-progress demos.
  • [12-Note Pitch Class Distribution Visualization]: Beyond just the detected key, the tool visualizes the intensity of all 12 pitch classes (C through B) in a bar chart. This provides intuitive insight into a track's harmonic structure, useful as reference material for composition and arrangement.
  • [Top 5 Candidate Ranking for Multi-Angle Analysis]: In addition to the primary key, the top 5 key candidates ranked by correlation score are displayed. This helps you compare multiple possibilities for tracks with frequent modulations or complex modal interchange.

他のカテゴリ

Audio Tools の人気ツール TOP 10

Audio Tools のすべてのツール (48件)