A privacy-first SVG converter for exporting SVG files to PNG, JPG, and WebP directly in the browser.
SVGConvert is built with Next.js App Router, React, TypeScript, and Tailwind CSS. It is designed for fast client-side SVG rasterization, batch conversion, live previews, and SEO-friendly localized pages.
- Convert SVG to PNG, JPG, or WebP
- Upload SVG files or paste SVG source code
- Batch conversion with ZIP export
- Live preview before downloading
- Single-file save and delete actions
- Client-side processing with no server uploads
- Transparent background support for PNG and WebP
- Custom width, height, scale, padding, background, and quality options
- Localized pages with canonical URLs, hreflang, sitemap, robots, and JSON-LD metadata
- Open Graph and Twitter social preview image support
Many SVG conversion tools require uploading files to a remote server. SVGConvert keeps the conversion workflow in the browser so files stay on the user's device. This makes it useful for quick exports, UI assets, icons, diagrams, logos, and other SVG graphics that need raster output.
- Next.js App Router
- React
- TypeScript
- Tailwind CSS
- JSZip for batch downloads
- Vercel Analytics
Install dependencies:
npm installStart the development server:
npm run devOpen http://localhost:3000 in your browser.
npm run devStarts the local development server.
npm run buildCreates a production build.
npm run startRuns the production server after a build.
npm run lintRuns ESLint.
Create a .env.local file for local development when needed.
NEXT_PUBLIC_SITE_URL=https://svgconvert.app
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXXControls canonical URLs, sitemap entries, robots output, JSON-LD URLs, and social metadata.
Recommended production value:
NEXT_PUBLIC_SITE_URL=https://svgconvert.appIf this variable is not set, the app falls back to the default site URL configured in lib/site.ts.
Optional GA4 measurement ID. Analytics are disabled when this variable is not provided.
public/og-image.pngis the 1200 x 630 social sharing image used by Open Graph and Twitter metadata.public/apple-touch-icon.pngis the 180 x 180 PNG icon used for Apple touch icon metadata.- Legacy social image paths are redirected to
/og-image.pnginnext.config.ts.
app/ Next.js App Router pages, layouts, sitemap, robots, and metadata routes
components/ Shared React components and the SVG converter UI
lib/ Site configuration, localization data, analytics, and utilities
public/ Static assets such as icons and social preview images
The app is ready to deploy on Vercel.
- Import the repository into Vercel.
- Set
NEXT_PUBLIC_SITE_URLto your production domain. - Optionally set
NEXT_PUBLIC_GA_MEASUREMENT_ID. - Deploy.
After deployment, verify:
/sitemap.xml/robots.txt/og-image.png- canonical and hreflang tags in page source
- Open Graph preview in social sharing validators
Contributions are welcome. Good areas for improvement include:
- Additional localization coverage
- Better SVG parsing edge cases
- UI accessibility improvements
- Export workflow enhancements
- Tests for conversion and metadata behavior
Before opening a pull request, run:
npm run lint
npm run buildThis project is open source under the MIT License.