Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. All processing happens entirely in your browser - your files never leave your device. No uploads, no accounts, complete privacy.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Audio Processing
  3. Tone Generator
Add to favorites

Tone Generator

Generate pure audio tones with sine, square, sawtooth, and triangle waveforms. Create multiple oscillators, binaural beats, and export as WAV.

Generate pure tones at any frequency from 20 Hz to 20,000 Hz. Select a waveform shape, sine, square, triangle, or sawtooth, set the frequency, and play. Useful for testing speakers, calibrating equipment, ear training, and tinnitus frequency matching.

Audio processed on your deviceMore audio processingJump to full guide

Initializing in your browser…

You might also like

Audio Trimmer & Cutter

Trim, cut, and slice audio files with interactive waveform visualization. Drag handles to select portions, use keyboard shortcuts, zoom and pan, preview selection before export. Supports MP3, WAV, OGG, AAC.

Audio Spectrum Analyzer

Real-time audio frequency spectrum analyzer and visualizer. View frequency bars, waveform, and spectral display. Supports microphone input and file playback with multiple color themes.

Audio Merger & Joiner

Combine multiple audio files into one track. Drag and drop to reorder, merge MP3s, WAVs, and other formats. Create seamless audio compilations online.

Tone Generator: a worked example

You need a clean 440 Hz reference tone to tune an instrument or test speakers.

Input

sine · 440 Hz · −12 dBFS · 5 s
Tone Generator produces

Output

A pure A4 sine tone, playable and downloadable

A mathematically generated sine has no harmonics, so it is an honest tuning and test reference unlike a recorded note. Waveform, frequency, and level are exact, which matters for calibration and hearing tests.

About the Tone Generator

Generate pure tones at any frequency from 20 Hz to 20,000 Hz. Select a waveform shape, sine, square, triangle, or sawtooth, set the frequency, and play. Useful for testing speakers, calibrating equipment, ear training, and tinnitus frequency matching.

How to use

  1. 1Set the frequency using the slider or type a value
  2. 2Choose a waveform type
  3. 3Click Play to hear the tone

Key features

  • Frequency range from 20 Hz to 20 kHz
  • Sine, square, triangle, and sawtooth waveforms
  • Volume control

Tips & best practices

  • Switching a waveform while playing applies instantly because the code mutates the live OscillatorNode's type rather than rebuilding it, so you can A/B sine vs square at the same pitch on the fly.
  • To hear how timbre is built from harmonics, add several oscillators and set them to a fundamental and its multiples (e.g. 261.63, 329.63, 392 for a C-major triad), since each is a separate oscillator summed at the master gain.
  • Binaural beats need headphones: the left/right StereoPanner split means without separate channels per ear the two tones just sum into one pitch and no beat is perceived.

Examples

  • Concert-pitch tuning reference

    Tap the A4 (Concert Pitch) preset to lock oscillator one to 440 Hz on a pure sine wave, then play it as a steady reference to tune an instrument by ear against the oscilloscope display.

  • Theta meditation binaural session

    Apply the Meditation (Theta 6Hz) preset: it turns on binaural mode with a 150 Hz carrier in one ear and 156 Hz in the other (panned hard left/right), producing a perceived 6 Hz beat. Export WAV then yields a 5-second stereo loop.

When to use it

  • Speaker testing

    Sweep through frequencies to check if your speakers reproduce the full audible range.

  • Ear training

    Learn to identify specific frequencies by ear, a useful skill for audio engineers and musicians.

How it works

The Tone Generator runs on the browser's Web Audio API, driving up to four independent OscillatorNodes (the Add button disables once you reach four) through a shared master gain into an AnalyserNode with fftSize 2048. That analyser feeds the live oscilloscope at the top, which uses getByteTimeDomainData to draw the actual waveform shape in real time, so you can watch a sine's smooth curve, a square's hard edges, a sawtooth's ramp, or a triangle's slopes as you switch types. Each oscillator has its own frequency (20 Hz to 20 kHz via slider or numeric entry), waveform, volume, and enable toggle, and edits apply live to a playing tone without restarting it. Because each is a separate oscillator summed at the master gain, you can layer them into chords or stack a fundamental with its harmonics to hear a timbre build up.

Eight one-tap frequency presets cover the common reference points: A4 concert pitch at 440 Hz, Middle C at 261.63 Hz, E4 at 329.63 Hz and G4 at 392 Hz for tuning, a 40 Hz sub for a bass drop, plus a 1 kHz test tone, an 8 kHz hearing-test tone, and a 15 kHz high-frequency tone for speaker and hearing checks. The binaural-beats mode adds a second oscillator pitched exactly binauralBeatFreq hertz above oscillator one, then hard-pans the original to the left channel and the offset copy to the right using two StereoPanner nodes at -1 and +1 (this is why headphones are required, since the perceived beat only forms when each ear gets its own channel). A beat-frequency slider spans 1 to 40 Hz, and four presets set both the carrier and the beat: Focus Beta 14 Hz over a 200 Hz base, Relaxation Alpha 10 Hz over 200 Hz, Meditation Theta 6 Hz over 150 Hz, and Deep Sleep Delta 2 Hz over a 100 Hz base.

Export WAV writes a fixed 5-second clip, but note it does not record the live oscillators: it synthesizes the samples mathematically at the AudioContext's sample rate using its own per-waveform formulas (Math.sin for sine, a sign test for square, a fractional ramp for sawtooth, and an absolute-value fold for triangle), sums every enabled oscillator scaled by its volume and the master volume, clamps to [-1, 1], and encodes 16-bit PCM into a RIFF/WAVE container by hand. The file is mono by default and becomes a true two-channel stereo file only when binaural mode is on (where channel 1 carries the beat-frequency offset), and it downloads named after the first oscillator's frequency, e.g. tone-440hz.wav.

Frequently asked questions

Can I export the tone as an audio file?

Yes. The Export WAV button saves a 5 second, 16-bit PCM WAV file of the current tone. With binaural mode on it exports a stereo file, otherwise mono. The file is generated in your browser.

Can I play more than one frequency at once?

Yes. You can add up to 4 oscillators, each with its own frequency, waveform, and volume, so you can layer tones into chords or test harmonics.

What are the binaural beat presets and do I need headphones?

Binaural mode plays a slightly different frequency in each ear to create a perceived beat, with a beat frequency adjustable from 1 to 40 Hz and presets for Focus (14 Hz), Relaxation (10 Hz), Meditation (6 Hz), and Deep Sleep (2 Hz). Headphones are required, since the effect depends on each ear hearing a separate channel.

Private by design

Audio is decoded and processed locally with the Web Audio API. Your files are never uploaded to a server.