MIDI represents every pitch as a whole number from 0 to 127. This converter moves freely between those numbers, human-readable note names (with octave), and the actual frequency in Hz — the three views you constantly switch between when programming synths, editing piano rolls, or mapping samples.
How it works
MIDI numbering is linear in semitones. Note name and octave come straight from the number:
note index = midi mod 12 (0=C, 1=C#, … 11=B)
octave = floor(midi / 12) − 1
So MIDI 60 is C4 (middle C) and MIDI 69 is A4. The frequency follows the equal-temperament relation anchored at A4:
frequency = A4 · 2^((midi − 69) / 12)
Converting a note name back to a MIDI number reverses this: midi = (octave + 1) · 12 + semitone, where the semitone is looked up from the letter and accidental. Both sharps and
flats are accepted on input.
Tips and example
Middle C, MIDI 60, resolves to C4 and 261.63 Hz at standard tuning. Type the note name A4 instead and you get MIDI 69 and exactly 440 Hz. Set the A4 reference to 432 Hz and that same A4 reads 432 Hz while middle C drops to about 256.87 Hz.
- Use the MIDI number as the unambiguous identifier when octave labels disagree.
- Adjust A4 to match alternative tunings before reading frequencies.
- Flats and sharps are interchangeable on input — Db4 equals C#4.
The converter runs entirely in your browser.