Free tool

Tone Generator

Generate pure tones from 20 Hz to 20,000 Hz in the waveform you choose. 100% in your browser, nothing to install.

440 Hz

The human ear perceives between 20 Hz (low) and 20,000 Hz (high). A440 (note A) = 440 Hz.

3s
50%

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

The tone generator creates pure sounds at the frequency and waveform you choose. Playback uses your browser’s Web Audio API and the WAV file is calculated with JavaScript inside the page itself, so there is no file to upload or download to generate it. Useful for testing speakers or headphones, calibrating audio equipment, doing hearing tests, tuning instruments by reference, or generating a test tone for video or development. Choose between sine wave (the purest tone), square, sawtooth or triangle, adjust the frequency in Hertz, the duration and the volume, and play it instantly or download it as a WAV file.

Features

  • ✓Sine, square, sawtooth and triangle wave
  • ✓Frequency from 20 Hz to 20,000 Hz
  • ✓Duration from 0.5 to 60 seconds
  • ✓Volume from 0 to 100%
  • ✓Live playback
  • ✓Export to 16-bit WAV, 44,100 Hz, mono
  • ✓100% in browser, no uploads

How to generate a tone?

  1. 1

    Choose the waveform

    Sine, square, sawtooth or triangle, each with a different timbre.

  2. 2

    Adjust the frequency

    Move the slider or type the exact value in Hertz (Hz).

  3. 3

    Set duration and volume

    Choose how long it plays and at what volume.

  4. 4

    Play or download

    Listen to it instantly or generate a WAV file to download.

Default values and limits

The starting values are 440 Hz (the note A4), sine wave, 3 seconds and volume at 50%. At 50% the wave peaks at 0.5, about −6 dBFS; at 100% it reaches 0 dBFS, the digital maximum, and at 0% no sound comes out. The page volume multiplies the amplitude, so the final level also depends on your device’s volume.

Frequency moves with the slider in 1 Hz steps or is typed into the number field. A value outside the range is set to the nearest limit, between 20 Hz and 20,000 Hz, when you leave the field or press Enter, and an empty or non-numeric field goes back to 440 Hz. Duration goes from 0.5 to 60 seconds in 0.5 s steps.

Play runs the tone for the chosen duration and stops by itself; while it sounds, the button changes to “Stop”. When you stop it or it reaches the end, the volume fades out over 10 ms to avoid a click.

Generating and downloading the WAV

Generate WAV computes the samples with JavaScript at 44,100 per second, 16-bit and mono, with 10 ms fade-in and fade-out. A 3-second tone takes about 258 KB and a 60-second one about 5 MB, uncompressed. The file name shows the waveform and frequency, for example tone_sine_440hz.wav.

The name and content are fixed when you generate. If you change the waveform or frequency afterwards, the WAV already created keeps the values it was generated with, so press Generate WAV again to get a new tone.

What changes between waveforms

The sine wave has a single component, the fundamental, and sounds clean. Square and sawtooth add harmonics, whole-number multiples of the frequency, and sound harsher; square has only odd harmonics and sawtooth has all of them. Triangle also has odd harmonics, but they fall off much faster, so it sounds softer than the other two.

To compare two waveforms, use the same frequency and volume for both, so the difference you hear is in the timbre and not in the level. Long tones are harder to compare by ear, so the default 3 seconds is usually enough. The WAV has the same content whether you generate it before or after playing the tone.

Frequently asked questions

Is anything uploaded to a server?

No. Playback and the WAV file are generated inside your browser. The tone does not send any data to a server.

What's the difference between the waveforms?

A sine wave has a single frequency, the fundamental. Square and sawtooth add harmonics, whole-number multiples of the frequency, and sound harsher. Triangle also adds odd harmonics, but weaker ones, so it sounds softer.

What frequency range can I generate?

From 20 Hz to 20,000 Hz, the nominal range of human hearing. A value outside that range is set to the nearest limit when you leave the field or press Enter.

What format does it download in?

Uncompressed WAV, 16-bit PCM, 44,100 Hz, mono. A 3-second tone takes about 258 KB.

Related tools

Embed Tone Generator on your site

Add Tone Generator to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/tone-generator?locale=en"
  width="100%"
  height="700"
  frameborder="0"
  allow="clipboard-write"
  title="Tone Generator — miguelacm.es"
></iframe>
View embed in new tab →