AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I tune my guitar online using my microphone?

Open AnyTool Guitar Tuner, press Start tuning and allow the microphone when your browser asks, then pluck one string at a time. The tool listens through the mic and uses autocorrelation pitch detection to read the note you are playing, showing the note name, frequency and a cents meter that swings from flat to sharp and turns green when you are within ±5 cents. Pick a tuning preset — standard, Drop D, half-step down, Open G, Open D, DADGAD, bass or ukulele — and the nearest string is highlighted with a check when it is in tune, or switch to chromatic mode for any note. Everything is analysed locally in your browser and nothing is ever recorded or uploaded.

  • Real-time autocorrelation pitch detection from your microphone — no app to install
  • Note name + octave + exact frequency, with a cents meter that goes green in tune (±5¢)
  • Tunings: standard EADGBE, Drop D, half-step down, Open G, Open D, DADGAD, bass, ukulele
  • Chromatic mode for any note on any instrument, plus a reference tone per string
  • 100% client-side: audio is analysed locally and never recorded, saved or uploaded

What is

Guitar Tuner

A guitar tuner detects the pitch of a played string and tells you whether it is flat, in tune or sharp relative to a target note. A microphone (chromatic) tuner captures the sound, estimates its fundamental frequency, and maps that frequency to the nearest musical note (using A4 = 440 Hz equal temperament) plus a deviation measured in cents, where 100 cents equals one semitone. A browser-based tuner does this with the Web Audio API and a pitch-detection algorithm such as autocorrelation, entirely on your device — no app and no recording.

Generators

Related terms

Pitch detectionAutocorrelationCentsEqual temperament (A4 = 440)Standard tuning (EADGBE)Chromatic tuner

Frequently Asked Questions

It records the waveform through your mic and uses autocorrelation to find the repeating period of the sound, which gives the fundamental frequency, then maps that frequency to the nearest note and cents.

The tuner takes the microphone signal into the Web Audio API and reads the raw waveform with an AnalyserNode. On each frame it runs an autocorrelation (the well-known ACF2+ method): it checks the signal level to ignore silence, then compares the waveform with delayed copies of itself to find the lag at which it best repeats — that lag is the period of the note, and the sample rate divided by the period gives the frequency in hertz. Parabolic interpolation around the peak refines the period for sub-cent accuracy, and a short median plus exponential smoothing steadies the readout. The frequency is then converted to the nearest equal-tempered note (A4 = 440 Hz) and a cents value, so you see exactly how flat or sharp you are. All of this runs locally in your browser.

Yes. It includes standard EADGBE, Drop D, half-step down, Open G, Open D, DADGAD, 4-string bass and GCEA ukulele, plus a chromatic mode that detects any note on any instrument.

