跳到主要内容

SVG Converter

Export SVG as PNG, JPG, WebP, or a raster PDF, or trace a PNG or JPG into SVG. Files stay in your browser.

For a transparent PNG only, use SVG to PNG. For a raster PDF, use SVG to PDF. Trace a transparent image with PNG to SVG, or a JPEG with JPG to SVG. Edit paths in the SVG editor.

Use cases

SVG for Cricut and SVG for laser cutting use this tracer, with defaults aimed at those jobs.

Export SVG to PNG, JPG, WebP, or PDF

Up to about 10 files, with a ZIP download. A PDF embeds a raster image, not vectors. JPG is flattened onto a background. For a transparent PNG only, use the dedicated page above.

No image? Try a sample

Output format

PNG, WebP, and PDF can stay transparent. JPG always flattens, white by default. Quality applies to JPG and WebP. A PDF embeds a raster image, not vector paths.

Output size
Export scale

Use a scale or a width in pixels. Height keeps the aspect ratio. The long edge stays at or below 4096 pixels. Scale is not print DPI.

The long edge stays at or below 4096 pixels. A larger request is reduced in proportion, and the file card says so.

External images, scripts, and foreignObject are removed. Fonts may fall back, and animation or filters may not survive. Scale is not print DPI.

Background

Trace PNG or JPG to SVG

One image at a time. The default preset is a logo. For a noisy JPEG, use the JPG to SVG page, where denoising starts stronger.

No image? Try a sample

Preset

Color

Color count: 12

Detail

Drops the color that touches the outer edge. A transparent PNG stays transparent.

One image at a time, up to 8 MB. The long edge is scaled to 1024 pixels or less before tracing, and transparency is kept. This version has no photo preset. Text becomes paths.

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.

References