Sound Effect Synthesizer screenshot

Sound Effect Synthesizer

Synthesize a short 8 kHz mono 16-bit WAV clip from a waveform, frequency and duration, printed as a data URL.

Privacy First
0 Runs
Updated 2026-11-06
No upload

Samples you can save

The page generates 8 kHz mono 16-bit PCM at 60% amplitude. Phase advances by frequency divided by the sample rate per sample; square is the sign of the sine, saw is 2 × (phase − floor(phase + ½)), sine is the raw wave, and noise is one draw per sample from the seed. The samples are written into a 44-byte RIFF/WAVE header and base64-encoded, so the printed data URL is a file you can save and play.

The frequency must be 20 to 4000 Hz, which is the band an 8 kHz sample rate can carry without aliasing, and the duration must be 50 to 2000 ms. There is no envelope, no filter, no stereo, no mixing and no MP3 export; a square wave at a high frequency will alias, and the page says so rather than hiding it.

The seed is only used by the noise waveform, where it makes the sample stream repeatable; the three periodic waveforms are fully determined by frequency and duration. Nothing is uploaded and no audio is recorded.

Synthesizes 8 kHz mono 16-bit PCM for a square, saw, sine or noise wave and prints it as a base64 WAV data URL.

It has no envelope, filter or stereo and does not resample: 20–4000 Hz is the band an 8 kHz rate carries cleanly.

How to use it

Choose a waveform, set a frequency and a duration, and add a seed for noise, then press Run. The first two lines give the byte count and the peak sample; the third is the data URL.

The peak line is a sanity check: a square wave always reaches 19660 of 32767, so a much lower peak means the duration or waveform was not what you expected.

What to Expect

Best for

  • a placeholder coin or hit sound
  • a UI beep
  • a noise sweep to edit elsewhere

What this tool keeps

  • a playable WAV data URL
  • the byte count and peak sample
  • a repeatable noise stream

Frequently asked questions

How do I use the sound effect synthesizer?

Pick a waveform, set the frequency and duration and a seed, then press Run. The output prints the byte count, the peak sample and a data:audio/wav base64 URL you can save.

Is anything uploaded or stored when I press Run?

No. The draw happens in this tab with JavaScript: no request leaves the page, nothing is stored and a reload clears the form.

What are the limits and bounds?

The frequency must be 20 to 4000 Hz because an 8 kHz rate aliases above that, the duration 50 to 2000 ms, and the seed a whole number from 0 to 4294967295; each is refused rather than clamped.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.