SVG to Vector Drawable

Convert SVG icons to Android Vector Drawable XML in your browser, with paste, batch, folder and ZIP import. A single Vector Drawable scales crisply across every screen density, so you ship one file instead of five PNG buckets — smaller APK, sharper icons. PNG and JPEG can be traced to vectors too.

When to use it

  1. Turn a designer's SVG icon set into Android-ready Vector Drawable XML.
  2. Replace multiple PNG density buckets with one scalable vector.
  3. Batch-convert a folder of SVGs while keeping the folder structure.

How to Use

  1. Paste your SVG code, or upload an SVG / image file in the Convert tab.
  2. Adjust options if needed: width/height, float precision, fill type, or the tracer preset for raster images.
  3. Review the live Vector Drawable XML and compare the Original and Vector Drawable previews on transparent, black, or white backgrounds.
  4. Copy the XML or download it as an .xml drawable resource.
  5. For many files, open the Batch tab and drop files, a folder, or a ZIP — then send them to Processing and download the results as a structured ZIP.

Features

  1. Convert SVG to Android Vector Drawable XML instantly in the browser
  2. Paste code, single file, multiple files, folder, or ZIP import
  3. Raster tracing (PNG/JPEG/GIF) with 16 tracer presets
  4. Live previews on transparent, black, and white backgrounds
  5. Batch conversion through the Processing manager with folder structure preserved
  6. 100% client-side — your files never leave your device

FAQs

What is an Android Vector Drawable?

A Vector Drawable is Android's native XML format for scalable vector graphics. It defines paths, fills, strokes, and gradients in a single <vector> element that renders crisply at any density without shipping multiple PNGs.

Does my SVG get uploaded anywhere?

No. The entire conversion runs in your browser using JavaScript — your files never leave your device, which makes it safe for proprietary icons and assets.

Can I convert PNG or JPEG images too?

Yes. Raster images (PNG, JPEG, GIF, BMP, WebP) are traced to vectors first using a selectable tracer preset, then converted to a Vector Drawable. Tracing works best on flat, logo-style images.

Can I convert many files at once?

Yes. Drop multiple files, a whole folder, or a ZIP archive in the Batch tab. Conversion runs in the background via the Processing manager and the original folder structure is preserved in the downloaded ZIP.

Why does a gradient or filter show a warning?

Vector Drawable supports linear and radial gradients but not every SVG feature. Filters, masks, patterns, text, and embedded images can't be represented, so the converter flags them instead of failing silently.

What does 'Fix fill type' do?

It forces an explicit android:fillType on every filled path. This keeps fills rendering consistently across Android API levels, especially for compound paths with holes.

Technical Details

This tool converts SVG markup into Android VectorDrawable XML entirely in the browser. Each SVG is first optimized with SVGO, then its elements are mapped to the VectorDrawable schema: <path> elements become <path android:pathData>, fill-rule maps to android:fillType (nonZero/evenOdd), linear and radial gradients are emitted as aapt:attr gradient blocks, groups and transforms collapse into <group> nodes or are baked into path data, and clip paths become <clip-path>. Raster inputs (PNG, JPEG, GIF) are vectorized first using an image tracer with selectable presets, then converted through the same pipeline. Batch jobs run through a background processing queue and are packaged as a structure-preserving ZIP. All processing happens locally — no file is ever uploaded.

From the Blog

  • Convert SVG to Android Vector Drawable Online — Free

Developer Tools

Developer Tools

  • API Tester
  • Image to Base64
  • HTML to JSX
  • SVG to JSX Converter
  • Data URI Generator & Decoder
  • SVG to CSS Converter
  • CSS Data URI Converter
  • Basic Auth Header Generator