Josh Comeau records 50+ button sounds so your UI clicks never feel robotic
Button Sounds – collection of professionally-recorded button clicks and presses

Developer Josh Comeau built Button Sounds, a library of over 50 high-quality button click effects, each with up to 16 individually recorded samples that are randomly selected on every press and release to avoid the monotony of one-shot SFX. An NPM package adds just ~3kB gzipped, preloads audio from JSDelivr, and offers pitch variation, lo-fi bitcrushing, and React hooks. A playground lets you audition every sound.
In real life, button presses don’t sound identical every time.
- talkingtab
The discussion about the value of sound in cars is especially interesting, but there is a further point behind it. That In Real Life We humans are adapted to use sound, not because we find it pleasant but because it tells us something about our environment. If you are old like I am, you know the real sound that a turn signal makes. It was caused as a electric relay repeatedly opened and closed. Now that sound is just an artifact (like roll up the window). But it is incredibly disturbing to hear the click stop when some other sound needs to play in my car while I am making a turn.
My conjecture is that we drastically underestimate the importance of using "sensory complete" interfaces. So yeah. A button should click.
- hunter2_
This is really cool. I have a suggestion, though: the samples within a button seem to have several modification types including a pitch shifter. For example, "DOWN4" under the "Multi-sampled sounds" heading sounds nearly a semitone lower than the other DOWN variants. I suggest eliminating all pitch shifting (or at least confining your use to a few cents), leaving only timbre variation. Go nuts creating variation through EQ, distortion, formant shifting, reflections/delay/reverb, etc. but keep the pitch locked. Why? Because the pitch of everything in this world is based on its resonant frequency, which is based on the size of whatever can vibrate, and in the case of a button it's resonating based on the size of the button. Many aspects of the sound would change based on things like how quickly the button is pushed or how much dampening the finger pushing it imparts, but the fundamental pitch is not one of them.
When playing a violin, if you move up the fingerboard, the pitch of the string increases. But if instead of playing the string you knock on the body as if knocking on someone's front door, the main pitch of that knocking never changes. The sympathetic vibrations of the strings will have frequencies that vary as the finger position varies, and the brightness and RT60 of the reverberation through the wood will vary from knock to knock, but the fundamental frequency generally excited by the knock only changes if the violin's volumetric size changes, and it never will.
Mayb […]
- masenf
> Frustratingly, browsers can decide to block a website from playing any sound. iOS Safari seems particularly strict about this. So, if you’re not hearing a click sound when tapping the big red button, please check out this website on a desktop computer.
While I understand this behavior from Apple in a user-first perspective and do find audio on mobile web to be annoying in most cases, an easy way to allow audio to play on an iPhone that isn't "use a desktop" seems to be flipping the hardware switch to turn off silent mode.
I'm not proud to admit it took 5 minutes of poking and a Google/Gemini search to figure that out...
- steve_adams_86
This is one of those things that's so gratifying and fun that it makes me want to go build something. I love Josh's work.
- HelloUsername
Why record/export in stereo and not mono? Since it's in a sound treated environment with the XY mics very close to the source, seems like there's not really additional interesting information in the side channels.
None the less, very cool project, and satisfying to click around with! Could be a nice asset package to upload on https://itch.io/game-assets/tag-sound-effects
This might interest you as well: "Sound library cataloging 100 different keyboard switches: https://switchlab.app" (https://news.ycombinator.com/item?id=50164780)
- DimitriBouriez
I made Mechvibes sound packs (the app that plays keyboard sounds when you type) from these, since the audio is under MIT: the 4 keyboards (Hi75, Halo75 V2, UHK60, ASUS rubber dome) and the 4 mice. The press and release samples are spread across the keys so it's not the same click on every key.
https://mechvibes.com/u/dimitri-bouriez
Josh is credited and the MIT license is included in each pack.
- standeven
FYI, there is a hidden minigame on the page that unlocks a discount. Very fun little detail!
- lukeify
I've never seen a Josh Comeau project that isn't polished to 110%.