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.

611 Comments so far

  • John

    Hi Tomasz, ‘
    I am a hearing Loss patient who has just been fitted with a Cochlear Implant.
    I do have a pro audio background.

    THANK YOU for this tool, I was able to stream your sine sweep literally into my brain ( no speakers or Headphones ) and I am using it to teach my brain to hear again. and also to aid my hearing professionals to program ( Map ) my Cochlear.

    it is an intense learning curve. My methods may be a little unconventional to some, but its hugely beneficial to me.

    JR

  • David Moulang

    Interesting, you know that ‘kazoo’ sound that comes from a damaged speaker cone at a specific frequency? I used your app to isolate the speaker and the frequency.

  • Richard Kerhin

    It would be great if you could add up and down arrows for the loudness percentage like you did for the frequency. I’m trying to match the sound with the Solfeggio frequencies for healing and it’s very difficult to change the volume 1% at a time. Thanks!

  • Thomoose

    I’m am not a doctor or do I recommend what I say here.

    I was suffering from extremely bad ringing, 10khz using this page, and I thought I was going to die. Ringing in the ear has been with me since childhood till now, 41. Never knew it was not normal. Use to think it was the TV downstairs when I was a kid.

    Anyways it was so bad 2 weeks ago and I wanted to talk to a doctor. I know this is weird but I talked to my psychiatrist which I won’t list here. I suffer from mental problems such as bipolar depression and schizophrenic tendencies. I started having problems walking so he thought it was problem with the ear. He decided it was possible for my air path behind the ear drum was clogged.

    Psychiatrist put me on sudafed, claratin and I was already taking flonase for allergies. Extreme amounts of liquid started coming into my ear and going down my throat. Almost my entire sinus cavity above the middle of my nose was clogged. It made me sick to swallow the stuff coming down my throat so I had to spit it out. After a week my sinuses really cleared and the ringing started to go down and oscillate.

    Over two weeks in it’s getting close to gone. It’s still a sharp tone but the volume is way down. TVs, people talking and my own voice is very loud. I would use white noise sometimes to hide the ringing but noise almost hurts now. Sometimes noise will cause some ringing currently.

    I’ll try to answer any questions about my experience. I do not recommend doing any of this. You should talk to your doctor.

    • Jean Lauzat

      So you think your tinnitus went down due to the Sudafed and Claritan? the first is a nasal decongestant and the other an antihistamine. You’re lucky your tinnitus is going away since you had it most of your life!

  • Jean

    Hi, I found your website researching 40 hz tones. I plan to get a good subwoofer and place it in the corner as suggested so I can feel the sound. I don’t have Alzheimers but a general brain cleanup was mentioned plus a lifting of mood. I read where binaural beats work too so a 40 hz pure tone may not be necessary, I don’t know. A 40 hz light flicker is found on YouTube as well but I wonder about the refresh rate of computers and TV interfering with the flicker rate. Would this happen?

    I then read you mentioned using the tone generator to match your tinnitus which I have. I determined mine was around 7000 and 7900 hz. What was interesting was that the more I tried to match it the more the tinnitus faded so I couldn’t hear it as well. I’ve heard of tinnitus matching to give the brain the frequencies it’s missing when you lose some hearing and how that can help with tinnitus. I’d like to make a sweep of those frequencies and download it to play back. Not sure I can do this with your sound generator.

  • Hamish Luebbers

    Hi Tomasz, thanks for such a useful and well made tool!

    As a recent sufferer of tinnitus, I’ve just made the interesting discovery that if I play a tone in your generator of the exact volume and frequency of the tinnitus, I can hear a vibrato harmony, exactly like when tuning a guitar. This has helped me identify the exact frequency (290.01HZ) and volume of the tinnitus (3%), and when I play the precise tone it even partially cancels out the tinnitus due to the ‘virtual’ sound wave being cancelled by the real sound wave! Fascinating and helpful. Thank you again.

  • Patrick

    This is AWESOME!!!!!!! Thank you so much!!!!!!! I use this to quickly enter a state of flow for my rigorous university studies and it is truly a blessing. Thank you for this gem!!!

  • Tomasz G

    Thanks for this tool! Very handy, has understated UX and has minimal footprint.
    You’ve got my support!

  • Rosha

    Hello I can hear everything even yhe 1 Hz and 20153 Hz. Why is it like that? Aren’t we supposed to hear from 20 Hz to 20000 Hz???

  • Eoghan Brophy

    Hi Tomas,

    Many thanks for this wonderful app. A specific tinnitus treatment app could be developed from what you’ve already done. Essentially what I’d like to see is 4 channels with a left-right balance so I can generate the harmonic I’m hearing. It’s worth noting that earbuds can often play frequencies outside the range of laptop speakers. At the moment I’m getting by just fine with 2 tabs so this isn’t essential though isolating my frequencies takes a little bit longer.

    All the best,
    Eoghan

  • Raual

    Curious what is the frequency range of typical laptop speakers?

  • Josh

    So at the age of 19 it seems that my hearing range is between 17hz on both ears to about 19,500hz on my right ear and between 19,550 and 19,600 hz on my left ear. I did this with high quality studio headphones and following the website guidelines of setting a comfortable volume level at 1000 hz.

  • Saurabh

    I am 40 yrs old but even I could hear every frequency even the top one beyond 20k. Ether the system is faulty or I’am not old enough even at 40 lol.

  • DavidL

    Age 61 here. Was surprised to find my bass end starts to roll off at 60 Hz. I had assumed it was more like 40 Hz. I swear I could hear something even at the 20 kHz frequency, and at lower frequencies too. I can reliably hear 12 kHz without trying. Haven’t yet been able to figure tinnitus frequency, but it’s way up there. Have had tinnitus since very young. A few years ago, I fried the tweeters on my stereo speakers trying to hear the ring tone.

Leave a Reply to Thomoose