What this hub does
This page holds both directions: draw an SVG into PNG, JPG, WebP, or a raster PDF, and trace a PNG, JPG, or WebP into SVG. The work stays in the browser. Files are not uploaded.
The dedicated pages are still there. Use SVG to PNG when you only need a PNG. Use SVG to PDF when you only need a PDF. That PDF embeds a raster image at the chosen pixel size. It is not a vector PDF. Use PNG to SVG to trace a transparent bitmap. Use JPG to SVG when JPEG noise is the problem. Edit paths in the SVG editor.
Which direction to pick
If you already have a vector and the other tool wants a bitmap, export the SVG. Size is a scale (1×, 2×, or 3×) or a custom width in pixels. Height follows the aspect ratio. The long edge stays at or below 4096 pixels, and a reduced file says so. PNG, WebP, and PDF can stay transparent. White or a custom color flattens them. JPG has no alpha channel, so it always flattens. The default is white. A transparent choice on JPG becomes white. PDF wraps the raster in one page, at one point per pixel. It does not keep the paths as vectors.
If you only have a bitmap and you want edges that stay sharp when enlarged, trace it to SVG. One image at a time. The long edge is scaled to 1024 pixels or less before tracing. Presets are logo, line art, and illustration. This version has no photo preset. The result is an approximation made of paths, not the original layers from a design file.
Stay on this page when you want to try both directions, or when you need to switch the export between JPG and WebP. If the file is already a bitmap and you only want another bitmap, with no paths, use the image converter.
Raster and vector
PNG, JPG, and WebP are raster formats: each pixel stores a color, and enlargement looks soft. JPG is lossy, so edges pick up blocks. See ITU-T T.81. PNG can carry an alpha channel, as defined in the W3C PNG specification.
SVG records shapes instead of a pixel grid. MDN's SVG guide is the reference for icons and interface graphics. When that SVG is loaded in an <img>, scripts do not run. See MDN's img element.
Tracing uses VTracer. Lettering becomes paths. It is no longer text you can restyle.
How it works
The two halves of this page use different methods.
SVG to a bitmap (PNG, JPG, WebP, or PDF): the file is sanitized (scripts, javascript: URLs, external images, and foreignObject removed), rendered to a canvas from a blob URL, then scaled. Choose 1×, 2×, 3×, or a custom width. The long edge stays at or below 4096 pixels. A PDF embeds that raster. It does not keep the paths.
Bitmap to SVG: colors are quantized, regions of one color are traced, and curves are fitted with VTracer. If VTracer does not start, imagetracerjs is the fallback. The source long edge is scaled to 1024 pixels or less first.
Privacy
Files never leave your browser. The canvas export and the tracer both run on this device. Previews use blob URLs. There is no upload.
Tips and limits
- SVG input: about 10 files, 8 MB each. The export long edge stays at or below 4096 pixels.
- Trace input: one image, 8 MB. The long edge is scaled to 1024 pixels before tracing.
- JPG always flattens. PNG, WebP, and PDF can stay transparent.