WMW

SVG Converter Viewer

Free

Convert SVG to PNG, JPEG, WEBP, BMP, ICO, or AVIF, or wrap PNG/JPEG/WEBP/BMP/GIF/ICO into a valid SVG, auto-detecting direction, directly in your browser.

Runs entirely in your browser. Your file is never uploaded anywhere.

Click to choose a file, or drag and drop one here

SVG in, or PNG / JPEG / WEBP / BMP / GIF / ICO in, either direction is detected automatically

Recent Activity

Visible to everyone. Last 20 uses across all visitors, newest first.

No activity yet. Be the first.

Comments (0)

Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.

Guest comments are reviewed before publishing. Sign in to post instantly.

No comments yet. Be the first to share your thoughts!

What this tool does

Converts between SVG and raster images directly in your browser, in either direction, automatically detecting which one you uploaded. Upload an SVG to export it as PNG, JPEG, WEBP, BMP, ICO, or AVIF (where supported) at any zoom level; upload a PNG, JPEG, WEBP, BMP, GIF, or ICO to get back a valid .svg file with your original image embedded inside it.

How It Works

For SVG to raster, the tool first determines the SVG's intrinsic pixel size (explicit width/height attributes, then viewBox, then the 300x150 spec default), multiplies that by your chosen Zoom percentage, and draws the file at exactly that size onto an HTML canvas. PNG, JPEG, WEBP, and AVIF are then exported directly through the canvas API. BMP is built by a small dedicated encoder that writes the canvas's raw pixel data into a standard uncompressed 24-bit BMP file, bottom-up, in the blue-green-red byte order the format requires. ICO is built by taking the canvas's PNG export and wrapping it in the modern ICO container format (a short header followed by the PNG data), which every current version of Windows and every major browser accepts. For raster to SVG, the tool reads your uploaded file's exact bytes as a data URI and places that data URI, completely unmodified, inside a new SVG file's <image> element, with the SVG's width, height, and viewBox set to match the original image's pixel dimensions exactly.

Problems it solves

Frequently asked questions

Why would I convert an SVG to PNG, JPEG, WEBP, BMP, ICO, or AVIF?

SVG is a vector format that many tools, platforms, and older software simply don't accept, such as most social media image uploaders, some CMS image fields, or email clients. Converting to a raster format like PNG gives you a normal pixel-based image file that works everywhere, at the exact size you choose. ICO in particular is the format Windows and browsers expect for favicons and desktop icons.

How does the Zoom setting affect the output?

Because SVG is a vector format, it has no fixed pixel size of its own, only an "intrinsic" size read from the file (its width/height attributes, or its viewBox as a fallback). Zoom scales that intrinsic size up or down: 100% keeps the original size, 200% doubles both dimensions, and 50% halves them, all without any loss of sharpness before the final raster export.

Which output format should I choose?

PNG is the safest default: it supports transparency, so any transparent areas in your SVG stay transparent, and it is lossless. JPEG has no transparency support and fills transparent areas with white, but produces smaller files for photo-like content. WEBP and AVIF (where your browser supports encoding it) both support transparency with often smaller file sizes than PNG or JPEG. BMP is an uncompressed, universally readable legacy format with large file sizes. ICO packages the image as a Windows/browser icon file, most commonly used for favicons.

What does converting an image to SVG actually do?

It does not trace or vectorize your image into paths and shapes, that is a much more involved process handled by a dedicated vector-tracing tool. Instead, it wraps your original PNG, JPEG, WEBP, BMP, GIF, or ICO file, byte-for-byte unchanged, inside a small SVG container with a matching width, height, and viewBox. The result is a valid .svg file that displays correctly anywhere an SVG is expected, while still containing your exact original image data inside it.

What if my SVG has no width, height, or viewBox at all?

The tool falls back to 300 by 150 pixels, which is the standard default size defined by the SVG specification itself for exactly this situation, so the conversion never fails, it just uses that default before your Zoom percentage is applied.

Is my file uploaded anywhere?

No. Every conversion, in either direction, happens entirely in your browser using the HTML canvas API and the File API. Nothing is sent to a server.

Related Tools