Sine wave preview
Live SVG waveform — 5.0 cycles across 800px.
Wave controls
Adjust amplitude, wavelength, phase, and stroke.
Amplitude
Wavelength (length)
Phase
Stroke width

Online sine wave generator

Generate a sine wave online with amplitude, wavelength, phase, and stroke controls. Preview the SVG waveform, copy markup, or export sine wave PNG files.

What is a sine wave generator?

A sine wave generator draws a smooth sinusoidal curve you can use as decorative line art, science diagrams, or UI accents. This online tool builds a clean SVG path from amplitude, wavelength (length), phase, and stroke width—then lets you copy the markup or download SVG and PNG. It is a visual waveform creator for graphics, not an audio oscillator; for live Hz from a microphone, try /frequency-detector.

Sine wave generator features

Create and export sinusoidal SVG waves in the browser.

  1. Live SVG preview: See the sin waveform update as you move amplitude, wavelength, phase, or stroke.
  2. Amplitude and wavelength: Control wave height and horizontal length—how many cycles fit across the canvas.
  3. Phase shift: Rotate the curve along the x-axis from 0 to 360 degrees without redrawing by hand.
  4. Stroke styling: Set line width and stroke color for light or dark backgrounds.
  5. Copy SVG markup: One-click copy for pasting into Figma, Illustrator, or inline HTML.
  6. SVG and PNG export: Download vector SVG or raster sine wave PNG for slides, docs, and social assets.

How to generate a sine wave

Create a sinusoidal curve in three steps.

  1. Set wave shape: Adjust amplitude for height and wavelength for how stretched or compressed the cycle is.
  2. Fine-tune phase and stroke: Shift phase to align peaks, then pick stroke width and color for your layout.
  3. Copy or export: Copy SVG code, export SVG for crisp scaling, or export PNG when you need a flat image file.

Tips for sine wave graphics

Get cleaner SVG wave output.

  1. Match your section width: Wavelength near one-third of your layout width often gives a balanced decorative rhythm.
  2. Use phase for alignment: Set phase to 0 or 180 when you need a peak or trough to sit on a grid line.
  3. Prefer SVG in UI: SVG stays sharp at any zoom; export PNG only when the destination requires raster.
  4. Pair with wavy dividers: For filled section separators, browse /oooscillate or /sssquiggly in Line & Wave Generators.
  5. Dark mode strokes: Light stroke colors on dark pages—try #fafafa or your brand accent hex.

Great for

Common uses for generated sine waves.

  1. Science and math slides: Illustrate a sinusoidal curve without redrawing in vector apps.
  2. Hero backgrounds: Subtle svg wave lines behind headlines or product shots.
  3. UI decoration: Organic motion cues, dividers, and loading motifs.
  4. Design handoff: Copy SVG into Figma or code without tracing a screenshot.
  5. Social and blog graphics: Export PNG sine wave images for posts that need a raster file.

Why use this sine wave creator

Browser-based sinusoidal generator benefits.

  1. No install: Generate sine wave online—controls and preview in one page.
  2. Vector-first: True SVG path output, not a flattened screenshot by default.
  3. Instant feedback: Every slider updates the preview immediately.
  4. Free export: Unlimited SVG copy and downloads.
  5. Honest scope: Visual waveform graphics—not 3D models or live audio synthesis.

Technical details

How the sinusoidal generator works.

  1. Curve math: y = centerY − amplitude × sin(2π × x / wavelength + phase).
  2. Canvas size: Default 800×200 viewBox; path sampled for smooth curves.
  3. Controls: Amplitude, wavelength (length), phase (degrees), stroke width, stroke color.
  4. Outputs: SVG markup string, .svg download, .png raster export.
  5. Processing: Client-side only—nothing uploaded to a server.

Frequently Asked Questions

Have questions? We have answers.

More tools from Line & Wave Generators.