jsfxr (sfxr.me)
by Chris McCormick (chr15m)
Retro game sound effects generator (a JavaScript port of sfxr) with a web app and an npm library to generate, play and export 8-bit style sounds as WAV.
Sound effects Code libraryOpen source

1. Price: sfxr.me
Generator, library and WAV export are free; a Pro option adds mp3, ogg, sfxr and zip sound pack export.
sfxr.meNo quote yet: price is read from the official pages.
2. Commercial use: sfxr.me
“Unrestricted commercial use.”
The web app lists unrestricted commercial use and the code is public domain.
sfxr.me3. Credit the author: LICENSE on GitHub
LICENSE on GitHub4. Agent access: github.com/chr15m/jsfxr
An agent can install it by itself with npm install jsfxr. No key or account is needed.
github.com/chr15m/jsfxrLicense checked Nov 7, 2026 against 2 official pages. Tap a verdict to see its source. How we checked Report an error
jsfxr: retro 8-bit sound effects for games
jsfxr is a free sound maker for old-school 8-bit game sounds, like a coin pickup, a laser or a jump. You click a sound type in the web app at sfxr.me, tweak it and download a WAV file. Your game can also make the same sounds in code, and you may use them in paid games.
Where you can use it
Sound effects for a small game
Give coins, shots, explosions and jumps a classic arcade sound in a browser game, made by your game's own code.
The same sound every time
Pick the exact sound you like in the web app, copy its settings and play that one sound in your game, so it never changes.
WAV files for any engine
Make a sound in the web app and download it as a WAV file for Unity, Godot, a video or any tool that plays audio files.
Quick placeholder sounds Idea
Click Random or a sound type a few times and keep what fits, so an early game or app version has sound in minutes.
Feedback sounds in a learning app Idea
Play a soft blip for a right answer and a short buzz for a wrong one in a quiz or a children's app.
jsfxr (sfxr.me) popularity
Downloads from api.npmjs.org, stars from GitHub, checked Nov 19, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“Add jsfxr 1.4.1 to the game; for coin, jump, hit and explosion use fixed sounds I picked on sfxr.me (paste their short codes into one sfx file) and play them with sfxr.toAudio only after the first click or key press.”
Show codeStep 2 or Step 3
To make sounds in your game's code, install the package and import it.
npm i jsfxr
import { sfxr } from "jsfxr";
Generate a sound from a preset, or play a sound you saved from the web app.
const sound = sfxr.generate("pickupCoin");
sfxr.play(sound);
Mistakes to avoid
const sfxr = require("jsfxr") and then sfxr.generate(...)const sfxr = require("jsfxr").sfxr, or import { sfxr } from "jsfxr"The package exports an object whose sfxr field holds the API.
The script already declares sfxr, so a second declaration stops your script with an error (seen in our demo).
Presets are random each time, so every call sounds a little different.
Each build renders all samples again; the docs suggest caching the internal sound for efficiency.
License
Unlicense (public domain). Public domain under the Unlicense, so you can use, change and sell it, and the sounds you make with it, with no credit needed. The web app says commercial use is unrestricted.
“Unrestricted commercial use.” sfxr.me
“Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial” LICENSE on GitHub
AllowedWith conditionsNot allowedNot stated or not checked yet
Is jsfxr (sfxr.me) free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with jsfxr (sfxr.me). Paste them into your prompt or AGENTS.md.
- jsfxr (sfxr.me) (Sound effects). Retro game sound effects generator (a JavaScript port of sfxr) with a web app and an npm library to generate, play and export 8-bit style sounds as WAV. Price: free tier; commercial use OK; no credit needed.
Connect: npm jsfxr.
Get files: npm i jsfxr, then import {sfxr} from 'jsfxr'; sfxr.generate('pickupCoin') and sfxr.toWave(sound).dataURI, or export WAV from sfxr.me.
License: https://github.com/chr15m/jsfxr/blob/master/UNLICENSE (checked 2026-11-07; details: https://agentgid.com/assets/jsfxr/)
Agent installs a package or loads it from a CDN.
npm install jsfxrSound effects made with jsfxr (sfxr.me)Alternatives
jsfxr (sfxr.me) This page
Pick ZzFX when every byte counts, such as a size-limited game jam; it is under 1 KB compressed and MIT licensed.
Pick UI SFX for ready interface sounds as MP3 and Ogg files instead of making retro game sounds yourself.
Pick Freesound for real recorded sounds such as doors, rain or voices, checking each sound's own license.
Fourteen interaction sound cues for web interfaces, synthesized live with Web Audio and bound to elements through data attributes.
Open-source JavaScript library that synthesizes UI sound effects at runtime with the Web Audio API, with no audio files.
Questions
Can I use the sounds in a game I sell?
Yes. The web app lists unrestricted commercial use, and the code is released into the public domain.
Do I have to credit jsfxr?
No. The Unlicense dedicates the code to the public domain and asks for nothing in return.
Which sound types are there?
Coin pickup, laser, explosion, power-up, hit, jump, blip, synth, tone, click and random.
Can I get MP3 or Ogg files?
Only in the paid Pro version; the free app exports WAV.
Can I convert a sound to a file on my own computer?
Yes. The package includes a small sfxr-to-wav script for Node.js that turns a sound's short code into a WAV file.