GenSongGenSong
Musical key tool · Browser-only · No sign-up

Song Key Finder

Estimate the musical key of any audio file right in your browser. See Camelot and Open Key codes, compatible mix keys, the 7 scale notes and diatonic triads, and hear the tonic chord to check the reading by ear.

Drop songs here to find the key

or choose files from your device

MP3, WAV, M4A, AAC, OGG or FLAC · up to 200 MB and 30 minutes per file

Songs are analyzed on this device and never uploaded.

Features

Harmonic details built for mixing, singing, and transcribing

More than a bare key label: verify close calls by ear and inspect every note and chord in the scale.

Scale notes and 7 triads

Expand Scale and chords to view all 7 notes of the detected major or natural minor scale, 7 Roman-numeral triads, and a runner-up key when scores sit within 0.05.

On-device harmonic analysis

Nothing leaves your computer or phone. Audio mixes down to mono at 22,050 Hz inside the browser tab, supporting files up to 200 MB and 30 minutes.

Camelot, Open Key, and Mixes with

Read both harmonic wheel systems side by side, plus Mixes with chips listing the relative key and both adjacent wheel neighbors for compatible DJ sets.

Batch queue and CSV output

Process multiple audio tracks sequentially, sort cards by Camelot code, BPM, or order added, copy every line at once, or export a clean CSV spreadsheet.

Hear the chord and peak filtering

Play the tonic triad against your recording with Hear the chord. Analysis keeps only spectral peaks from 55 Hz to 2,093 Hz (A1–C7) to ignore drums and broadband noise.

Sample song and BPM included

Each track also receives a tempo estimate with no account or daily cap. No file ready? Click Try a sample to inspect a finished reading right away.

How it works

How to detect and confirm a song's key

  1. 1

    Load audio files or a sample

    Choose MP3, WAV, M4A, AAC, OGG, Opus, or FLAC files of at least 6 seconds (30 seconds or longer builds a steadier profile), or load the built-in sample track.

  2. 2

    Compare and audition the tonic

    Results appear in a few seconds for a typical song. Press Hear the chord and listen whether it sounds like the song's home chord.

  3. 3

    Plan transitions or copy scales

    Check Mixes with chips, inspect the 7 diatonic triads, sort your batch by Camelot order, download CSV, or launch a matching prompt in GenSong.

Reference guide

Camelot, Open Key, chords, and resolving close readings

Complete 24-key lookup data, harmonic mixing rules, and an honest breakdown of why automatic key finders sometimes split between two keys.

Complete 24-key Camelot and Open Key reference chart

Both DJ wheel systems arrange keys around the circle of fifths so adjacent numbers differ by only one note. Camelot labels major keys B and minor keys A, placing C major at 8B and A minor at 8A.

Open Key uses the same wheel shifted by 7 steps (Open Key = Camelot minus 7, wrapped around 1 to 12), labeling major keys d and minor keys m, with C major at 1d and A minor at 1m. Keys sharing a row below are relative pairs with identical note sets.

Wheel #Major key (Camelot B)Open Key (major)Minor key (Camelot A)Open Key (minor)
11B · B major6d1A · G♯ minor6m
22B · F♯ major7d2A · E♭ minor7m
33B · D♭ major8d3A · B♭ minor8m
44B · A♭ major9d4A · F minor9m
55B · E♭ major10d5A · C minor10m
66B · B♭ major11d6A · G minor11m
77B · F major12d7A · D minor12m
88B · C major1d8A · A minor1m
99B · G major2d9A · E minor2m
1010B · D major3d10A · B minor3m
1111B · A major4d11A · F♯ minor4m
1212B · E major5d12A · C♯ minor5m
All 24 keys paired by relative major and minor, using the exact sharp/flat spellings output by this key finder.

How to read Mixes with for harmonic transitions

