Skip to content

ibrahimokdadov/svger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svger

Convert SVG files to PNG, JPEG, WebP, or SVG with full control over colors, transforms, and export options — no install, no build step, single HTML file.

svger


Features

Color

  • Fill & Stroke — replace all fill and stroke colors in one click
  • Background — set a solid background or keep it transparent
  • Opacity — control the overall SVG opacity
  • Color Map — detect every hex color in the SVG and remap them individually
  • Presets — built-in Dark / Light / Gold presets, save your own to localStorage

Transform

  • Rotation — quick presets (0 / 90 / 180 / 270°) or a custom slider with nudge buttons
  • Flip — horizontal and vertical, independently or combined
  • Scale — zoom in or out (10% – 300%) without changing output dimensions
  • Padding — add whitespace around the SVG by expanding the viewBox
  • Transform Origin — 3×3 grid to set the pivot point for rotation and scale

Export

  • Formats — PNG, JPEG (with quality slider), WebP, SVG
  • Dimensions — set any width and height up to 4096 × 4096 px
  • Batch Export — export multiple sizes (16, 32, 64, 128, 256, 512 or custom) in one click
  • Favicon Set — downloads favicon-16.png, favicon-32.png, favicon-48.png in one click
  • Copy to Clipboard — copies the rendered PNG directly to your clipboard

Usage

Open index.html in any modern browser. No server required.

  1. Paste your SVG source into the left panel
  2. Adjust colors, transforms, and export settings in the right panel
  3. Click Convert to preview
  4. Click Download or use the Export tab for batch/favicon exports

Shortcut: Ctrl+Enter (or Cmd+Enter) to convert.


Tech

Vanilla HTML, CSS, and JavaScript. Canvas API for rasterization. No dependencies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors