Sine Wave Generator & Online Hearing Test
Generate pure tone frequencies from 20 Hz to 20 kHz. Test your hearing range and create reference tones for audio work.
Runs in your browser. No data leaves your device.
About this tool
A tone generator that plays a continuous tone at any frequency from 20 Hz to 20 kHz with a sine, square, sawtooth or triangle waveform. Useful for informal hearing-range checks, testing speakers or headphones, and producing reference tones. Volume and frequency can be changed while the tone is playing.
Features
- Frequency slider from 20 Hz to 20,000 Hz in 1 Hz steps, default 440 Hz
- Presets: 20 Hz, 100 Hz, 440 Hz (A4), 1 kHz, 4 kHz, 8 kHz, 12 kHz, 16 kHz, 20 kHz
- Waveforms: sine (default), square, sawtooth, triangle via a Web Audio OscillatorNode
- Volume slider 0-100% (default 30%) through a GainNode; volume and frequency update live while playing
- Frequency, volume and waveform all change live on the running oscillator; the tone fades in and out over 15 ms so starting and stopping do not click
- Displays the frequency (shown in kHz at 1000 Hz and above), the nearest note name in scientific pitch notation (A4 = 440 Hz, middle C = C4), and the waveform
How to use it
- Set a frequency with the slider or a preset button
- Pick a waveform (sine for a pure tone)
- Set the volume low, then press Play Tone
- Move the slider while it plays to sweep frequencies; press Stop to end
Outputs
- Continuous tone played through the device speakers or headphones; no file export
Limits and notes
- Requires the Web Audio API
- Frequency is set with the slider and presets only; there is no numeric input box
- The slider is linear, so low frequencies occupy a small part of its travel
- What you can actually hear at the extremes depends on your speakers or headphones; it is not a calibrated hearing test
- Settings are not saved between visits
Frequently Asked Questions
How does the Sine Wave Generator work?
The tool creates a Web Audio OscillatorNode with the chosen waveform (sine, square, sawtooth or triangle) at the selected frequency and routes it through a GainNode for volume to your speakers. Moving the frequency or volume slider updates the playing tone immediately. Changing the waveform switches the playing tone to the new shape instantly, and the tone fades in and out briefly so it never clicks.
What frequency range can I generate?
From 20 Hz to 20,000 Hz, covering the nominal range of human hearing. Use the slider (1 Hz steps) or the preset buttons for 20 Hz, 100 Hz, 440 Hz, 1 kHz, 4 kHz, 8 kHz, 12 kHz, 16 kHz and 20 kHz.
Can I use this as a hearing test?
You can sweep through frequencies to find the highest pitch you can hear. Most adults cannot hear above 15-17 kHz. This is a rough self-test, not a medical audiometry exam.
What waveforms are available?
Sine (pure tone), square, sawtooth, and triangle waves. Sine is the most common for hearing tests and reference tones. Other waveforms have richer harmonic content useful for music and audio testing.