Transparent Backgrounds
Export your animations with a full alpha channel using WebM or aPNG, and optimized indexed transparency with GIF89a. Perfect for overlays in video editing tools or web use.
Convert SVG animations to high-quality videos (MP4, WebM, MKV, MOV) or optimized animated images (aPNG, GIF) with perfect alpha-channel transparency and custom metadata directly in your browser, via CLI, or through Model Context Protocol (MCP) AI agent integrations.
Initializing Studio...
Transform animated SVGs (CSS & SMIL) into MP4, WebM, MKV, MOV, aPNG, or GIF with full alpha-channel transparency — directly in your browser or via CLI/MCP.
Export your animations with a full alpha channel using WebM or aPNG, and optimized indexed transparency with GIF89a. Perfect for overlays in video editing tools or web use.
The Web Studio runs entirely in your browser—your SVG files never leave your computer.
Our engine scrubs both the Web Animations API and native SVG SMIL, ensuring every frame is captured exactly as rendered.
Native Model Context Protocol (MCP) server and Agent Skill (SKILL.md) support indexed on the official MCP Registry (mcp.json) and hosted live on HuggingFace Spaces.
Beyond video, generate lightweight Animated PNGs (aPNG) and GIFs with deterministic 8x8 Bayer ordered dithering to eliminate temporal fluttering on animated gradients, with full control over background transparency.
Instant export to Base64 Data URL—copy your video and embed it directly into your HTML, CSS, or JS code without manual downloads. Perfect for rapid prototyping and developers.
Support for custom titles and comments across video (MP4, WebM, MKV, MOV) and animated image (aPNG, GIF) formats.
Whether you need an accessible Web Studio for quick conversions or a powerful CLI tool for batch automation and CI/CD pipelines, this project has you covered.
Open the Web Studio.
Drag and drop your .svg file, or test the engine instantly with 1-click built-in samples.
Adjust resolution, duration, and FPS.
Select your format, toggle Transparent Background if needed, and ensure High-Fidelity Capture is enabled for best results.
Click Export.
| Format | Codec / Standard | Alpha Transparency | Best Used For | Details |
|---|---|---|---|---|
| MP4 | H.264 / AAC | No (Opaque) | Universal web playback, social media, video editors (Premiere, Final Cut) | Standard baseline container compatible with all browsers and video players. |
| WebM | VP9 / AV1 | Yes (Full Alpha Channel) | Web overlays, OBS streaming, transparent video backgrounds | Modern open web format with native 8-bit alpha transparency and high compression efficiency. |
| aPNG | RGBA PNG | Yes (Full Alpha Channel) | Documentation, GitHub READMEs, high-color animations, crisp text rendering | Animated PNG with 24-bit color depth and full 8-bit alpha blending without color quantization. |
| GIF | GIF89a | Yes (Indexed 1-bit) | Slack, Discord, legacy documentation, universal messaging apps | Standard animated GIF with palette quantization and optional transparent color index. |
# Node.js (auto-detected duration)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir
# Node.js (explicit duration & GIF output)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir -d 5 --format gif --transparent
# Node.js (custom resolution dimensions e.g. vertical 1080x1920)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir --resolution 1080x1920
# Node.js (custom bitrate, CRF, and quality)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir --bitrate 5M --crf 18 --quality 80
# Node.js (animated PNG output)
npx -y -p @gehdoc/svg-to-video svg-to-video input.svg 60 ./out-dir -d 5 --format apng
# Docker (zero local dependencies; requires --shm-size=2gb for Chromium rendering; add :Z to -v for SELinux / Fedora)
docker run --rm --shm-size=2gb -e PUPPETEER_ARGS="--no-sandbox" -v $(pwd):/data:Z gehdoc/svg-to-video /data/input.svg 60 /data/out-dir -d 5 --format gif{
"mcpServers": {
"svg-to-video": {
"command": "npx",
"args": ["-y", "-p", "@gehdoc/svg-to-video", "svg-to-video-mcp"]
}
}
}No. The Web Studio runs 100% client-side inside your browser using WebCodecs and the Web Animations API. Your SVG source code and exported video frames never leave your local device.
The engine mounts your SVG in an isolated offscreen canvas, programmatically pauses all CSS and SMIL animations, and advances the animation timeline frame by frame (e.g. at 24, 30, or 60 FPS) to guarantee 100% frame accuracy without skipped frames.
Yes! You can use the official CLI tool (npx -y @gehdoc/svg-to-video), the Docker image (gehdoc/svg-to-video), or connect to the Model Context Protocol (MCP) server for Claude Desktop, Cursor, and Antigravity.
Select WebM, aPNG, or GIF as your output format, check the "Transparent Background" toggle, and ensure your SVG root element does not declare an opaque background rect.
No. The CLI automatically uses system FFmpeg if present on your $PATH, or falls back to a bundled static FFmpeg binary out of the box. You can also specify a custom binary path using --ffmpeg-path <path> or the FFMPEG_PATH environment variable.
Most browser-based GIF tools either snap colors coarsely (causing color banding) or use error diffusion dithering (which produces moving, noisy speckles across frames). The Web Studio features an in-browser encoder with custom 8x8 Bayer ordered dithering and 16-bit rgb565 palette quantization. This disperses narrow color transitions smoothly without temporal fluttering, delivering FFmpeg-grade GIF quality directly inside your browser.