Tuning tool
Compare two pitches
Put in the target frequency from your tuning chart and the frequency shown by your tuner.
How the estimate works
Cents = 1,200 × log₂(measured Hz ÷ target Hz)
The hertz difference is measured Hz minus target Hz. A positive difference is sharp and a negative difference is flat. Equal frequencies give zero.
The tool compares the frequencies you enter, so choose the target for the string and octave you intend to tune. The marker stops at either end of its ±50-cent display.
Web Audio API, W3C gives the pitch ratio as 2 raised to cents divided by 1,200. The formula above solves that relationship for cents.