Frequency sweep
The tone stops at the end of the sweep. Changing the frequency or pressing Stop ends a sweep early.
Note frequency chart (A4 = 440 Hz)
Frequencies in hertz of every note from C0 to B8 in twelve-tone equal temperament with A4 tuned to 440 Hz, using f = 440 × 2^(n ÷ 12), where n is the number of semitones above (positive) or below (negative) A4. Middle C is C4. Octave numbers use scientific pitch notation.
| Note | Octave 0 | Octave 1 | Octave 2 | Octave 3 | Octave 4 | Octave 5 | Octave 6 | Octave 7 | Octave 8 |
|---|---|---|---|---|---|---|---|---|---|
| C | 16.35* | 32.70 | 65.41 | 130.81 | 261.63 | 523.25 | 1046.50 | 2093.00 | 4186.01 |
| C♯/D♭ | 17.32* | 34.65 | 69.30 | 138.59 | 277.18 | 554.37 | 1108.73 | 2217.46 | 4434.92 |
| D | 18.35* | 36.71 | 73.42 | 146.83 | 293.66 | 587.33 | 1174.66 | 2349.32 | 4698.64 |
| D♯/E♭ | 19.45* | 38.89 | 77.78 | 155.56 | 311.13 | 622.25 | 1244.51 | 2489.02 | 4978.03 |
| E | 20.60 | 41.20 | 82.41 | 164.81 | 329.63 | 659.26 | 1318.51 | 2637.02 | 5274.04 |
| F | 21.83 | 43.65 | 87.31 | 174.61 | 349.23 | 698.46 | 1396.91 | 2793.83 | 5587.65 |
| F♯/G♭ | 23.12 | 46.25 | 92.50 | 185.00 | 369.99 | 739.99 | 1479.98 | 2959.96 | 5919.91 |
| G | 24.50 | 49.00 | 98.00 | 196.00 | 392.00 | 783.99 | 1567.98 | 3135.96 | 6271.93 |
| G♯/A♭ | 25.96 | 51.91 | 103.83 | 207.65 | 415.30 | 830.61 | 1661.22 | 3322.44 | 6644.88 |
| A | 27.50 | 55.00 | 110.00 | 220.00 | 440.00 | 880.00 | 1760.00 | 3520.00 | 7040.00 |
| A♯/B♭ | 29.14 | 58.27 | 116.54 | 233.08 | 466.16 | 932.33 | 1864.66 | 3729.31 | 7458.62 |
| B | 30.87 | 61.74 | 123.47 | 246.94 | 493.88 | 987.77 | 1975.53 | 3951.07 | 7902.13 |
Source: thealltools.com/tools/tone-generator
About this tool
This online tone generator plays a pure test tone at any frequency from 20 Hz to 20,000 Hz (20 kHz) through your speakers or headphones. Type an exact frequency or drag the logarithmic slider, pick a sine, square, sawtooth or triangle wave, and use the presets for A4 440 Hz, middle C, a 1 kHz test tone or 50 and 60 Hz mains hum. A sweep mode glides between two frequencies, and a stereo test sends the tone to the left, right or both channels. Everything is generated live in your browser with the Web Audio API; nothing is downloaded or uploaded.
How to use the tone generator
- Turn your device volume down, then press Play tone. The tone fades in over a third of a second at the page volume shown.
- Set the frequency by typing it in hertz, dragging the slider, using the semitone and octave buttons, choosing a preset, or picking a note and octave and pressing Set note. The line under the slider names the nearest note and how many cents sharp or flat the frequency is.
- Choose a waveform. Sine is a single pure frequency; the others add harmonics and sound brighter.
- Test stereo with the Channel list. Left only and Right only confirm that your speakers or earbuds are the right way round; Alternate switches sides every second.
- Run a sweep by opening Frequency sweep, entering a start, end and duration, and pressing Start sweep.
- Press Stop when you are done. The tone also stops if you switch tabs, minimize the browser or leave the page.
How it works
Pressing Play creates an AudioContext and an OscillatorNode, the Web Audio building block that generates a periodic waveform. Its type is one of sine, square, sawtooth or triangle. The oscillator runs through a gain node for volume and then to separate left and right gains, which is how the channel test works. Stop fades the tone out and calls close() on the audio context, which MDN describes as releasing the system audio resources it uses.
The frequency slider is logarithmic, because pitch is heard in ratios: each octave doubles the frequency. Slider position p from 0 to 1 gives f = 20 × 1000^p, so the middle of the slider is about 632 Hz and every tenth of the slider is the same musical distance. The volume slider uses a square law, gain = (volume ÷ 100)², and shows the result as a peak level in dBFS, decibels relative to digital full scale: 20 × log10(gain). That level is before your device volume, so it says nothing about how loud the sound is in the room.
A logarithmic sweep uses an exponential ramp of the oscillator frequency, so it spends equal time in each octave. A linear sweep changes by the same number of hertz each second, which means it races through the low end, where octaves are only a few hertz wide.
Note frequencies and the formula
Musical notes here use twelve-tone equal temperament, where every semitone multiplies the frequency by the twelfth root of 2 (about 1.059463). The reference pitch is A4 = 440 Hz, the standard tuning frequency set by ISO 16. For a note n semitones away from A4, f = 440 × 2^(n ÷ 12). Middle C is 9 semitones below A4, so f = 440 × 2^(−9 ÷ 12) = 261.63 Hz. In MIDI numbering A4 is note 69 and middle C (C4) is note 60, so the same formula is 440 × 2^((m − 69) ÷ 12). Some software names middle C as C3 instead, so check the octave numbering if a note looks one octave off. The full chart of note frequencies from C0 to B8 is at the bottom of this page.
Waveforms and what you hear
- Sine: only the fundamental frequency. Best for tuning references and frequency checks.
- Square: the fundamental plus odd harmonics (3, 5, 7… times the frequency) at 1/3, 1/5, 1/7… of its strength. A full-scale square wave has the same RMS value as its peak, 3 dB more than a sine at the same peak, so it sounds louder and buzzier.
- Sawtooth: every harmonic, each at 1/n of the fundamental. Bright and reedy.
- Triangle: odd harmonics only, falling off as 1/n², so it sounds close to a sine with a slightly hollow edge.
Worked example
When the page loads it is set to the default tone: 440 Hz, sine wave, volume 20%, both channels. The note line reads A4, 0 cents. One cycle lasts 1000 ÷ 440 = 2.2727 ms. The volume of 20% gives a gain of 0.2² = 0.04, so the page shows -28.0 dBFS. Press + Octave and the frequency doubles to 880 Hz (A5); press + Semitone from 440 Hz instead and it becomes 440 × 1.059463 = 466.16 Hz (A♯4).
Device limits
What you hear depends on your speakers or headphones as much as on the tone. Small laptop, tablet and phone speakers often cannot reproduce low frequencies such as the 50 and 60 Hz presets, so a low sine may be faint or silent; switch to a square wave and you will mostly hear its higher harmonics. Very high frequencies may also be rolled off by headphones or by the device's audio processing. Mains hum is 60 Hz in the United States and Canada and 50 Hz in the UK and most of Europe, so pick the preset for your region when matching a hum.
Common mistakes
- Starting with the computer volume high. Turn it down first; 20% on this page is a starting point, not a safe level for every headset.
- Treating it as a hearing test. Whether a tone is audible depends on the equipment and room as well as your ears. For concerns about your hearing, see a qualified professional.
- Expecting the slider to be linear. Halfway along is about 632 Hz, not 10 kHz.
Use cases
- A 440 Hz reference for tuning instruments by ear, or any other note from the note picker.
- Checking speaker wiring and left/right channels, or finding a rattle with a slow sweep.
- A 1 kHz line-up tone for setting levels, checked with the Mic Test meter.
- Teaching sound, pitch and harmonics in a classroom, and finding a song's tempo with the BPM Finder.
Frequently asked questions
Press the A4 440 Hz preset, or type 440 in the frequency box, then press Play tone. The default waveform is a sine wave, the cleanest choice for tuning. Keep your device volume low at first. The note line under the slider confirms the frequency is exactly A4 with 0 cents of deviation.
No. This page only plays test tones and is not calibrated in any way. Whether you hear a tone depends on your speakers or headphones, the room and the volume settings as well as your ears. If you are worried about your hearing, see a doctor or a qualified hearing professional for a proper test.
Small built-in speakers are too small to move much air at low frequencies, so tones around 20 to 100 Hz may sound faint or silent. Try headphones or larger speakers. Switching to a square wave makes a low tone easier to hear because its higher harmonics come through even when the fundamental does not.
Middle C, written C4, is about 261.63 Hz when A4 is tuned to 440 Hz in equal temperament. It sits 9 semitones below A4, so its frequency is 440 times 2 to the power of minus 9 over 12. The Middle C preset plays it, and the chart on this page lists every note from C0 to B8.
No. The tone stops automatically when you switch to another tab, minimize the browser or leave the page, and the audio engine is closed so nothing keeps running. Press Play tone again when you come back. This avoids a forgotten tone playing loudly later.
A logarithmic sweep spends the same time on every octave, so 20 to 40 Hz takes as long as 10 to 20 kHz. A linear sweep changes by the same number of hertz each second, so it rushes through the bass. For checking speakers across the whole range, the logarithmic sweep usually sounds more even.