guitar tunerstandard tuningeadgbeguitar

Online Guitar Tuner: How It Works

How a browser guitar tuner detects the note from your microphone, what cents mean, and the standard EADGBE string frequencies. Free, nothing to install.

August 22, 2026·4 min read

If you need to tune your guitar and don't have a clip-on tuner, the guitar tuner on this site uses the microphone on your laptop or phone. Pluck a string and it shows the note, the frequency in hertz, and how many cents you are from the nearest note.

All the analysis runs in your browser, using the Web Audio API.

How it detects the note from sound

The algorithm behind the tool is called YIN. It compares the captured signal with a copy of itself shifted in time and measures how much the two differ. When the shift matches the wave's period, the difference drops, and the fundamental frequency follows from that period. YIN's difference function is closely related to autocorrelation, the measure of how well a signal matches a shifted version of itself. The original YIN paper describes the method in detail.

A detector that simply picks the strongest peak of a frequency analysis (an FFT) can lock onto a harmonic. A plucked string produces multiples of its fundamental, and some of them carry more energy than the fundamental itself. YIN takes the first shift whose difference falls below a threshold, then checks whether a multiple of that period fits much better. If it does, the tool uses that one, which avoids landing on a higher harmonic.

Standard EADGBE tuning

The six strings of a guitar in standard tuning, from lowest to highest, with frequencies for A4 = 440 Hz:

  • E2 (82.41 Hz): the sixth string, the thickest
  • A2 (110.0 Hz)
  • D3 (146.83 Hz)
  • G3 (196.0 Hz)
  • B3 (246.94 Hz)
  • E4 (329.63 Hz): the first string, the thinnest

The tool compares the detected frequency with these six notes and highlights the closest one, so you don't have to pick the string yourself.

What cents are and why they matter

A cent is one hundredth of a semitone, so an octave is 1200 cents. The tool measures how far you are from the nearest note of the equal-tempered scale and shows the difference in whole cents. The note turns green when the difference is within ±5 cents. That margin is a choice made in the tool, not a standard. The needle reaches the edge of its scale at about 50 cents.

Frequently asked questions

Do I need an electric guitar with a direct connection? No. The microphone picks up the sound of any guitar, electric or acoustic.

Why does it sometimes detect the wrong string? Background noise, or plucking two strings at once, can confuse the detection. Pluck a single string in a fairly quiet room for the best results.

What if it doesn't show anything? The tool shows no reading when the signal is too weak. Move the microphone closer to the body of the guitar or pluck harder.

What range does it detect? From 60 Hz to 1000 Hz. That covers the six strings in standard tuning, starting at E2 (82.41 Hz), and also lower tunings such as drop D, where the lowest string is D2 (73.42 Hz).

Does it only work for standard tuning? The highlighted string only corresponds to standard EADGBE. For other tunings, read the note and the frequency in Hz that the tool shows, and compare them with the note you want.

Why does it ask for the microphone without filters? The tool requests the microphone with echo cancellation, noise suppression and automatic gain control turned off. Those processes change the signal the analyser receives, and the pitch analysis works on the signal as it comes in.

Is the microphone audio uploaded to a server? No. The analysis happens entirely in your browser with the Web Audio API.


Tune your guitar with the browser-based guitar tuner, or check a reference pitch with the tone generator.

Try it without code

Guitar Tuner

Tune your guitar with your microphone in real time.

Open Guitar Tuner

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me