Convert SVG to PDF
Converting SVG to PDF renders a scalable vector graphic onto a PDF page so it can be shared, printed, and viewed anywhere. This tool rasterizes the SVG in your browser at a resolution you choose — the drawing becomes a high-resolution image in the PDF, and the vector data itself is not preserved. Nothing is uploaded; the whole conversion runs on your device.
How it works
SVG and PDF are both vector formats, but they describe drawings in incompatible languages. SVG is XML — <path>, <rect>, CSS styling, possibly scripts and filters — while PDF uses a compact operator stream (moveto, curveto, fill) with a different coordinate and color model. A faithful vector-to-vector translation needs a full SVG layout engine on the PDF side, which browsers do not expose to JavaScript.
What browsers do expose is their own SVG renderer. This tool loads your SVG as an image, draws it onto an HTML canvas at your chosen output scale, and reads back the rendered bitmap. That bitmap is then embedded losslessly in a PDF page built with pdf-lib. In other words: the browser's engine — the same one that draws SVG on web pages, with full support for gradients, clipping, and filters — does the interpretation, and the PDF stores its output as pixels.
Be clear about the trade-off: the vector data is not preserved. The PDF cannot be zoomed indefinitely without pixelation, and the shapes are no longer individually editable. What you control is the rasterization scale — rendering a 200 × 200 SVG at 6× produces a 1200 × 1200 image, which prints sharply at typical sizes. For genuinely resolution-independent output (logos going to a print shop, CAD-style drawings), use a desktop translator such as Inkscape or rsvg-convert, which emit real PDF vector operators.
One more browser-specific detail: when an SVG is rendered as an image, external references — webfonts, linked bitmaps, external stylesheets — are blocked for security. Self-contained SVGs convert perfectly; ones that depend on outside resources may render with fallback fonts or missing pieces. Converting text to outlines before export sidesteps the font issue entirely.
Worked example: a 14 KB logo onto an A4 page
A company logo saved as a 14 KB SVG with a 480 × 160 viewBox, converted for use as a signed-letter attachment. Rendered at 1×, the embedded image is 480 × 160 pixels — fine on screen, visibly soft when printed at 16 cm wide (only about 76 DPI). Re-converted at 6×, the image becomes 2880 × 960 pixels, the PDF grows from 31 KB to 210 KB, and the printed logo is crisp at roughly 460 DPI.
The size lesson generalizes: rasterized output grows with the square of the scale factor, so double the scale means about four times the image data. Pick the smallest scale that meets your print size at ~300 DPI rather than defaulting to the maximum. For this logo, 4× (1920 × 640, ~300 DPI at 16 cm) would have been the economical choice at 120 KB.
SVG to PDF — frequently asked questions
Does SVG to PDF conversion keep the graphic as a vector?
Not in this tool. The SVG is rasterized through the browser's canvas, so the PDF contains a fixed-resolution image of the drawing rather than editable vector paths. Render at a high scale and the result still prints cleanly, but it will not zoom infinitely.
How do I keep an SVG truly vector in a PDF?
Use a desktop tool that translates SVG paths into PDF drawing operators, such as Inkscape (File, then Save As, then PDF) or the rsvg-convert command line utility. Those preserve curves, fills, and text as scalable objects.
What resolution should I rasterize an SVG at for print?
Aim for about 300 pixels per inch at the final printed size. For an A4 page that means roughly 2480 by 3508 pixels, so a logo destined for a quarter-page slot needs around 1200 pixels on its long edge.
Why does my converted SVG look different from the original?
The rendering uses your browser's SVG engine, which ignores external resources for security: linked fonts or images referenced by URL may not load, and text can fall back to a default font. Converting fonts to outlines in the SVG before exporting avoids the substitution.
Is my SVG file uploaded when I convert it?
No. The SVG is parsed, rendered, and packaged into a PDF by JavaScript on your own device. The file never leaves your browser.