DevTools Logo

Audio Tone Generator

Audio Tone Generator

Play precise sine, square, saw and triangle tones or sweeps with anti-click envelopes — then save the WAV.

Runs in your browser
Try an example

Signal

sine · 440 Hz · A4 (+0 cents) · 2.00 s · volume 50% · pan 0.00

Generated signal

88,200 samples · 44,100 Hz
Start at a low volume. High frequencies and long sweeps can be uncomfortable or damage hearing and speakers.
Tones are synthesised locally with zero dependencies; playback uses Web Audio and WAV export uses the same generated samples. No file is uploaded and nothing is recorded. A sweep at high volume can damage hearing or speakers — start quiet.

Playback: stopped

sine · 440 Hz · A4 (+0 cents) · 2.00 s · volume 50% · pan 0.00

Examples

A4 reference

Input
sine · 440 Hz
Output
A4 (+0 cents), 2 s WAV

A tuning and channel-check reference.

Speaker sweep

Input
20 Hz → 20 kHz exponential
Output
Equal time per octave

Makes response changes easier to localise by ear.

Channel isolation

Input
sine · 1 kHz · pan +1
Output
Right channel only

Equal-power panning keeps the perceived level consistent while isolating a speaker.

About this tool

The Audio Tone Generator synthesises precise test signals: sine, square, sawtooth and triangle waves from 1 Hz to 20 kHz, with an optional linear or exponential sweep between two frequencies. It is built for speaker checks, hearing tests and signal-chain debugging rather than for making music.

Each tone starts and ends with a short ramp so switching does not produce a click. Volume follows a squared perceptual law, stereo pan uses equal-power gains, and the nearest equal-tempered note with a cents deviation is shown next to the frequency readout.

Playback uses Web Audio, but the downloadable WAV is generated from the very same floating-point samples in the tab, so the file matches what you hear. Everything is computed locally; no recording, upload or external audio library is involved.

What this tool does not do

  • Playback requires Web Audio support and often a user gesture before sound starts.
  • The WAV export is mono-derived stereo at the chosen sample rate; no MP3 is bundled.
  • A sweep at extreme volume can damage hearing or speakers; no automatic safety limit is imposed beyond the volume control.

How to use this tool

  1. Choose a waveform

    Sine for a pure reference tone, square or saw for harmonic-rich tests, triangle for a soft harmonically sparse signal.

  2. Set frequency

    Use the log-scale slider or type an exact value from 1 Hz to 20 kHz; a preset such as A4 440 Hz or 1 kHz is one click away.

  3. Add a sweep or pan

    Enable sweep mode for a linear or exponential ramp between two frequencies, and move the pan slider to isolate a speaker.

  4. Play and save

    Press Play tone at a low volume, then download the generated WAV when the signal is right.

Use cases

Speaker testing

Check each driver and the crossover region with isolated tones and sweeps.

Hearing checks

Find approximate upper hearing limits with a gentle, low-volume sweep.

Signal-chain debugging

Feed a known sine into a device to measure gain, noise or unwanted distortion.

Waveforms and safety

OptionBehavior
SineSingle frequency, minimal harmonics — reference measurements
Square / sawRich harmonic content — reveals bandwidth and resonance issues
TriangleSoft, mostly odd harmonics — gentler listening tests
SweepLinear or exponential ramp with adjustable start and end frequencies
Attack / releaseShort fade at both ends to prevent switching clicks

Start quiet: high frequencies and long sweeps can be uncomfortable and can damage hearing or speakers.

Common mistakes

Mistake:Starting a sweep at high volume.

Fix:Begin at a low volume and increase gradually; high frequencies are fatiguing even at modest levels.

Mistake:Using a square wave for a precise frequency measurement.

Fix:Use sine — square and saw waves carry strong harmonics that can excite the room or the device.

Mistake:Expecting audio to be recorded.

Fix:The tool only synthesises tones; nothing captures a microphone or uploads audio.

Frequently asked questions

What frequencies can humans hear?

A healthy young ear is often quoted as roughly 20 Hz to 20 kHz, with the upper limit falling with age and exposure. Sweep at a low volume to find your own approximate limit; do not use high levels to compensate for hearing loss.

Why does a sweep help test speakers?

A tone sweep moves through the whole frequency range while you listen for rattles, resonances or gaps where a driver stops responding. An exponential sweep spends equal time per octave, which matches how we perceive pitch.

Can this hurt my speakers or ears?

Yes. Sustained tones, especially between 1 and 5 kHz, can be painfully loud at modest gain and can damage hearing; high power at low frequencies can damage small speakers. Start at a low volume, increase slowly and stop immediately if anything sounds strained.

Which waveform should I use?

Sine is the reference for frequency and level measurements. Square and sawtooth are useful for stressing bandwidth and revealing resonance because they contain many harmonics. Triangle is a quieter compromise with mostly odd harmonics.

Why do tones click when they start?

A raw oscillator starts at an arbitrary point in its cycle, producing a discontinuity. This generator applies a short attack and release ramp at every start and stop, so the waveform begins and ends at zero amplitude.

Does the downloaded WAV match what I hear?

Yes. The WAV is encoded from the same generated samples used for Web Audio playback, including the volume curve, pan gains and anti-click envelope.