Online Pitch Detector

Last updated: October 23, 2026 · Written by the Pitch Detectors Editorial Team

Real-time voice & pitch analyzer for musicians and vocalists

Get Started:

  1. Click the START button below
  2. Click "Allow" when asked about microphone access
  3. Sing or play a note into your microphone
  4. Watch the note appear on screen and on the piano keyboard
  5. The tuning meter shows if you're sharp (right), flat (left), or in tune (center)
--
-- Hz
-- cents

Piano Keyboard

Current Note
--
Frequency
-- Hz
Accuracy
--
⚠️ Microphone not detected. Please ensure your microphone is connected and you've granted permission in your browser settings.

A pitch detector listens through your microphone and instantly shows which musical note you produce, its frequency in Hertz, and how many cents sharp or flat you are. This one runs entirely in your browser — nothing installs, and no audio leaves your device. Press START, allow microphone access, and sing or play one steady note.

Key Takeaways

  • This detector finds your note with autocorrelation: it measures how fast your sound wave repeats and converts that rate into a note, a frequency, and a cents reading.
  • The big display shows the nearest note plus octave; below it sit the exact frequency in Hz and your cents sharp or flat.
  • It hears one note at a time — voice, flute, and single guitar strings work; chords, drums, and heavy distortion do not.
  • A noise gate ignores sounds quieter than an RMS level of 0.01, so room hum never prints a false note — the display holds your last reading, and "--" appears only before your first note registers.
  • Everything runs locally in your browser — no audio is recorded, stored, or sent anywhere.

What Is a Pitch Detector?

Definition: A pitch detector is a real-time audio analysis tool that measures a sound's fundamental frequency and converts it into musical information. It samples the microphone thousands of times per second, finds the waveform's repetition rate, and maps it to the nearest note of the chromatic scale with the cent deviation from perfect tuning.

Singers check intonation during practice; instrumentalists use detectors as tuners; teachers use them for ear training — students see the note they sang and how far it drifted. Browser-based detectors need no app download: the Web Audio API gives any modern browser the raw microphone data the math needs.

How This Pitch Detector Works

This detector grabs short slices of microphone audio, measures how fast the waveform repeats, and turns that rate into a note name, a frequency, and a cents reading.

The browser requests the microphone with getUserMedia and routes the stream into the Web Audio API. An analyser node captures 2,048-sample slices — about 43 milliseconds at the common 48 kHz sample rate. A normalized autocorrelation algorithm compares each slice against time-shifted copies of itself; the shift with the strongest match is the wave's period (τ), and the fundamental frequency is f₀ = sample rate ÷ τ. This time-domain approach stays accurate on low notes, where FFT analysis suffers from spectral leakage.

The tool maps f₀ to the chromatic scale at A4 = 440 Hz with the MIDI formula n = 69 + 12 × log₂(f₀ ÷ 440). Rounding n gives the nearest note; the leftover fraction becomes the cent deviation: cents = 1200 × log₂(f₀ ÷ target). Two guardrails keep the display honest: sounds quieter than an RMS level of 0.01 are rejected instead of printing a false note, and only 50–2000 Hz is reported. The integer-multiple harmonics riding on your fundamental are ignored — the algorithm tracks the whole wave's repetition rate.

Detection ParameterThis Tool's Value
Analysis window2,048 samples (~43 ms at 48 kHz)
Noise gateRMS below 0.01 rejected
Detection range50–2000 Hz
Correlation threshold0.9
Display latency~30–60 ms

Methodology note: this chain was verified by running the page's own note-mapping code on fixed reference frequencies in October 2026 — 440 Hz reads A4 at 0 cents, 446 Hz reads A4 at +23 cents, and silence returns no reading. The best-known refinement of the method is the YIN algorithm (de Cheveigné & Kawahara, JASA, 2002).

From Voice to Note: The Math, Step by Step

Here is exactly what happens inside the tool when you sing a slightly sharp A at 446 Hz:

  1. Capture: the analyser grabs 2,048 samples — one 43 ms slice of your voice.
  2. Period hunt: autocorrelation finds the strongest repetition at τ ≈ 107.6 samples.
  3. Frequency: f₀ = 48,000 ÷ 107.6 ≈ 446 Hz.
  4. Nearest note: 69 + 12 × log₂(446 ÷ 440) = 69.23, which rounds to MIDI 69 — A4.
  5. Tuning: 1200 × log₂(446 ÷ 440) = +23.4 cents against the 440 Hz target — the display rounds to +23 sharp.
  6. Accuracy score: 100 − 23 = 77%; the needle sits at about 66% of the meter's width, right of the green zone — the meter maps ±50 cents onto 15%–85% of its width.

Every reading on screen is this chain, refreshed many times per second.

Signal flow of browser pitch detection from microphone buffer through autocorrelation to note and cents readout
Alt text: "Signal flow of browser pitch detection from microphone buffer through autocorrelation to note and cents readout"

