Account

What new tool do you want?

Video & Audio

Tone / Frequency Generator

Play a pure tone at any frequency from 20 Hz to 20 kHz — sine, square, triangle or sawtooth — or sweep the range to test speakers and hearing.

How to use

  1. 1Set the frequency with the slider or type it in, and choose a waveform.
  2. 2Press Play. Start at low volume — high frequencies can be unpleasant.

Frequently asked questions

What's the range of human hearing?

About 20 Hz to 20 kHz for young people; the upper limit falls with age, often to 12–15 kHz for adults.

Can this damage my hearing or speakers?

Loud tones can. Start quiet, avoid long exposure, and be careful with low frequencies on small speakers.

What is 440 Hz?

The note A above middle C — the standard tuning pitch.

A worked example of the note-and-cents readout

Set the frequency to 450Hz and the display reads "A4 +39¢" — the tool finds the nearest musical note by rounding 12 × log2(450/440) to the nearest semitone (0.39 rounds to 0, so it's still A4, not a half-step up), then reports the leftover difference in cents: 1200 × log2(450/440) ≈ 39. A cent is 1/100th of a semitone, so +39 cents means this tone sits meaningfully sharp of true A4 but not sharp enough to have crossed into A♯ territory — this readout is exactly how electronic tuners describe how far off a pitch is from the nearest 'correct' note.

Why the frequency slider doesn't move in equal Hz steps across its range

The slider's internal position (0 to 1000) maps to frequency using toHz(x) = 20 × 1000^(x/1000) — an exponential curve, not a straight line — which means equal distances along the slider correspond to equal ratios in frequency rather than equal differences in Hz. That's deliberate: a linear 20Hz-20,000Hz slider would devote the vast majority of its length to frequencies above 10kHz, leaving almost no usable resolution in the musically crucial 20-2000Hz range where most audible content actually lives. The exponential mapping gives proportionally equal slider space to each doubling of frequency (each octave), matching how pitch is actually perceived.

Why the sweep stops automatically at exactly 20 seconds

The 20Hz-to-20kHz sweep uses exponentialRampToValueAtTime, a Web Audio scheduling method that smoothly glides the oscillator's frequency from its start value to its target value over a precisely specified duration — here hardcoded to 20 seconds — and schedules the oscillator to stop just after that ramp completes. An exponential ramp (rather than a linear one) is specifically chosen because, just like the slider, a linear frequency sweep from 20Hz to 20kHz would spend almost the entire 20 seconds crawling through the highest frequencies and blow through the entire audible low and midrange in a fraction of a second — exponential pacing means the sweep spends a roughly even amount of time per octave, giving you a fair chance to notice where your hearing or your speakers' response actually rolls off.

The loudest the slider will go is 60%, and the tone fades in

The volume slider never reaches full scale. Its top is 60% of full volume, and that is what the label shows, so the right end reads 60% and the default position reads 20%. Play does not start at that level. The tone fades in over about 50 milliseconds, which keeps the start from clicking. Stop fades it out over a few hundredths of a second and then cuts it, again so there is no click. While a steady tone is playing, moving the frequency glides the pitch instead of jumping it. Changing the waveform takes effect immediately on the tone already playing. The number field and the +1, +10, and +100 buttons all stay inside 20 to 20,000 Hz, and a sweep disables that slider until the sweep finishes.

The shortcut buttons are fixed, and the highest is 17,400 Hz

The row under the controls is not a calculated scale. It is the fixed frequencies 60, 100, 250, 440, 1,000, 4,000, 8,000, 12,000, 15,000, and 17,400 Hz. 17,400 sits near the top of what many adults can still hear, 15,000 and 12,000 are the other common points where hearing drops off, and 440 is the tuning A the page opens on. The big slider stores whole hertz only, so it will not land on a fraction of a hertz. The waveform opens on Sine. During a sweep the large number is replaced by the word Sweep and the note line is hidden, because the pitch is moving from 20 Hz to 20,000 Hz on its own. Stopping the sweep brings back the frequency you had set before you pressed Sweep.

Related tools

More: Video & Audio