A mobile-friendly tool to convert SVG files into Android VectorDrawable XML, built with pure HTML, CSS, and JavaScript. No dependencies, just upload and download! π±β¨
- SVG to VectorDrawable Conversion: Converts SVG files to Android-compatible XML (VectorDrawable) without external dependencies.
- Mobile-Optimized: Fully responsive design, optimized for touch interactions on mobile devices.
- File Name Preservation: The downloaded XML file inherits the name of the uploaded SVG (e.g.,
icon.svg
βicon.xml
). - Preview Support: See a live preview of the SVG and the generated XML before downloading.
- Lightweight & Offline: Works entirely in the browser, no server or external libraries needed.
- Error Handling: Clear error messages for invalid SVGs or unsupported elements.
This tool parses SVG files using the browser's DOMParser
, extracts supported elements (<path>
, <rect>
, <circle>
), and converts them into an Android VectorDrawable XML format. It supports basic attributes like fill
, stroke
, and stroke-width
, ensuring the generated XML is ready to use in Android projects.
Test the converter directly in your browser:
π Live Demo
Insert a screenshot or GIF of the tool in action here. For example, show the interface with an SVG preview and the generated XML on a mobile device.
- A modern web browser (Chrome, Firefox, Safari, etc.).
- Clone the repository:
git clone https://github.com/urdaknows/svg-to-xml-converter.git