How to Use This Pitch Detector

Press START, allow the microphone, and sing or play one steady note — the tool does the rest.

  1. Press "🎤 START DETECTION." The button turns red and reads STOP while listening.
  2. Click Allow when your browser asks for microphone permission (fixes below if no prompt appears).
  3. Sing or play one steady note — a straight "ah" with no vibrato reads cleanest.
  4. Read the big display: note plus octave (e.g. A4), exact frequency in Hz, and cents sharp (+) or flat (−).
  5. Watch the tuning needle: left is flat, right is sharp, centered in green is in tune.
  6. Check the piano keyboard — your note lights up — and the stat boxes for note, frequency, and accuracy.
  7. Press STOP when finished to release the microphone.

Reading Your Result

The cents number tells you how far you are from perfect tuning — and whether the gap matters:

Cents OffWhat It Sounds LikeWhat to Do
0–5In tune — inaudible to nearly everyoneNothing. This is a finished tuning job.
6–15Slightly off — trained ears catch it in isolationFine for practice; adjust before recording.
16–50Clearly audible; at 50 you are a quarter tone offRetune the string or nudge the pitch.
51–100Approaching the next semitone — sounds like the wrong noteStop and check you are aiming at the right note.

+ means tune down, − means tune up. String players approach from below: tuning up keeps string tension settled. The accuracy score is 100 minus your cent deviation. Convert any cent gap with the cents calculator.

Match Your Note to a Vocal Range

Sing your lowest and highest comfortable notes into the detector, then find your voice type in this table:

Voice Type Typical Note Range Fundamental Frequency Range
BassE2 – E482.41 Hz – 329.63 Hz
BaritoneA2 – A4110.00 Hz – 440.00 Hz
TenorC3 – C5130.81 Hz – 523.25 Hz
ContraltoF3 – F5174.61 Hz – 698.46 Hz
Mezzo-SopranoA3 – A5220.00 Hz – 880.00 Hz
SopranoC4 – C6261.63 Hz – 1046.50 Hz

The vocal range finder walks through this test note by note.

Why the Reading Jumps: 6 Common Glitches and Fixes

A jumping reading is almost never a broken detector:

What You SeeWhy It HappensFix
Note an octave too low or high (A3 instead of A4)Octave error: a strong second harmonic makes the period look half or twice as longGet closer to the mic and use a purer vowel
No note appears when you start singingYour signal is under the 0.01 RMS noise gate, so the reading is rejected — the display stays on "--" or holds your previous noteMove closer, raise input volume, unmute the mic
Needle flickers with nobody singingBackground noise (fan, traffic) analyzed as signalMove somewhere quieter; keep the mic close
Reading wobbles ±20 to 50 centsNatural vibrato — your pitch is genuinely movingSing a straight tone to find your center first
Note flips between two pitchesConsonants and breath between sustained notesHold one vowel ("ah", "oo"); avoid "s"/"t" sounds
Display lags behind your voiceThe 43 ms analysis window plus one screen refreshNormal — hold each note a little longer
Waveform showing how a strong second harmonic causes an octave error in autocorrelation pitch detection
Alt text: "Waveform showing how a strong second harmonic causes an octave error in autocorrelation pitch detection"

Microphone Not Working? Permission and HTTPS Fixes

If START shows the warning box or nothing happens, the cause is almost always a blocked microphone permission. Mic access requires a secure context (HTTPS), per MDN's Web API documentation — this site is served over HTTPS, so the browser should prompt you. If it does not, the permission was likely denied earlier:

  • Chrome / Edge: click the camera icon left of the address bar, set Microphone to Allow, reload.
  • Safari (Mac): Safari menu → Settings → Websites → Microphone → Allow for this site. iPhone: Settings → Safari → Microphone → Allow.
  • Firefox: click the lock icon in the address bar, clear the blocked microphone permission, reload.

One more trap: in-app browsers (Instagram, TikTok, Facebook) usually block microphone access. Open the page in Safari or Chrome instead.

Still nothing? Test the mic itself with the microphone test tool — if that page hears you, the fault is this page's permission, not your hardware.

Can a Pitch Detector Hear Chords?

No — this detector hears exactly one pitch at a time. Autocorrelation assumes one repeating period. A chord stacks two or more competing periods, so the strongest match jumps between them and the display flickers between notes. The same happens with piano notes under the sustain pedal, drums, and heavily distorted guitar.

Works well: voice, whistling, flute, trumpet, violin, and single guitar or bass strings played cleanly. For naming chords, use the chord identifier instead — it is built for harmony; this tool is built for single melodic lines.

The 439 Hz Story: Why Concert Pitch Is A440

