Skip to content
Aback Audio

How to generate test tones and frequency sweeps with a tone generator

Use an online tone generator for sine, square, sawtooth and triangle test tones and frequency sweeps. Test speakers and rooms safely, use noise and export WAV.

By Devvrat Hans13 min read

A tone generator produces a pure, steady sound at a frequency you choose, and a frequency sweep glides smoothly from one frequency to another. To make one, open the Tone Generator, set the frequency and waveform, start at a low volume and press Play tone; switch the mode to Frequency sweep to glide from a start to an end frequency, and press Generate file to save it as WAV. This guide explains the four waveforms, which frequencies to use for speakers, subwoofers and tuning, how sweeps reveal rattles and room resonances, what hearing test tones can and cannot tell you, how to stay safe, and when noise is the better test signal.

1 Hz to 48 kHz

exact frequency

Slider covers 20 Hz to 20 kHz

4

waveforms

Sine, square, sawtooth, triangle

10 min

longest export

0.1 to 600 seconds

-18 dBFS

default volume

Warning above -6 dBFS

What an online tone generator does

An audio signal generator creates a sound mathematically instead of recording it. Because the signal is known exactly, you can use it as a reference: to check whether a speaker reproduces 40 Hz, to find which note a guitar string should ring at, to line up recording levels, or to hear where a room booms. Studio and lab generators are hardware boxes; an online tone generator does the same job in software using your device's sound output.

The Aback Audio Tone Generator plays sounds live through the browser and can also render them to a file. Generated files are created locally in your browser: the samples are calculated on your device and saved to your disk, so nothing is uploaded.

  • Frequency: a logarithmic slider from 20 Hz to 20 kHz, buttons to move up or down one semitone or one octave, and an Exact frequency field from 1 Hz to 48,000 Hz in 0.01 Hz steps. The display shows the nearest musical note and how many cents it is off.
  • Presets: A4 (440 Hz, concert pitch), Middle C (261.63 Hz), 1 kHz (test tone), 100 Hz (bass check), 50 Hz and 60 Hz (mains hum in Europe and the US), 10 kHz (treble check) and 15 kHz (hearing test).
  • Volume: -60 to 0 dBFS, starting at -18 dBFS, with a warning when you go above -6 dBFS.
  • Mode: Steady tone or Frequency sweep, with a start and an end frequency.
  • Download: a length from 0.1 to 600 seconds, mono or stereo, and WAV, FLAC, MP3, M4A, OGG or AIFF output.

Sine, square, sawtooth and triangle waves

The waveform decides which harmonics, the whole-number multiples of the frequency, are present. A 100 Hz sine contains only 100 Hz. A 100 Hz square wave contains 100, 300, 500, 700 Hz and so on, which is why it sounds hollow and buzzy. That difference matters when you test equipment: harmonics can make a speaker that cannot play 40 Hz appear to "play" a 40 Hz square wave, because you are hearing 120 Hz and above.

The four waveforms in the Tone Generator
WaveformHarmonicsSoundUse it for
SineNone, a single frequencyPure, smoothSpeaker and hearing tests, sweeps, level alignment, tuning reference
SquareOdd harmonics, falling as 1/nHollow, buzzyChecking rattles, retro game sounds, synth practice
SawtoothAll harmonics, falling as 1/nBright, richSynth sound design, filter demos, a full-spectrum buzz
TriangleOdd harmonics, falling as 1/n²Soft, flute-likeA gentler tone than square, chiptune bass, ear training

When you export a square, sawtooth or triangle wave, the generator builds it only from harmonics that fit below the file's Nyquist limit (half the sample rate). That keeps the tone free of aliasing, the metallic extra pitches that appear when a naive square wave is sampled, and it keeps a sweep clean as it rises. The exported tone is normalized so its peak lands exactly on the volume you chose.

How to generate a test tone, step by step

  1. 1

    Turn your device volume down

    Set your computer, phone or amplifier to a low level before you press anything. You can always turn up; you cannot undo a loud blast.

  2. 2

    Open the tone generator

    Go to the Tone Generator. It opens on a 440 Hz sine at -18 dBFS.

  3. 3

    Choose a frequency

    Drag the slider, tap a preset, use the semitone and octave buttons, or type an exact value such as 1000 or 41.2.

  4. 4

    Pick a waveform

    Leave Sine selected for testing. Choose Square, Sawtooth or Triangle when you want harmonics.

  5. 5

    Play and adjust

    Press Play tone. Frequency, waveform and volume change live while a steady tone plays. Press Stop when you are done.

  6. 6

    Save a file if you need one

    Under Download as a file, set the Length and Mono or Stereo, choose a format, and press Generate file. The result can be played and downloaded from the result panel.