Under each detected key, Mixes with displays three compatible companion keys—giving you four smooth options when you include staying in the same key. Every transition shares either all 7 or 6 of 7 scale pitches.

  • Same number, opposite letter (relative key): shares all 7 notes. Moving from 8A (A minor) to 8B (C major) shifts mood from minor to major without introducing a single foreign note.
  • Down one number, same letter: shares 6 of 7 notes (a fifth lower / fourth higher), such as 8A (A minor) to 7A (D minor).
  • Up one number, same letter: shares 6 of 7 notes (a fifth higher), such as 8A (A minor) to 9A (E minor).
  • Wheel wraparound: 12 connects back to 1 (12A mixes with 11A, 1A, and 12B; Open Key 5m mixes with 4m, 6m, and 5d).

Reading Scale and chords: major vs. natural minor triads

Each card lists the 7 notes of the detected scale and the 7 diatonic triads built from those notes using Roman numerals. Uppercase marks a major chord, lowercase marks minor, and the degree symbol (°) marks a diminished triad.

Major readings follow I ii iii IV V vi vii°. Minor readings use natural minor: i ii° III iv v VI VII. Below, C major (notes C, D, E, F, G, A, B) and A natural minor (A, B, C, D, E, F, G) share the exact same seven chords—only the home chord (degree 1) shifts. Many minor songs also raise the seventh scale note to play a major V chord (E instead of Em in A minor).

Scale degreeC major (I ii iii IV V vi vii°)A natural minor (i ii° III iv v VI VII)
1 (tonic)C (I)Am (i)
2Dm (ii)B° (ii°)
3Em (iii)C (III)
4F (IV)Dm (iv)
5G (V)Em (v)
6Am (vi)F (VI)
7B° (vii°)G (VII)
Diatonic triads for the relative pair C major (8B / 1d) and A minor (8A / 1m).

Why keys get confused—and how to decide with Hear the chord

This detector builds a 12-bin chromagram from ~370 ms frames (50% overlap), keeping only spectral peaks between 55 Hz and 2,093 Hz (A1 to C7) each counted toward its nearest semitone (tuned to A4 = 440 Hz). Quiet frames at or below 10% of median frame energy are skipped, and every kept frame is normalized so loud choruses do not drown out verses.

The summed profile is matched against all 24 rotations of the Krumhansl–Kessler (1982) major and minor probe-tone profiles using Pearson correlation. Because relative keys share all 7 notes and fifth-related keys share 6 of 7, their correlation scores often land close together. Whenever the runner-up is within 0.05 of the top score, the widget displays it as Also possible.

  • Listen to the final phrase of a chorus or verse, then trigger Hear the chord to sound the predicted tonic triad.
  • If that triad feels settled and complete—as if the song could end right there—the primary reading matches your ear.
  • If it feels suspended or pulls toward a different chord, check the relative key (shown under Relative key) or the Also possible candidate instead.
  • Tracks tuned away from 440 Hz, modal songs (such as Dorian or Mixolydian), or mid-song key changes cannot be captured fully by one major or minor profile.

Sharp and flat spelling conventions

Every key maps to one fixed spelling rather than alternating between enharmonic names, so batch CSV exports stay consistent. Major keys use C, D♭, D, E♭, E, F, F♯, G, A♭, A, B♭, B; minor keys use C, C♯, D, E♭, E, F, F♯, G, G♯, A, B♭, B.

  • D♭ major replaces C♯ major, while C♯ minor replaces D♭ minor.
  • F♯ major replaces G♭ major and pairs on Camelot 2 with E♭ minor (output instead of its theoretical enharmonic spelling D♯ minor).
  • A♭ major replaces G♯ major, while G♯ minor replaces A♭ minor.
  • B♭ minor replaces A♯ minor.

Sample key readings from this finder

Four original GenSong AI songs analyzed locally in a browser on 2026-12-06 produced the outputs below. Because no separate reference analyzer was checked against them, view these as example readings rather than verified ground truth. Press Try a sample above to load Thirty Looks Good on You (thirty-looks-good-on-you.mp3) and test Hear the chord firsthand.

In automated unit tests on synthetic four-chord progressions with harmonics (I–IV–V–I in major and i–iv–V–i in minor), the algorithm identifies C major, A minor, G major, and F♯ minor correctly. Full mixes with vocals, distortion, or extended chords naturally leave tighter margins between top candidates.