You can choose standard guitar tuning (E2 A2 D3 G3 B3 E4), Drop D (low E down to D), half-step down (every string down a semitone), Open G (D G D G B D), Open D (D A D F# A D), the modal DADGAD tuning, 4-string bass (E1 A1 D2 G2) and standard GCEA ukulele. With a tuning selected, the tuner highlights the string nearest to what you are playing and marks it with a green check when it is within ±5 cents, so you simply work string by string. Chromatic mode drops the string targets and instead shows the nearest of the twelve chromatic notes, which is handy for capos, alternate tunings not in the list, or tuning other instruments like violin, mandolin or a wind instrument.

No. The audio is analysed locally in your browser in real time and is never recorded, saved or uploaded. The microphone only runs while you are tuning and stops the moment you press Stop.

Everything happens on your device. The microphone stream is processed live by the Web Audio API to estimate pitch, and the raw sound is turned into a note reading on the spot — there is no server, no account, no audio file and nothing is stored or transmitted. The browser asks for microphone permission only so the tuner can listen, and the mic is released as soon as you press Stop tuning or leave the page. Because the work is done in JavaScript in your browser, the tool also keeps working offline once the page is cached.

Noisy rooms, multiple strings ringing, or very low/harmonic-rich notes can momentarily confuse any tuner. Pluck one clean string in a quiet room and let it settle for a steady reading.

Pitch detection is most reliable with a clean, single note. If several strings ring at once, the room is noisy, or a string is buzzing or dead, the algorithm can briefly lock onto a harmonic and report the octave above or a neighbouring note. Very low bass notes also have long periods that are harder to resolve. The fix is simple: tune one string at a time, let the note ring clearly, reduce background noise and talking, and watch for the reading to stabilise before trusting it. For a loud stage or a critical studio setup or intonation job, a clip-on or pedal tuner that senses string vibration directly will be steadier than any microphone tuner — this tool is built for fast, accurate everyday tuning and practice.

Detailed Explanation

Methodology

How the Guitar Tuner Detects Pitch

AnyTool Guitar Tuner runs entirely on the native Web Audio API plus navigator.mediaDevices.getUserMedia. The microphone stream feeds a MediaStreamAudioSourceNode connected to an AnalyserNode (fftSize 4096, smoothing 0) that is deliberately not wired to the destination, so there is no feedback. On every animation frame the tuner reads the raw waveform with getFloatTimeDomainData and runs the well-known ACF2+ autocorrelation algorithm: it first computes the RMS and rejects frames below a threshold as silence, trims near-silent samples from both edges of the buffer, then correlates the signal with delayed copies of itself to find the lag at which it best repeats. The first strong peak after the initial dip is the period; parabolic interpolation around that peak refines it to a sub-sample value, and the sample rate divided by the period yields the fundamental frequency. A short running median over recent frames removes octave-jump spikes and an exponential moving average steadies the readout, after which the frequency is mapped to the nearest equal-tempered note (A4 = 440 Hz) and a cents deviation.

  • getUserMedia → MediaStreamAudioSourceNode → AnalyserNode (fftSize 4096), not connected to output
  • ACF2+ autocorrelation on getFloatTimeDomainData with RMS-based silence rejection
  • Parabolic interpolation around the correlation peak for sub-cent period accuracy
  • Median + exponential moving average smoothing to kill jitter and octave jumps
  • Frequency → nearest note (A4 = 440) + cents (100 cents = one semitone), all in-browser
How It Works

Tunings, Cents Meter and Reference Tones

The tuner ships with eight presets — standard guitar (E2 A2 D3 G3 B3 E4), Drop D, half-step down, Open G (D G D G B D), Open D (D A D F# A D), DADGAD, 4-string bass (E1 A1 D2 G2) and standard GCEA ukulele — plus a chromatic mode. With a tuning selected, the detected frequency is compared in cents against every target string and the nearest one is highlighted; a flat-to-sharp needle on a ±50-cent dial shows the deviation and turns green inside the ±5-cent in-tune zone, marking that string with a check. Chromatic mode instead reports the nearest of the twelve chromatic notes, so the tool also tunes capoed guitars, unlisted alternate tunings and other instruments. Each string can play its exact target pitch on demand: a separate OscillatorNode (sine) ramps in with linearRampToValueAtTime, sounds the reference note and auto-stops after about 2.5 seconds, fully independent of the microphone path.

  • Standard, Drop D, half-step, Open G, Open D, DADGAD, 4-string bass and GCEA ukulele presets
  • Deviation measured in cents against each string; nearest string highlighted automatically
  • Flat ← in-tune → sharp needle turns green within ±5 cents and shows a check on the string
  • Chromatic mode detects any of the 12 notes for any instrument
  • Per-string reference tone via a separate OscillatorNode, click-free and auto-stopping
Limitations

Privacy and Honest Accuracy Limits

Because all pitch detection happens in the browser, the microphone audio is analysed locally in real time and is never recorded, saved or uploaded — there is no server, no account and no audio file, and the tool keeps working offline once cached. The browser requests microphone permission only so the tuner can listen, and the stream and AnalyserNode are disconnected and the microphone track stopped the instant you press Stop tuning or leave the page, with the AudioContext closed on unmount. Honestly, a microphone tuner is most reliable with a clean signal in a quiet room: pluck one string at a time and let it ring, because background noise, several strings sounding together, or very low and harmonic-rich notes can momentarily push any tuner onto the wrong octave or a neighbouring note. For a loud stage, a critical studio session or a full setup and intonation job, a clip-on or pedal tuner that senses string vibration directly will be steadier — this tool is built for fast, accurate everyday tuning and practice.

Guitar Tuner: in-browser (AnyTool) vs typical online tuners
CapabilityAnyToolTypical online tuners
Pitch engineNative Web Audio + ACF2+ autocorrelationOften a third-party / WASM library
Cents meterNeedle, green within ±5¢, per-string checkSometimes a coarse bar only
TuningsStandard, Drop D, half-step, Open G/D, DADGAD, bass, ukeFrequently standard only
Chromatic modeYes — any note, any instrumentNot always
Reference tonesPer-string sine, auto-stoppingSometimes none
SmoothingMedian + EMA to stop jitter / octave jumpsOften raw, jumpy readout
PrivacyAudio analysed locally, never recorded/uploadedMay process or log audio remotely

AnyTool detects pitch locally with the native Web Audio API; your microphone audio is never recorded or uploaded.