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 · no credits 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

Converts simple SVG shapes and paths into Android VectorDrawable path data. Transforms are flattened; solid fills, strokes and even-odd fill rules are preserved. Gradients, masks, text and effects must be flattened or exported as PNG instead. This tool does not trace raster images.

For safety, scripts, event handlers, animation, embedded HTML (foreignObject), link targets (the linked artwork itself stays), references to other files, images that are not embedded PNG, JPEG or WebP, and CSS rules that load other files or fonts are removed. If your file contained any of these, the result lists exactly what was 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?

This export targets API 24 and later, including even-odd fill rules. It does not generate backwards-compatibility wrappers.

Why was my SVG refused?

Unsupported features are reported rather than silently dropped. Outline text and strokes, simplify the artwork, or use a PNG image asset.

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

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

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