Open the Tone GeneratorPlay sine, square, sawtooth and triangle tones or logarithmic sweeps, and save them as WAV, FLAC or MP3.

Which test tone frequency to use

Most hearing and audio specifications are written against the range of about 20 Hz to 20 kHz. Below about 20 Hz sound is felt more than heard; above about 16 kHz many adults hear little or nothing. Small speakers rarely go low: a phone speaker may give up somewhere in the hundreds of hertz, and many laptops are not much better.

Common test frequencies and what they are for
FrequencyRangeWhat to listen for
20 to 40 HzDeep sub bassWhether a subwoofer reaches this low, and rattles in the room
50 or 60 HzMains humA reference to compare with hum in a recording
80 to 120 HzBass, sub crossoverThe handoff between subwoofer and main speakers
440 HzA4, concert pitchTuning instruments by ear
1 kHzMidrange referenceLevel alignment, checking left and right balance
3 to 5 kHzPresenceThe region the ear is most sensitive to; keep it quiet
10 kHzTrebleWhether tweeters are working on both sides
15 to 18 kHzUpper hearingYour personal upper limit, and age-related change

To check stereo wiring, play a 1 kHz tone and listen on each side. The Tone Generator sends the same signal to both channels, so the tone should sound centered between the speakers; if it seems to come from one side, check balance settings and cables. For tuning, the 440 Hz preset gives you A4, and the Online Tuner does the reverse job, telling you which note your instrument is playing. The guide on how to tune a guitar online covers that in detail.

Frequency sweeps: linear vs logarithmic

A sweep tone, also called a chirp, glides continuously from one frequency to another. A linear sweep adds the same number of hertz every second, so a 10-second sweep from 20 Hz to 20 kHz spends half its time above 10 kHz and rushes through the bass in a fraction of a second. A logarithmic (exponential) sweep multiplies the frequency by the same ratio every second, so each octave, 20 to 40 Hz, 40 to 80 Hz and so on up to 10 to 20 kHz, gets equal time. That matches how we hear pitch, and it is how speakers and rooms are normally measured.

The Tone Generator's frequency sweep generator is logarithmic. When you switch to Frequency sweep, the start frequency jumps to 20 Hz if it was above 1 kHz, and the end frequency starts at 20,000 Hz. The Length you set below is the sweep's duration, both for live playback and for the file. A 20 Hz to 20 kHz sweep covers ten octaves, so 30 seconds gives you three seconds per octave, slow enough to notice a resonance. The sweep is phase-continuous, so there are no clicks along the way, and it can run downward if you set the end below the start.

How to find speaker and room resonances with a sweep

  1. Choose Sine, Frequency sweep, start 20 Hz, end 200 Hz and a length of 30 to 60 seconds. The bass is where rooms cause the biggest problems.
  2. Set a low volume, sit in your listening position and press Play sweep.
  3. Listen for frequencies that suddenly boom (a room mode or speaker resonance), drop away (a cancellation), or make something buzz. Write down the frequency shown when it happens; replay a steady tone at that frequency to confirm it.
  4. Repeat from 200 Hz to 20 kHz for the rest of the range, listening for harshness, rattling grilles or a tweeter that drops out.
  5. Optionally, run the Spectrum Analyzer on a second device with a microphone. Its peak hold shows how loud each frequency arrived.

Once you know where a peak sits, you can tame it in your recordings or playlists with the 10-band Audio Equalizer, which has bands from 31 Hz to 16 kHz.

Hearing test tones and tinnitus: what tones can tell you

Playing tones of rising frequency is a fun way to find your approximate upper hearing limit. It is normal for that limit to fall with age, and many adults no longer hear tones above about 15 kHz. Some people use a high tone to identify the pitch of their tinnitus so they can describe it to a doctor or audiologist.

If you try a high-frequency check anyway, use headphones at a low level, start at 10 kHz and move up in small steps rather than jumping straight to 18 kHz. A high tone you cannot hear can still be loud, so never turn up the volume to "find" it.

Safety: protect your ears and your tweeters

  • Start quietly. The Tone Generator opens at -18 dBFS and warns you above -6 dBFS. Set your system volume low first, then raise it slowly.
  • Keep sessions short. A continuous pure tone is tiring and, at high levels, harmful. A few seconds at a time is enough for most tests.
  • Protect tweeters. Tweeters are small and handle little power. Loud high tones and square or sawtooth waves, which pack energy into the top octaves, can overheat them.
  • Respect woofer limits. Very low tones at high level make woofer cones move a long way. If you hear clacking or distortion at 20 to 30 Hz, turn down immediately.
  • Mind the people and pets nearby. High tones that adults barely notice can be very unpleasant for children and animals.

