MIDI Note Number Converter

Convert between MIDI note numbers, note names, and Hz frequencies

Free MIDI note number converter. Translate between MIDI numbers (0-127), note names with octave (C-1 to G9) and frequency in Hz, with adjustable A4 reference tuning. Essential for MIDI programming, DAWs and synths. Runs in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How does a MIDI note number map to a note?

MIDI defines 128 notes numbered 0 to 127. Number 0 is C-1 and each step up is one semitone. Middle C is MIDI 60 (C4) and A4 is MIDI 69. The note name is the number modulo 12, and the octave is floor(number / 12) minus 1.

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 MIDI note numbering works

MIDI numbering is linear in semitones, starting from C in the lowest octave. Two formulas extract the note name and octave from any MIDI number:

note index = midi mod 12      (0=C, 1=C#, 2=D, … 11=B)
octave     = floor(midi / 12) − 1

So MIDI 60 is C in octave 4 (middle C, or C4), and MIDI 69 is A in octave 4 (A4, concert pitch). The full range runs from MIDI 0 (C-1) at approximately 8.18 Hz all the way to MIDI 127 (G9) at approximately 12,543 Hz.

Converting to frequency

The equal-temperament formula anchors every pitch to A4:

frequency = A4_Hz × 2^((midi − 69) / 12)

With A4 at 440 Hz, this places middle C at 261.63 Hz and each octave exactly doubles the frequency. The formula is fully reversible — if you know the frequency, you can find the MIDI number and note name by working backwards.

Quick reference: common MIDI numbers

MIDINoteFrequency (A4=440 Hz)Typical use
21A027.50 HzLowest piano key
36C265.41 HzBass guitar low string
48C3130.81 HzCello open C range
60C4261.63 HzMiddle C
69A4440.00 HzConcert tuning reference
72C5523.25 HzViolin E-string area
108C84186.01 HzHighest piano key area
127G9~12,543 HzMIDI maximum

The octave numbering debate

The converter uses scientific pitch notation where middle C (MIDI 60) is C4. Some manufacturers — notably older Yamaha instruments — label the same note C3. The MIDI number is always unambiguous; when you need to communicate with someone using different gear, reference the MIDI number rather than the note name.

Alternative tunings

The tool lets you set a custom A4 reference. Change it to 432 Hz and every note shifts proportionally downward: A4 reads 432 Hz, middle C drops to about 256.87 Hz. This is useful for confirming sample pitch when working with period-instrument recordings or alternative tuning systems. Set A4 to 415 Hz to match Baroque pitch, or 466 Hz for high Baroque. All frequencies scale from whatever reference you set.

Converting a note name to MIDI works in reverse: midi = (octave + 1) × 12 + semitone, where sharps and flats are treated as enharmonic equivalents (Db4 = C#4 = MIDI 61).