SVG to Android VectorDrawable

VectorDrawable XML from an SVG icon.

SVG · up to 8 MB · free

Sign in to use one of your unlocked results. Lowercase letters, digits, _ 16–512 dp

What this tool does

Turns a simple SVG icon into an Android VectorDrawable XML file. Solid fills, gradients, strokes and shapes carry over. Patterns, masks, text and effects can't, and neither can a round gradient stretched into an oval: the result says which, so you can simplify it first or use a PNG instead. This tool doesn't trace images, so start from an SVG.

Limits

Files up to 8 MB. Vector output supports up to 2,000 paths and 500,000 path characters. Processing limit: 30 s.

Troubleshooting

Which Android versions are supported?

Android 7.0 (API 24) and later. Older versions are not supported.

Where do I put the XML?

Save the XML in res/drawable and reference @drawable/your_name. Verify it in Android Studio and on your target devices.

Why was my SVG refused?

Anything Android can't draw is reported, never silently dropped. Outline text and strokes, simplify the artwork, or use a PNG instead.

Parts of my SVG are missing

For safety, scripts, animation, embedded web content, links and anything that loads another file are removed; your artwork and embedded PNG, JPEG or WebP images stay. The result lists anything removed.

Access and pricing

Free — no credits.Files are kept 24 hours for guests and 30 days in an account.

Mobile resource guides

How to convert SVG to Android XMLAndroid and iOS app icons from one imageSVG or PNG for Xcode image assets?

Related tools

Make your app iconArtwork to iOS assetsOnline SVG EditorSVG to PNG Converter