White noise vs pink noise (and brown noise)

A tone tests one frequency at a time; noise tests all of them at once. The Noise Generator offers five colors, each with a different balance between low and high frequencies.

Noise colors in the Noise Generator
ColorSpectrumSounds likeCommon uses
WhiteEqual energy at every frequencyBright hissMasking, testing, dither experiments
PinkFalls 3 dB per octaveRain, steady windSpeaker level matching, room checks, sleep and focus
BrownFalls 6 dB per octaveWaterfall, distant thunderDeep masking for sleep, covering low rumble
BlueRises 3 dB per octaveCrisp, airy hissDithering, some tinnitus masking
VioletRises 6 dB per octaveSharp, high hissHigh-frequency tests

Pink noise has equal energy in every octave, which matches the way we hear, so it is the standard signal for matching the levels of several speakers or checking the tonal balance of a room with an analyzer. White noise sounds much brighter because every octave up contains twice as many hertz. Brown noise is the deep, soft option many people prefer for sleep.

The Noise Generator sets its level as RMS, from -50 to -12 dBFS, and has a sleep timer of 15 minutes, 30 minutes, 1 hour or 2 hours that ends with a 30-second fade. You can also download up to 20 minutes of stereo noise, with the two channels decorrelated so it sounds wide, as MP3, M4A, OGG, FLAC or WAV.

Open the Noise GeneratorPlay or download white, pink, brown, blue or violet noise with a sleep timer.

Exporting test tones as WAV and other formats

A file is useful when the test tone has to play somewhere else: a car stereo, a DJ controller, a video timeline or a sampler. The Tone Generator saves WAV at 16-bit by default, and also FLAC, MP3, M4A, OGG and AIFF. Files are rendered at 48 kHz, or 96 kHz when a frequency is above 20 kHz, and each file gets a 10 ms fade at the start and end so it does not click. Names describe the content, for example sine-440hz.wav or sweep-20-20000hz.wav.

Approximate size of a 48 kHz tone file per minute
FormatMonoStereoNotes
WAV 16-bit5.8 MB11.5 MBExact samples, plays everywhere
WAV 24-bit8.6 MB17.3 MBLower noise floor for very quiet tones
FLACMuch smaller than WAVMuch smaller than WAVLossless; pure tones compress very well
MP3 192 kbps1.4 MB1.4 MBFine for audible tones, not for precise measurement

If you are unsure which sample rate or bit depth a device needs, the sample rate guide and the bit depth guide explain the trade-offs. To check a file you exported, open it in the Audio Inspector, or record it back with the Voice Recorder to hear what your microphone picks up.

Tools used in this article

Frequently asked questions

What is a tone generator used for?

Testing speakers, headphones and subwoofers, tuning instruments, aligning recording levels, finding room resonances, identifying hum, and sound design. The Tone Generator plays tones live and saves them as files.

How do I make a frequency sweep?

In the Tone Generator, set the mode to Frequency sweep, enter a start and end frequency, set the Length (the sweep duration), and press Play sweep or Generate file. Sweeps are logarithmic, so each octave takes the same time.

What is the difference between a linear and a logarithmic sweep?

A linear sweep adds the same number of hertz per second and spends most of its time in the treble. A logarithmic sweep multiplies the frequency at a constant rate, giving each octave equal time, which suits hearing and speaker testing.

What frequency is a good test tone?

1 kHz is the standard reference for levels and balance. Use 440 Hz for tuning, 20 to 120 Hz for subwoofers and bass, and 10 kHz for tweeters. Always start at a low volume.

Can an online tone generator test my hearing?

It can give you a rough idea of your upper limit, but it is not a medical test. Devices and headphones are not calibrated and often roll off above 15 kHz. See an audiologist if you have concerns about your hearing.

What is the difference between white noise and pink noise?

White noise has equal energy at every frequency and sounds bright. Pink noise falls 3 dB per octave, giving each octave equal energy, so it sounds more balanced and is used for speaker level matching. Both are in the Noise Generator.

Can I download a sine wave as a WAV file?

Yes. Set the frequency and volume, choose a Length up to 600 seconds and Mono or Stereo, keep WAV selected and press Generate file. You can also save FLAC, MP3, M4A, OGG or AIFF.

Can a test tone damage my speakers?

Yes, at high levels. Loud high tones and square or sawtooth waves can overheat tweeters, and loud deep bass can push woofers past their limits. Start quietly, keep tests short and stop if you hear distortion.

Related articles