SVG to Android VectorDrawable

Turn a vector icon into an Android drawable. Keep the paths, set its size, and download XML for your app.

Export mobile resources

SVG · up to 8 MB · free for your own files and unlocked results

Sign in to use one of your unlocked results. Start with a lowercase letter. Use letters, numbers and underscores. 16–512 dp · aspect ratio preserved · Android API 24+

What this tool does

Turns a simple SVG icon into an Android VectorDrawable XML file. Solid fills, strokes and shapes carry over. Gradients, masks, text and effects can't: outline or simplify them first, or use a PNG instead. This tool doesn't trace images, so start from an SVG.

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.

Inputs, outputs and limits

Input

SVG with solid fills and strokes

Output

Android VectorDrawable XML (API 24+)

Limits

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

How it works

1

Choose artwork

Upload an SVG or select a result you already unlocked.

2

Name the resource

Use lowercase letters, digits and underscores. Set the longest side in dp.

3

Add it to Android

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

Troubleshooting

Which Android versions are supported?

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

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.

Access and pricing

This tool does not use credits when applied to a file you upload or a result you have already unlocked. Files are kept 24 hours for guests and 30 days in an account. See pricing.

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 iconAndroid and iOS resource packagesArtwork to iOS assetsXcode imagesets with vector or PNG assetsOnline SVG EditorRecolor, reshape and export in the browserSVG to PNG ConverterRender an SVG to PNG, up to 4,096 px