A modern web application that allows you to upload SVG files, customize them with various styling options, and download them as enhanced SVG files.
- SVG Upload: Drag and drop or click to upload SVG files
- Real-time Preview: See your changes instantly
- Customization Options:
- Resize (width and height)
- Border shapes (rectangle, rounded, circle)
- Border radius control
- Border styles (solid, dashed, dotted)
- Border thickness adjustment
- Padding control
- Color customization (border, background, SVG content color)
- Download: Export customized SVG with random ID filename
- Open
index.htmlin a modern web browser - Upload your SVG file by:
- Dragging and dropping it onto the upload zone
- Clicking the upload zone to browse for files
- Customize your SVG using the controls:
- Adjust size with the width/height sliders
- Choose a border shape (rectangle, rounded, or circle)
- Modify border radius for rounded corners
- Change border thickness and style
- Set padding around your SVG
- Pick your preferred colors for border, background, and SVG content
- Click "Download SVG" to save your customized file with a random ID name
A sample SVG file (sample.svg) is included for testing - it contains a star shape with a circle in the center.
- HTML5
- Tailwind CSS (via CDN)
- Vanilla JavaScript
- SVG manipulation with DOMParser and XMLSerializer
Works on all modern browsers that support:
- ES6 JavaScript
- SVG
- File API
- Drag and Drop API
- DOMParser and XMLSerializer
svg_customize/
├── index.html # Main HTML file with UI
├── app.js # JavaScript functionality
├── sample.svg # Sample SVG for testing
└── README.md # This file
- Rectangle: Standard rectangular border
- Rounded: Rectangular border with adjustable corner radius
- Circle: Circular clipping and border
- Solid: Continuous line
- Dashed: Dashed line pattern
- Dotted: Dotted line pattern
- Border Color: Changes the color of the border around your SVG
- Background Color: Changes the background color behind your SVG
- Text Color: Changes the fill and stroke colors of elements in your SVG
Free to use and modify as needed.