An online tone generator for any frequency
This tone generator plays a steady tone at the frequency you choose, from 1 Hz to 20,000 Hz. Set it with the slider, type an exact value in hertz, or pick a musical note. Choose a sine wave for a pure tone, or a square, sawtooth or triangle wave for a brighter sound, and send it to the left, the right or both channels. The sweep glides between two frequencies over the time you set.
Use it to test speakers and headphones, check the left and right channels, find a rattle in a room or a car, or play a reference pitch (the frequency of every note is in musical note frequencies). To tune an instrument with your microphone, use the online tuner; to check what your microphone picks up, the mic test.
Start at a low volume
Start with the volume low and raise it slowly. The CDC notes that over time any sound of 85 decibels or more can cause hearing loss, and that headphones at the highest volume can cost some of your hearing within a few minutes. It advises turning the volume down to protect your hearing.
How it works
Your browser makes the sound with the Web Audio API: an oscillator produces the waveform at the chosen frequency, a gain stage sets the volume and a stereo panner sends it left, right or to both sides. Frequency and volume changes glide over a few milliseconds, so they do not click. The frequency slider is logarithmic, so every octave, a doubling of the frequency, gets the same length on the slider.
A sine wave has a single frequency. Any other repeating wave, such as a square, sawtooth or triangle wave, is a mix of harmonics at whole-number multiples of its frequency, as the UNSW page on sound spectra explains with Fourier's theorem. That is why the four waveforms sound different at the same pitch.
Notes use twelve-tone equal temperament with A4 at 440 Hz, the standard tuning frequency in ISO 16, using the formula from the UNSW music acoustics notes:
How to use the tone generator
- 1Turn your device volume down, then press Play or the Space bar.
- 2Set the frequency with the slider, the number field, the octave and 1 Hz buttons or the note list, and choose the waveform and channel.
- 3For a sweep, open Frequency sweep, enter the start, the end and the duration, and press Start sweep. Copy link keeps your settings.
Guides on this topic
Frequently asked questions
What frequencies can this tone generator play?
Any frequency from 1 Hz to 20,000 Hz. Below 100 Hz you can set it to 0.01 Hz, up to 1,000 Hz to 0.1 Hz and above that to 1 Hz. Whether you hear a tone also depends on your speakers or headphones and on your hearing.
What is the difference between the waveforms?
A sine wave is a pure tone with a single frequency. Square, sawtooth and triangle waves repeat at the same rate but are not pure: like any repeating wave that is not a sine, they also contain harmonics at whole-number multiples of that frequency, so they sound different from a sine at the same pitch.
How do I play a tone in only one ear?
Choose Left or Right under Channel. The tone then plays on that side of your headphones or stereo speakers only. Both plays it on both sides. If the sides seem swapped, check that your headphones are on the right way round.
What does the sweep do?
It glides from one frequency to another over the time you set. Logarithmic sweeps change by the same ratio per second, so each octave takes the same time. Linear sweeps change by the same number of hertz per second. Sweeps help you find rattles, resonances or the limits of a speaker.
Which note is 440 Hz?
440 Hz is A4, the standard tuning frequency in ISO 16. The note list sets any note from C0 to B8 in equal temperament with A4 at 440 Hz, and the display shows the nearest note for any frequency you play.
Is the sound generated online?
No. Your browser creates the tone on your device with the Web Audio API. Nothing is downloaded or uploaded, and the tone stops when you press Stop or leave the page.