Free tool

Guitar Tuner

Tune your guitar with your microphone and real-time note detection. 100% in your browser, nothing to install.

—

Pluck a string

E2
A2
D3
G3
B3
E4

Nothing is uploaded anywhere: the microphone is analyzed only in your browser.

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

The guitar tuner listens through your device's microphone and detects in real time which note you're playing, compared against standard EADGBE tuning. Press "Start tuning", grant microphone permission and pluck each string separately: you'll see the detected note, the measured frequency in Hertz, and how many cents you are off from the correct note (positive if too sharp, negative if too flat). The needle and color turn green when the string is within ±5 cents. Detection uses the YIN algorithm, which looks for the fundamental frequency of the plucked string.

Features

  • ✓Standard EADGBE tuning
  • ✓Note detection with the YIN algorithm
  • ✓Real-time cents deviation
  • ✓Needle-style visual indicator
  • ✓100% in browser, no audio uploaded

How to tune a guitar?

  1. 1

    Grant microphone permission

    Your browser will ask when you press "Start tuning".

  2. 2

    Pluck a string

    Let it ring without muting it right away, in a quiet place if possible.

  3. 3

    Watch the note and cents

    The needle centers and turns green when you're in tune.

  4. 4

    Adjust the tuning peg

    Raise or lower the tension depending on whether the note is sharp or flat, and pluck the string again.

How the tuner detects the note

When you press "Start tuning", the microphone opens with echo cancellation, noise suppression and automatic gain control turned off, so the string signal arrives unfiltered. The analyzer uses a 4,096-sample window, about 85 ms at 48,000 Hz or about 93 ms at 44,100 Hz. On every screen refresh that window is read and the fundamental frequency is calculated with the YIN algorithm.

Only frequencies between 60 Hz and 1,000 Hz are analyzed, and signals that are too weak are discarded. If a lower frequency fits the signal better, it is used instead of a higher harmonic, so a string is not read one octave too high. The frequency is then converted to a note of the 12-semitone chromatic scale, using A4 at 440 Hz as the reference, and the cents are the difference between the measured frequency and that note.

EADGBE reference values

Standard tuning uses these frequencies, from the lowest string to the highest: E2 at 82.41 Hz, A2 at 110.00 Hz, D3 at 146.83 Hz, G3 at 196.00 Hz, B3 at 246.94 Hz and E4 at 329.63 Hz. Among those six, the indicator highlights the reference string closest to the detected frequency.

The needle moves in proportion to the cents and reaches its 45-degree stop at 50 cents of deviation. Within ±5 cents the reading counts as in tune and is shown in green. For example, a low string that measures 84 Hz is read as E2 with +33 cents: it is sharp, so loosen the tuning peg slowly, plucking the string again after each turn.

Limits and usage tips

The tuner follows one note at a time. If you strum several strings together, the reading can jump between notes, so pluck each string on its own and wait for the needle to settle. If the signal is below the minimum level or the tone falls outside 60 Hz to 1,000 Hz, there is no reading and the text "Pluck a string" stays visible.

Audio never leaves the browser: nothing is recorded or sent to a server, and pressing "Stop" closes the microphone and the audio context. To tune, place the device's microphone near the guitar body in a quiet room. Remember that the needle shows how far the string is from the reference note, not its tension: the adjustment is always made with the tuning peg.

Frequently asked questions

Is my audio uploaded to a server?

No. The microphone is analyzed in real time with the Web Audio API directly in your browser, nothing is recorded or sent anywhere.

What are "cents"?

Each semitone is divided into 100 cents. A value of 0 means the frequency matches the reference note; positive means the note sounds sharper than it should, negative means flatter.

Does it only work for standard tuning?

The tuner detects any tone between 60 Hz and 1,000 Hz and shows its nearest note, so it also works as a reference for other tunings. The six string indicators are for standard EADGBE tuning, and the highlight only applies to those six.

Why isn't it detecting the note correctly?

Background noise can confuse detection, and notes outside 60 Hz to 1,000 Hz are not read. Try it in a quiet place and let the string ring clearly without muting it right away.

Related tools

Embed Guitar Tuner on your site

Add Guitar Tuner to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/guitar-tuner?locale=en"
  width="100%"
  height="700"
  frameborder="0"
  allow="clipboard-write"
  title="Guitar Tuner — miguelacm.es"
></iframe>
View embed in new tab →