GlobalFree to use

Note to frequency (Hz) converter and back

Find the frequency of any musical note in any octave, or the nearest note and how many cents off a frequency is, with the MIDI number, piano key, period and wavelength. Works with A4 = 440 Hz or your own tuning.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

Every musical note has a frequency. In standard tuning A above middle C (A4) is 440 Hz and each semitone multiplies the frequency by the twelfth root of two. This converter works both ways: choose a note and octave to get its frequency, or enter a frequency to find the nearest note and how many cents sharp or flat it is.

It also shows the MIDI note number, the piano key (1 to 88), the period, the wavelength of the sound in air at 20 °C and the frequencies one octave lower and higher. You can change the reference pitch, for example to A4 = 432 Hz or the 442 Hz used by some orchestras.

How to use it

  1. Choose whether to convert a note to a frequency or a frequency to a note.
  2. Choose the note and octave, or enter a frequency in hertz.
  3. Keep A4 = 440 Hz or enter your own reference pitch.
  4. Run it to see the results.

How the calculation works

f = A4 × 2^((MIDI − 69) ÷ 12), with MIDI 69 = A4. For a frequency, MIDI = 69 + 12 × log₂(f ÷ A4), rounded to the nearest note; cents = 1200 × log₂(f ÷ f_note). Piano key = MIDI − 20. Wavelength = 343 m/s ÷ f.

f = A4 × 2^((MIDI − 69) ÷ 12) · cents = 1200 × log₂(f ÷ f_note)

Worked example

A flute player’s tuner app reads 329 Hz for an E. The calculator shows it is E4, 3 cents flat (close enough that most listeners would not notice) with MIDI number 64, piano key 44 and a wavelength of 1.043 m. With A4 set to 432 Hz, middle C becomes 256.869 Hz instead of 261.63 Hz.

Limitations

  • Twelve-tone equal temperament only.
  • Wavelength assumes air at 20 °C.
  • Octaves −1 to 9.

Last updated:

Frequently asked questions

Which octave is middle C?

Middle C is C4 in scientific pitch notation, MIDI 60, about 261.63 Hz at A4 = 440 Hz.

What is a cent?

One hundredth of an equal-tempered semitone.

Why do some people use 432 Hz?

It is an alternative tuning some musicians prefer; 440 Hz is the international standard (ISO 16).

Troubleshooting

Note names look different.

Sharps and flats are equivalent (C♯ = D♭); choose either.

The frequency is out of range.

Enter a value between 8 Hz and 30,000 Hz.

My tuner disagrees by a few cents.

Check that both use the same A4 reference.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps