Things I’ve learned, published for the public benefit
Hope This Helps header image

Online Tone Generator

Screenshot of the Online Tone Generator

I made an online tone generator based on the Firefox Audio API HTML5 Web Audio API. It’s basically a large logarithmic slider that allows real-time, smooth frequency changes.

Features

  • Fine-tune the frequency in 1 Hz, 0.01 Hz and 0.001 Hz increments
  • Pick a music note from a list (added Sep 2014, revamped May 2016)
  • Increase/decrease the frequency by one octave (added Aug 2015)
  • Can change the frequency smoothly as you move the slider
  • Keyboard shortcuts (added Aug 2015)
  • Generate a link to a specific tone, so you can share it (added May 2016)
  • Choose sine/square/sawtooth/triangle wave (added Aug 2017)
  • Input frequency as a number (added Aug 2017)
  • Works well on Chrome, Firefox & Safari – including mobile devices (iOS, Android) – requires a browser with support for the Web Audio API.

There are other tone generators on the Web, but they are not as cool (if I do say so myself) and/or they require Java or Flash.

What can you use a tone generator for? You can do a science experiment with resonance, tune a musical instrument, test your new audio system (how low does it go?), test the limits of your hearing (I can hear virtually nothing above 18,000 Hz, even at maximum volume), or figure out your tinnitus frequency to better target therapy.

Tags:

409 Comments so far

  • Jim Busse

    Thanks you. This is great work.

    I had to sell my HP sig gen when I moved to Singapore (220V here) and wish this generator had a sweep frequency capability. It would be nice to use the slider to set the min frequency, have another button to set the max frequency, and a start/stop button to allow free-running repetition.

    This one is helping me out, thanks!

  • Dale

    Hi. We’re trying out your tone generator for my wife, who has mild memory loss. Luckily, we were given a powered subwoofer made for computer output. Thanks so much! Wish us luck.

    What we’re missing is the nuances of its use. I’m hoping you can supply them or recommend an authoritative info source. We have the woofer in a corner, but other issues include:
    Which wave form is best? We’re using sine right now.
    Do headphones work better than an open-air speaker? Self-canceling headphones?
    Can the tone be effective in a space with other noise—such as voices, TV or clatter—or must it be the sole sound?
    The sound freaks out our cat a little, at least now, as we start. Will it hurt pets, physically, emotionally or mentally?

    Hope you can help. Keep up the good work!

  • Steen Oluf Karlsen

    Hello Signalski guy(s)- Steen ok from the Tech High School in Thy Danmark here!
    Two teenagers in my class have built an audio Frequency analyser – with an fft algorithm from Steve Smiths online resource book (hereby recommended!) We have tested and tested again the ability to – get the different ingredients of the “slush ice audio” back in their respective boxes as one of the boys put it! Sometimes I have been wondering how good the precision is for the frequency content in the signalsky generator? Especially when our equipment disagreed… Will the frequency of the generator be affected by the clock freq of the PC that generates the signal? How can you control the frequency across the many different processor types / platforms?

    • Tomasz P. Szynalski

      The processor doesn’t affect the frequency. In electronic audio, the analog audio signal is generated by a DAC which has its own clock. I would not expect significant deviations, but I have not tested it (not even sure how?). FFTs, on the other hand, are not very precise because of the need to separate the signal into frequency bands.

  • Aden Gusic

    Hey There!

    Thanks so much for creating this site! its is so good, i really like this tone generator.
    i like pranking my friends in class.

  • David Tartakoff

    There is no key combination to raise or lower frequency by 0.1Hz – can there be or is there one that you don’t list?

  • Heir2Power

    This is such an awesome tool. I use it for so many reasons – even to train my dog! Been using it for a while now, but still hoping it can be an app in Google Play store soon. Many times when I reopen my mobile browser I have to reset the settings and it’s not great when I have to get the tone going instantly when my dog is doing something naughty lol. And no it doesn’t hurt her ears… She just bugs out and wonders what the heck is that noise haha. Works great
    Great job

  • Mutayyab Tariq

    This works, you can use this to scare away pests like flies and mosquitoes in your house, I know the insects adapt and overcome this frequency thing but as long as they are not this is very useful. If you are wondering what the frequency to piss off mosquitoes is, then it is 20,000 hz leave it in your room when you are away and this will work!

  • RODRIGO GARCIA BALEIRO

    Thank you for your useful tool. If you may, I would ask you to implement the possibility of generating a phase shift between left and right channel outputs. In my case the main application would be for the simulation of noise cancelling in the balanced cables. For this we use 180 degrees of difference between each channel. For those who are willing to do it while the website doesn’t bring this option, you can use Audacity tone generator and invert the signal (menu Effects).

  • shaman

    Hi! Could you, please increase frequency range up to 50kHz. It will help to use application as a generator for testing of DACs, Hi-End amplifiers and headfhones

  • Riley

    Hi! I’m building a JavaScript program that needs to utilize the ability to generate specific tones, but I couldn’t find any sort of library I could use online. Could you please tell me what libraries or methods you used to generate these tones? I’m not looking for a tutorial, haha, so don’t worry. I would appreciate any response. Thank you so much!

Leave a Reply to Jim Busse