Tone generator
Generate a tone at a chosen frequency, duration, waveform (sine, square, triangle, sawtooth) and volume, with derived samples, cycles, note name and WAV size; play it with Web Audio or download 16-bit WAV.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
20–20000 Hz
10 ms – 600000 ms (10 minutes); above 30 seconds the tone only plays and no WAV is generated.
A linear fade at both ends avoids clicks; at most half of the duration.
Parameter summary
The numbers shown are derived values (samples, cycles, WAV size), not estimates.
Frequency: 440 Hz (about A4, 0 cents off) Duration: 1000 ms Sample rate: 44100 Hz Samples: 44100 Waveform: sine Volume: 0.5 (peak -6.02 dBFS) Envelope: fade in 10 ms / fade out 10 ms Samples per cycle: 100.23 Cycles in total: 440 WAV size: 86.2 KiB (16-bit mono)
Frequency: 440 Hz · Duration: 1000 ms · Samples: 44100 · WAV bytes: 88244 · Waveform: Sine · Downloadable: yes
What this tool does
- Feed a reference tone into speakers, headphones or a tuner: 440 Hz gives A4, and the cents offset shows whether a device runs sharp or flat.
- Use it as a test signal: sine, square, triangle and sawtooth waveforms with a linear fade to avoid clicks and controllable volume and duration.
- Download a 16-bit mono WAV up to 30 seconds long and open it in any audio editor.
Example
Input
frequency 440 Hz, duration 1000 ms, sample rate 44100 Hz, sine, volume 0.5, fade 10 ms
Output
Frequency: 440 Hz (about A4, 0 cents off) Duration: 1000 ms Sample rate: 44100 Hz Samples: 44100 Waveform: sine Volume: 0.5 (peak -6.02 dBFS) Envelope: fade in 10 ms / fade out 10 ms Samples per cycle: 100.23 Cycles in total: 440 WAV size: 86.2 KiB (16-bit mono)
Every value is derived with public formulas: samples = duration × sample rate, cycles = frequency × duration.
Frequently asked questions
How is the audio computed?
Standard waveform formulas are sampled directly: sine as sin(2πft), square as +1/-1 per half cycle, triangle and sawtooth by linear interpolation of the cycle position, then multiplied by a linear fade envelope and the volume before being packed as 16-bit mono WAV. No audio is pre-recorded, and identical parameters give identical samples.
Why is the frequency capped at 20 kHz, and what is the Nyquist rule?
Human hearing spans roughly 20 Hz to 20 kHz, so the bounds follow that range. The sample rate also limits what can be represented: Nyquist frequency is half the sample rate, so at 8000 Hz sampling anything above 4 kHz is impossible. The tool rejects such settings instead of producing a distorted result.
Where do the note name and cents come from?
Equal temperament: f = 440 × 2^((n-69)/12), anchored on A4 = 440 Hz, with the offset in cents. For example 1000 Hz is about B5, 21 cents sharp, and 261.63 Hz is about C4 at 0 cents. It is a mathematical conversion, not a measurement of your device.
Why can I not download tones longer than 30 seconds?
A 44100 Hz 16-bit mono WAV is about 86 KB per second, so ten minutes would be over 50 MB, which is heavy to build and download in a browser. Longer settings therefore play through Web Audio only (playback supports the full 10 minutes) and never produce a file.
Can this damage my hearing?
Loud or high frequency tones for a long time can damage hearing. The default volume is 0.5 (peak -6 dBFS) with fades at both ends, but always lower your system volume first and keep sessions to a few minutes. This is not a medical device and cannot be used for hearing diagnosis.
Keywords:440Hztone generatorsine wave