Skip to content

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! πŸ“±βœ¨

License

Notifications You must be signed in to change notification settings

urdaknows/svg-to-xml-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SVG to XML Converter for Android πŸ“±βœ¨

Project Status License

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! πŸ“±βœ¨

πŸš€ Features

  • 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.

πŸ“– How It Works

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.

πŸ”— Try It Now

Test the converter directly in your browser:
πŸ‘‰ Live Demo

πŸ–ΌοΈ 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.

πŸ› οΈ Getting Started

Prerequisites

  • A modern web browser (Chrome, Firefox, Safari, etc.).

Installation

  1. Clone the repository:
    git clone https://github.com/urdaknows/svg-to-xml-converter.git

About

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! πŸ“±βœ¨

Topics

Resources

License

Stars

Watchers

Forks