This convenient bookmarklet automatically adjusts an SVG file loaded directly in the browser to be centered in a square viewBox, adds a configurable margin around the content, and initiates a quick download of the modified SVG.
- Open a standalone SVG file directly in your browser.
- Click the bookmarklet.
- When prompted, enter your desired margin in pixels.
- The modified SVG will be downloaded automatically, named after your original file.