Hz to Musical Note Converter

Identify the closest musical note and cents deviation for any frequency

Free Hz to musical note converter. Enter a frequency in Hz to get the nearest equal-temperament note name, octave, MIDI number and the exact cents deviation. Supports custom A4 reference tuning. Runs in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How is the nearest note calculated?

The converter uses the equal-temperament formula n = 69 + 12 · log2(f / A4), which gives a fractional MIDI value. Rounding to the nearest whole number identifies the closest note, and the fractional part times 100 gives the cents deviation. A4 = MIDI 69, defaulting to 440 Hz.

Every audible frequency corresponds to a musical pitch — exactly on a note or some number of cents away from it. This converter takes a frequency in Hz and tells you the nearest equal-temperament note, its octave, its MIDI number, and precisely how sharp or flat the input is.

How it works

Equal temperament divides each octave into twelve equal semitones. The position of any frequency on the MIDI scale is:

n = 69 + 12 · log2(f / A4)

where A4 is the reference pitch (440 Hz by default, mapped to MIDI 69). Rounding n to the nearest integer gives the closest note. The leftover fraction, multiplied by 100, is the deviation in cents:

cents = (n − round(n)) · 100

The exact frequency of that nearest note is recovered with A4 · 2^((round(n) − 69) / 12), which the tool also displays so you can see your target.

Reference: equal-temperament frequencies for the central octave

For A4 = 440 Hz, the twelve notes of octave 4 (middle octave) are:

NoteFrequency (Hz)MIDI number
C4 (middle C)261.6360
C#4 / D♭4277.1861
D4293.6662
D#4 / E♭4311.1363
E4329.6364
F4349.2365
F#4 / G♭4369.9966
G4392.0067
G#4 / A♭4415.3068
A4440.0069
A#4 / B♭4466.1670
B4493.8871

Each octave above doubles every frequency; each octave below halves it. Middle C at 261.63 Hz is therefore an octave below C5 at 523.25 Hz.

The custom A4 reference and why it matters

Standard concert pitch is A4 = 440 Hz, established internationally in 1939. However, several situations call for a different reference:

  • Baroque ensembles commonly tune to A4 = 415 Hz (approximately one semitone flat of modern pitch), to match historical instrument tuning.
  • Some orchestras tune slightly higher, to 442 or 444 Hz, for a brighter sound.
  • Alternative tuning communities use 432 Hz, which they believe has different acoustic qualities (a position not supported by acoustic physics, but the preference is personal and valid for creative purposes).
  • Electronic music may need to match a specific synth or sample pack tuned to a non-standard reference.

When the A4 reference changes, every note’s frequency shifts proportionally. The converter recalculates all note positions so that, for example, entering 415 Hz with a 415 Hz reference returns exactly A4 at 0 cents.

Practical uses

  • Tuning an instrument: Read the frequency from a spectrum analyser or tuner, enter it here, and see how many cents off you are and in which direction.
  • Transcribing a recording in non-standard tuning: Enter a few reference notes to determine the A4 reference of the recording before transcribing.
  • Electronic music and synthesis: Confirm that a synth’s output at a given MIDI note matches the expected frequency for your project’s tuning system.
  • Acoustics and physics: Convert machine vibration frequencies, room resonances, or signal frequencies into musical context.

Tips

  • Use the cents value to decide which way to tune: positive means the pitch is sharp — lower it. Negative means flat — raise it.
  • Within ±5 cents is generally perceived as in tune by most listeners in a musical context.
  • Match the A4 reference to your ensemble before trusting the note name, especially for frequencies near octave boundaries.

The conversion runs entirely in your browser.