Tone Generator

Generate a pure tone at any frequency from 20 Hz to 20 kHz — sine, square, triangle or sawtooth.

How to use

  1. Set the frequency with the slider or type a value — 440 Hz is concert A, 1000 Hz is the standard test tone.
  2. Choose a waveform: sine is a pure tone, square is buzzy, triangle is mellow, sawtooth is bright.
  3. Adjust the volume, press Play, and Stop when done. Start low — some frequencies are uncomfortable at high volume.

About this tool

A tone generator produces a continuous audio signal at a frequency you choose, using the Web Audio API built into every modern browser. The signal is created by an oscillator node connected to a gain node that controls the volume, and from there it goes straight to your speakers or headphones. There is no audio file involved: the waveform is generated mathematically in real time, which is why the frequency slider responds instantly.

Four waveform shapes are available. A sine wave is the purest tone — a single frequency with no harmonics, the kind of signal a tuning fork produces. A square wave adds all odd harmonics at decreasing amplitude, giving it a hollow, buzzy character. A triangle wave also contains only odd harmonics but they fall off much faster, producing a softer sound. A sawtooth wave includes all harmonics, both even and odd, and sounds the brightest and most aggressive of the four.

Practical uses include testing speakers and headphones for dead spots or distortion, checking the frequency range of a sound system, tuning instruments by ear against a reference pitch, and generating a steady tone for audio calibration. The volume control is important: frequencies near the extremes of human hearing — below 50 Hz or above 15 kHz — need more volume to be perceived, and high volume at any frequency can damage hearing. Start quiet and increase gradually.

The formula

Sine: y = sin(2π × f × t). Square: y = sign(sin(2π × f × t)). Triangle: y = (2/π) × arcsin(sin(2π × f × t)). Sawtooth: y = 2 × (f × t − ⌊f × t + ½⌋). All at amplitude A controlled by the volume slider.

Frequently asked questions

Can this damage my speakers?

At high volume, especially at extreme frequencies, any speaker can be damaged. Start at low volume and increase carefully. Sub-bass frequencies (under 40 Hz) are particularly risky for small speakers.

Why can I not hear anything?

The browser may require a user gesture to start audio — click the Play button. Also check the volume slider, your system volume, and that the right audio output is selected.

What is 440 Hz?

Concert pitch A4, the standard tuning reference for most Western music. Orchestras tune to this frequency, and most tuners default to it.

Can I hear 20 Hz?

Most people cannot hear below 20 Hz, and most consumer speakers cannot reproduce it. You may feel it as a vibration rather than hear it as a pitch.

Does the tone leave my browser?

The oscillator runs in the Web Audio API on your device. No audio data is generated as a file, transmitted or stored.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.