Tone generator: 20 Hz to 20 kHz, waveforms and sweep
Play a tone from 20 Hz to 20 kHz as a sine, square, sawtooth or triangle wave, panned left or right, with a sweep and a low, capped starting volume.
Tone generator: waveforms, frequency sweep and safe volume
The tool plays a tone between 20 Hz and 20 kHz with a logarithmic slider where each decade takes a third of the travel. The volume starts low and stays capped: the WHO puts safe listening at 80 dB for up to 40 hours a week.
What the tool does
A Web Audio oscillator produces the chosen waveform. The sine is a pure tone; the square adds odd harmonics, the sawtooth all harmonics, the triangle weaker odd harmonics. Square and sawtooth are attenuated to keep a similar perceived volume. Panning sends the sound from 100% left to 100% right. 30 ms fades at start and stop prevent clicks.
Slider and sweep
Slider position p, from 0 to 1,000, gives f = 20 × 1,000p/1000 Hz: the middle of the travel is √(20 × 20,000) ≈ 632 Hz. The logarithmic sweep follows f(t) = f1 × (f2/f1)t/T and spends equal time on each octave; the linear sweep follows f1 + (f2 − f1) × t/T.
Worked example
Sweep from 20 Hz to 20,000 Hz in 10 s: logarithmic, each decade lasts 3.33 s and the tone is at 632 Hz after 5 s; linear, it is already at 10,010 Hz after 5 s and spends half the time above 10 kHz. One octave doubles the frequency: 440 Hz becomes 880 Hz. The highest possible frequency is half the sample rate, 22,050 Hz at 44,100 Hz; the tool stays below 20 kHz.
Safety and limits
The WHO states that 80 dB is safe for up to 40 hours a week but 90 dB for only 4 hours, and advises keeping devices below 60% of maximum volume. A very high tone can seem faint while being loud: do not raise the volume to hear it. Headphones and speakers are not calibrated, so the tool does not measure hearing.
Sources and dates: WHO, Deafness and hearing loss: safe listening (6 March 2026) (checked 29/10/2026)
Frequently Asked Questions
How do I test speakers with a tone generator?
Run a logarithmic sweep from 20 Hz to 20,000 Hz over 10 s at low volume, so each decade lasts 3.3 s. Listen for rattles or dropouts, then return to the suspect frequency with the slider. Panning lets you test left and right separately.
What is the difference between a logarithmic and a linear sweep?
A logarithmic sweep spends equal time on each octave: from 20 Hz to 20 kHz in 10 s it reaches 632 Hz halfway. A linear sweep rises by the same number of hertz every second: it is already at 10,010 Hz after 5 s and spends half the time above 10 kHz.
Can high-frequency sound damage hearing?
The risk depends on level and duration, whatever the frequency. The WHO states that 80 dB is safe for up to 40 hours a week but 90 dB for only 4 hours. A very high tone can seem faint while being loud: do not turn up the volume to hear it.
What is the highest frequency a browser can play?
Half the sample rate: 22,050 Hz at 44,100 Hz and 24,000 Hz at 48,000 Hz. The tool stops at 20,000 Hz and lowers the limit further if the sound card runs at a lower rate.
Is this tool really free?
Yes, all tools on Kristools are 100% free and accessible without registration.
Is my data protected?
Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.