Description
SVG to Compose converts SVG files and Android XML Drawables into Jetpack Compose ImageVector code, so you do not have to hand-write ImageVector builder code. It is a Kotlin Multiplatform tool with three parts: a command-line tool, a Gradle plugin for build integration, and an online playground where you paste code or upload a file and see the converted output. The CLI converts a single file or a whole directory. Options cover optimizing and minifying the SVG, the Kotlin package name, a theme class, a receiver type such as Icons.Filled, adding icons to Material Icons, skipping preview composables, making the output internal and producing Kotlin Multiplatform compatible code. The parser handles Android Vector Drawable XML with path data, groups, gradients and clip paths. The core library targets JVM, JS, WASM, macOS, Linux and Windows. The site lists version 2.2.1 and describes itself as a work in progress that welcomes feedback.…
Highlights
- Converts SVG and Android XML Drawables to Compose code
- Command-line tool for single files and directories
- Gradle plugin for build integration
- Online playground to try conversions
- Kotlin Multiplatform compatible output
Ratings & Reviews
No ratings yet
Be the first to rate SVG to Compose.
People also visit
Vectorizer.kiwi
Convert your images (jpeg, jpg or png) into scalable and clear vector art
SVG to Compose FAQ
What does it convert?
SVG files and Android Vector Drawable XML files into Kotlin ImageVector code for Jetpack Compose.
How do I convert a file?
Install the CLI and run s2c with an output file, a package name, a theme and the input file. For build automation, use the Gradle plugin instead. Both use the same conversion engine.
Can I use it in Kotlin Multiplatform?
Yes. The tool is built with Kotlin Multiplatform, its core library targets JVM, JS, WASM, macOS, Linux and Windows, and an option makes the output KMP compatible.
Can I try it without installing?
Yes. The online playground lets you paste SVG or XML code, or upload a file, and convert it in the browser.
What are the best SVG to Compose alternatives?
Popular alternatives to SVG to Compose include Image to SVG Converter, Vectorizer.kiwi and SVGator. See all SVG to Compose alternatives








