Colors & SVG
SVG Recolor Tool
Drop an SVG file or paste vector code to remap fill and stroke colors, adjust hue and lightness, convert icons to currentColor, and export SVG or PNG.
XSS Sanitized (0 stripped)
Sanitized Vector Preview
Output Token Mode
0°
0%
Detected Vector Swatches (4)
#1E293B
1 match
#2563EB
1 match
#F8FAFC
1 match
#10B981
1 match
How to Use This Tool
- Drop an SVG file, paste SVG XML code, or load one of the built-in sample icons.
- Click any detected vector swatch to remap it, adjust global Hue/Lightness sliders, or switch to currentColor / CSS Var mode.
- Copy the cleaned SVG markup or download your recolored vector / high-DPI PNG.
Key Features
- XSS-hardened browser sanitizer removes <script>, <iframe>, <foreignObject>, on* attributes, and javascript: URIs before previewing
- Extracts all fill, stroke, stop-color, and style color tokens ranked by frequency
- Supports individual swatch remapping, global OKLCH Hue/Lightness shift, currentColor, and CSS variable (--svg-color-N) extraction
- Preview over Light, Dark, or Checkerboard backdrops and download clean SVG or 1×/2×/4× raster PNG
Frequently Asked Questions
Neither. SVG strings are stripped of active elements and event attributes in local memory, and live previews render safely through isolated Blob image URLs.
More Color Tools
View all tools →CSS Filter Generator
Generate CSS filter chains to tint black PNG or SVG icons to any target color.
Open tool
Color Picker & Eyedropper
Pick exact colors in HEX, RGB, HSL, or OKLCH and sample pixels directly from your screen.
Open tool
Image Color Extractor
Drop or paste any photo to extract its dominant palette and sample exact pixels.
Open tool