A440 is a compromise — and the original agreement was 439 Hz, not 440. In 1939 an international conference settled on 440 Hz for the A above middle C, splitting the difference between the lower French pitch (435 Hz, the diapason normal set by law in 1859) and higher pitches used elsewhere. The conference first agreed on 439 Hz; accounts say it moved to 440 partly because 439, a prime number, was awkward to generate with the lab equipment of the day. ISO adopted 440 Hz in 1955 as ISO 16 and reaffirmed it in 1975.

That is this detector's reference. In practice pitch still drifts — many European orchestras tune to 441–444 Hz — so if your ensemble tunes sharp of 440, expect a reading a few cents flat. The tool is right; your reference just differs.

Limitations

  • One note at a time. Chords, double-stops, and percussion produce flickering or wrong readings.
  • Fixed A440 reference. It cannot follow an ensemble tuned to 442 Hz — interpret cents against your own reference.
  • Vibrato, bends, and scoops register as tuning errors. The detector measures what it hears, not what you meant.
  • Range is 50–2000 Hz. Sub-bass below about 50 Hz (roughly G1) and whistle tones above roughly B6 fall outside detection.
  • Sources under the 0.01 RMS noise gate are ignored. The display keeps its last reading rather than chasing room noise, so a quiet passage never prints a note.
  • Mic processing varies. Phones and laptops apply noise suppression and echo cancellation you cannot always switch off, which can smear the waveform — and room echo adds delayed copies of your note.
  • About 30–60 ms of latency. Fine for practice, not for sample-accurate recording work.

Pitch Detector vs. Alternatives

Pick the tool that matches the job. One distinction first: a pitch detector names any note you play and shows its exact frequency; a tuner starts from a known target — a string or note — and tells you whether to tune up or down. Use the detector to identify notes, the tuner to adjust an instrument to them.

ToolBest ForTrade-off
This online pitch detectorFree instant note + Hz + cents; no installNeeds mic + HTTPS; one note at a time
Clip-on vibration tunerTuning on a noisy stage (feels vibration, ignores room noise)Costs money; one instrument
Online guitar tunerTuning each string to its target noteGuitar-specific only
DAW pitch editor (Melodyne, Auto-Tune)Fixing pitch in recorded audioPaid; edits recordings, doesn't train your ear
Tuning fork or pitch pipeA reliable acoustic reference, no batteryOne fixed pitch; no cents readout

Frequently Asked Questions

It captures 2,048-sample slices of audio and runs a normalized autocorrelation algorithm to find how fast the waveform repeats — the fundamental frequency (f₀ = sample rate ÷ period). The tool maps f₀ to the nearest note of the chromatic scale at A4 = 440 Hz and reports how many cents sharp or flat you are.

Frequency is the objective rate of vibration, measured in Hertz. Pitch is how your brain perceives that rate — the subjective sense of "high" versus "low." A 440 Hz vibration is perceived as A4, though two 440 Hz tones with different timbres can feel slightly different. This detector measures frequency and converts it into the pitch name your ear expects.

A cent is 1/100 of a semitone, so 100 cents make the step between two neighboring piano keys. A reading of 0 means perfectly in tune. Positive numbers mean sharp (too high); negative numbers mean flat (too low). Most listeners notice errors around 5–8 cents, so anything inside ±5 is a solid result.

This is an octave error, the classic pitch-detection glitch. When the second harmonic outweighs the fundamental, the algorithm locks onto a half-length period and reports a note 12 semitones too high — or the reverse. Sing or play closer to the microphone with a purer vowel, which strengthens the fundamental relative to its harmonics.

No. Microphone capture, the autocorrelation math, and the display all run locally in your browser via the Web Audio API. Nothing is saved, stored, or transmitted — closing the tab or pressing STOP ends the microphone stream completely. That is why no account or signup is needed.

A440 became the international reference after a 1939 conference chose it as a compromise between national pitch standards; ISO adopted it in 1955 as ISO 16 (reaffirmed 1975). It keeps pianos, orchestras, and software on the same grid worldwide. The conference first agreed on 439 Hz before moving to 440. (For reference, 432 Hz sits 31.8 cents flat of 440.)

It tracks fundamentals from about 50 Hz (below low C2) to 2000 Hz (above soprano high C6), which covers all six classical voice types: bass, baritone, tenor, contralto, mezzo-soprano, and soprano. Whistle-register and sub-bass notes outside that window do not register.

Yes — play one string at a time and the detector shows its note and cents deviation, which is all tuning needs. It does not work on a strummed chord. For faster string-by-string tuning with preset standard-tuning targets, the dedicated online guitar tuner is more convenient.

The analysis itself needs no connection — all math runs locally once the page loads. But you need the internet to load the page in the first place, and microphone access requires the page to be served over HTTPS. No audio is ever uploaded, regardless of connection.

Each reading analyzes a 43 ms slice (2,048 samples at 48 kHz), and the display refreshes once per animation frame — total delay roughly 30–60 ms. That is imperceptible while singing, but very fast runs and staccato notes blur together.