AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I generate a specific frequency or test tone online?

Open AnyTool Tone Generator, set the frequency you want — drag the logarithmic slider, type an exact value from 20 Hz to 20 kHz, or use the ±10 / ±100 Hz steps — pick a waveform (sine, square, triangle or sawtooth), then press Play. The tone is synthesized with the Web Audio API and fades in smoothly so there are no clicks. You can route it to the left, right or both channels, run a frequency sweep, and see the nearest musical note (A4 = 440). Start the volume low to protect your ears and speakers.

  • Any frequency 20 Hz–20 kHz: log slider, exact entry and ±10 / ±100 Hz fine steps
  • Four waveforms — sine, square, triangle, sawtooth — each with its own harmonics
  • Logarithmic or linear frequency sweep (chirp) from a start to an end over N seconds
  • Left / right / both channels, smooth gain ramp (no clicks), live oscilloscope
  • Nearest equal-tempered note and cents shown · 100% in your browser, nothing uploaded

What is

Tone Generator

A tone generator (or frequency/signal generator) produces a steady audio tone at a chosen frequency and waveform. The frequency, measured in hertz (Hz), sets the pitch — 20 Hz to 20 kHz spans the typical range of human hearing — while the waveform sets the timbre: a sine wave is a single pure frequency, whereas square, triangle and sawtooth waves add harmonics. A web tone generator synthesizes the signal in the browser with the Web Audio API, with no files to download.

Generators

Related terms

Frequency (Hz)WaveformSine waveFrequency sweep (chirp)A4 = 440 Hz

Frequently Asked Questions

From 20 Hz to 20,000 Hz — the full range of typical human hearing. You can set it with a logarithmic slider, an exact number, or fine ±10 / ±100 Hz steps.

The generator covers 20 Hz to 20 kHz, which is the range most people can hear; bass starts around 20–60 Hz and the upper limit falls with age, so many adults stop hearing tones above about 15–16 kHz. Because pitch is perceived logarithmically, the slider is log-scaled so low and high frequencies are equally easy to dial in, and you can also type an exact value (down to 0.01 Hz precision) or nudge by ±10 / ±100 Hz. The display shows the nearest equal-tempered note and how many cents sharp or flat the tone is, using the A4 = 440 Hz standard.

They differ in harmonics. Sine is a single pure frequency; square and triangle add odd harmonics (square is harsher); sawtooth adds every harmonic for a bright, buzzy tone.

A sine wave is the simplest signal — one fundamental frequency with no harmonics — so it sounds smooth and flute-like and is ideal for clean reference and test tones. A square wave contains the fundamental plus odd harmonics, giving a hollow, reedy buzz. A triangle wave also has only odd harmonics but they fall off faster, so it sounds softer and sweeter than a square. A sawtooth wave contains every harmonic, odd and even, producing the brightest, most brass-like and buzzy tone. For pure frequency or hearing tests, use sine; the others are useful for synth-style tones and for hearing how harmonics change the timbre at the same pitch.

A sweep (or chirp) glides continuously from a start frequency to an end frequency over a set time. It is useful for finding resonances, testing a speaker’s range or doing a quick ear sweep.

A frequency sweep plays a tone whose frequency changes smoothly from a start value to an end value over a chosen duration. AnyTool offers a logarithmic sweep, which spends equal time per octave and is the natural choice for full-range speaker and room checks, and a linear sweep, which spends equal time per hertz. Sweeping up through the bass helps you hear where a speaker or room rings or buzzes (resonances and rattles), and sweeping across the whole range gives a rough sense of which frequencies you can still hear. Set the start, end and time, choose log or linear, and press Play sweep — the tone glides while a progress readout tracks it.

It is a handy reference, but not a calibrated or medical device. Start the volume low, and see an audiologist for a real hearing test.

You can use the generator to explore which frequencies you can hear, but it is not a substitute for a proper audiogram: the actual loudness reaching your ears depends on your device, headphones and volume setting, none of which are calibrated, so the result is not a clinical measurement. Treat it as a reference and a fun experiment, not a diagnosis. For safety, always start with a low volume and raise it slowly — sustained, loud or very high-frequency tones can harm your hearing, and loud low-frequency tones can damage speakers and headphones. You may not consciously hear ultrasonic-range tones even when they are loud, so trust the volume number rather than your ears, and stop if anything is uncomfortable.