SongKey readingRelative keyCamelot / Open KeyBPM reading
Ramen Shop in OsakaE♭ majorC minor5B / 10d143.1
Room 4BB♭ majorG minor6B / 11d88.2
Snow on Maple StreetG majorE minor9B / 2d137.3
Thirty Looks Good on YouF majorD minor7B / 12d127.9
Example browser outputs collected on 2026-12-06 (sample readings, not independently verified ground truth).
Use cases

Where song key detection saves time

Harmonic DJ set prep

Sort an entire batch by Camelot code and follow Mixes with chips to chain tracks sharing 6 or 7 scale notes, reducing vocal and bassline clashes.

Key checks for singers and covers

Identify the starting key and audition the tonic triad before placing a capo or transposing an instrumental into your vocal range.

Layering loops and basslines

Confirm compatible pitch centers across samples and a cappellas, then pull chord tones directly from the 7-note scale readout.

Learning songs by ear

Narrow twelve chromatic notes down to a 7-chord diatonic shortlist before figuring out exact voicings on guitar or keyboard.

FAQ

Song key finder: common questions

Judge a key detector by transparency and verification features: keeping unreleased files off third-party servers, disclosing close runner-up keys, printing both Camelot and Open Key labels, and letting you check its guess aloud. This browser tool runs locally, flags runner-ups within a 0.05 correlation gap, lists scale notes and diatonic triads, and plays the tonic chord via Hear the chord. It works on local audio files only and returns one overall key per track.

No. This page identifies the musical key (scale and pitch center) of audio recordings. To locate misplaced physical keys, you need a hardware Bluetooth or ultra-wideband tracker tag attached to your keyring.

Yes. Open this page in any modern desktop or mobile browser and select a local audio file. Pitch-class extraction and Krumhansl–Kessler matching run completely inside the tab—no install, browser extension, or login required.

Every key reading is a statistical estimate, not a certainty. Automated unit tests on synthetic progressions confirm C major, A minor, G major, and F♯ minor, yet real songs often sit closely between a relative pair or fifth neighbors. Whenever a second key trails by under 0.05 in correlation, the card shows Also possible; audition Hear the chord to verify which tonic feels resolved.

Both systems number the 24 major and minor keys around the circle of fifths so neighboring codes blend smoothly. Camelot uses 1–12 with B for major and A for minor (C major is 8B; A minor is 8A). Open Key shifts each number down by 7 modulo 12 and uses d for major and m for minor (C major is 1d; A minor is 1m). Every card displays both.

All 24 keys are scored via Pearson correlation against probe-tone profiles. If the second-place score sits within 0.05 of the leader, the song's note weights fit both closely—usually a relative major/minor pair (all 7 notes shared) or keys a fifth apart (6 notes shared). Showing the close runner-up reminds you to double-check by ear.

No. Processing takes place locally on files stored on your device, so the finder cannot open URLs or pull streams from YouTube or Spotify. Supply audio files you already have—such as recordings, purchased tracks, exported mixes, or GenSong downloads.

Because every active frame across the song is summed into one chromagram referenced to A4 = 440 Hz, the tool outputs a single global key. Mid-song key changes blend two scales together (often surfacing an Also possible label), and recordings tuned close to a quarter-tone sharp or flat fall between two semitones, so their notes count less and the reading is less reliable.

Drop MP3, WAV, M4A, AAC, OGG, Opus, or FLAC files up to 200 MB and 30 minutes each. Clips shorter than 6 seconds are too brief to analyze, while excerpts of 30 seconds or longer steady the reading. Some Safari builds fail to decode OGG Vorbis files; switch formats or browsers if that occurs.

Yes—free with no sign-up, daily cap, or watermark. Audio stays inside local browser memory on desktop or mobile and is never transmitted to or stored on remote servers.
More tools

Keep creating with GenSong

Write a new song in that exact key

Press Create a song under your results to open GenSong with the latest key and tempo already in the prompt, or write your own mood and lyrics.

Open the song creator