Detailed Explanation

Methodology

How the Tone Generator Synthesizes Sound

AnyTool Tone Generator is built on the native Web Audio API. A single OscillatorNode (set to the chosen waveform and frequency) feeds a GainNode whose value is moved with linearRampToValueAtTime, so tones fade in and out over a few milliseconds and never click or pop. The signal then passes through a StereoPannerNode that routes it fully left, fully right or centred, before reaching the destination. An AnalyserNode tapped off the gain stage drives a live oscilloscope that draws the actual generated waveform rather than a decorative animation. Frequency, waveform and channel can all change while a tone is playing, and the AudioContext is created lazily on the first user gesture to satisfy browser autoplay policy, then closed on unmount.

  • OscillatorNode → GainNode → StereoPannerNode → destination, all native Web Audio
  • Gain is ramped with linearRampToValueAtTime to eliminate clicks and pops
  • Frequency 20 Hz–20 kHz via a logarithmic slider, exact entry or ±10/±100 Hz steps
  • Live oscilloscope is drawn from an AnalyserNode reading the real signal
  • AudioContext created lazily on first gesture and closed on unmount — no audio files, no CDN
How It Works

Waveforms, Sweep, Channels and Note Reference

Four waveforms are available, each with distinct harmonic content: a sine wave is a single pure frequency, a square wave adds odd harmonics for a hollow buzz, a triangle wave has odd harmonics that fall off faster for a softer tone, and a sawtooth wave contains every harmonic for the brightest, brassiest timbre. A frequency sweep (chirp) glides from a start frequency to an end frequency over a chosen duration using exponentialRampToValueAtTime for a logarithmic sweep (equal time per octave) or linearRampToValueAtTime for a linear sweep (equal time per hertz), with a live progress readout. The tone can be sent to the left, right or both channels for headphone and stereo checks, and the display continuously shows the nearest equal-tempered note and cents deviation against the A4 = 440 Hz standard. Presets cover A4 440 Hz, middle C, a 1 kHz reference, a 40 Hz subwoofer test, mains hum and the 17.4 kHz mosquito tone.

  • Sine, square, triangle and sawtooth — pure tone through to bright and buzzy
  • Sweep: exponential (log, per-octave) or linear (per-Hz) over a set time
  • Left / right / both channel routing via StereoPannerNode
  • Nearest note + cents shown live (A4 = 440 Hz)
  • Presets: 440 Hz A4, middle C, 1 kHz, 40 Hz sub, 50 Hz mains, 17.4 kHz mosquito
Limitations

Privacy and Honest Hearing-Safety Limits

Because every tone is synthesized in the browser, nothing is uploaded, recorded or stored, the microphone is never accessed, and the generator works offline once the page is cached; even the on-screen waveform is computed locally from the signal you are generating. Honestly, this is a signal generator for testing and reference, not a calibrated or medical/audiometric instrument — the actual loudness reaching your ears depends on your uncalibrated device, headphones and volume, so it should not be used to self-diagnose hearing loss; an audiologist and a real audiogram are the right tools for that. Safety matters: start the volume low and raise it slowly, because sustained, loud or very high-frequency tones can damage hearing and loud low-frequency tones can damage speakers and headphones, and since you may not consciously perceive ultrasonic-range tones even when they are loud, trust the volume number rather than your ears.

Tone Generator: in-browser (AnyTool) vs typical online tone generators
CapabilityAnyToolTypical online tone generators
Audio engineNative Web Audio, synthesized liveWeb Audio, but may load assets / CDN
Frequency entryLog slider + exact value + ±10/±100 HzOften slider or single field only
WaveformsSine, square, triangle, sawtoothSometimes sine only
SweepLog or linear chirp with progressOften none
ChannelsLeft / right / bothUsually both only
Click-free start/stopGain ramped (no pops)Often abrupt clicks
Note referenceNearest note + cents (A4 = 440)Rarely shown
PrivacyNo upload, no mic, offline-capableMay load remote assets / track

AnyTool synthesizes every tone locally with the native Web Audio API and uploads nothing.