SVG to PDF Converter

SVG Optimizer →

Turn one or many SVG files into a PDF that stays vector: sharp at any zoom, text still selectable. Everything runs in your browser, so the files never leave your device.

Loading converter…

How to convert SVG to PDF

  1. Drop one or more SVG files into the box above, choose them from disk, or paste SVG code anywhere on the page.
  2. Pick the page. Same size as the SVG makes a page exactly as large as the drawing plus your margin. A4, Letter, A3, A5 and Legal center the drawing on a standard sheet.
  3. Set the margin and choose whether the drawing fits the page or keeps its real size.
  4. With several files, put them in order with the arrows. Each file is one page.
  5. Download the PDF, or open it in a new tab to check it first.

Nothing is uploaded. The converter code is downloaded when you add your first file, and from then on the work happens in the tab.

Why keep the SVG as vectors in a PDF

The shortcut most people take is to save the SVG as a PNG and place the PNG in a document. That fixes the resolution at the moment of export. A logo that looks fine on screen is soft on a poster, and a diagram with thin lines turns to mush when a reader zooms in. A PDF can hold the same lines, curves and gradients that the SVG holds, so the printer or the viewer draws them at whatever resolution it needs.

There is a size argument too. We converted four drawings to PDF with this tool and, for comparison, rendered the same A4 page as a 300 dpi PNG, which is what you would get by embedding a bitmap that is sharp enough to print.

Drawing (A4 page)SVGPDF from this toolBrowser print to PDF300 dpi PNG of the page
Starburst logo, gradient fills, 96 hairlines8,946 B5,455 B17,006 B725,621 B
Bar chart with 14 text labels2,796 B3,915 B46,581 B126,951 B
Wide banner, curves, no width or height379 B3,628 B11,128 B59,744 B
Page drawn in millimetres342 B3,509 B11,841 B46,979 B

The PDF is 13 to 133 times smaller than the print-quality bitmap. Two honest caveats. A tiny SVG does not get smaller by becoming a PDF: even a 132-byte square produced a 3,254-byte file, because a PDF carries a fixed structure of about 3 KB (the file header, the page tree and the list of standard fonts). And a bitmap is the right answer for a photograph, which an SVG cannot hold in the first place; see SVG vs PNG for where each format fits.

Merging several SVGs into one PDF

Each SVG is placed on its own page and the pages are written into a single file. The fixed overhead is paid once, so merging is cheaper than converting separately: four of the drawings above came to 7,950 bytes together, against 16,507 bytes as four separate files. Pages can have different sizes. When the page size is automatic, a portrait drawing gets a portrait sheet and a wide one gets a landscape sheet, which is why the merged test file mixes both.

Use this for a set of diagrams to send as one document, an icon sheet for a client, or the exported frames of a design. If the icons are heavy, run them through the SVG optimizer first: smaller path data means a smaller PDF as well.

Page size, margins and scale

Page sizes are the standard ones in points (1/72 inch): A4 is 595.28 × 841.89, US Letter 612 × 792, A3 841.89 × 1190.55, A5 419.53 × 595.28 and US Legal 612 × 1008. Margins are in millimetres.

The scale option decides what happens inside the margins. Fit to the page scales the drawing up or down until it touches the margin on its longer side, which suits logos and diagrams. Actual size places it at 96 dpi, the same rule browsers use for CSS pixels, and only shrinks it when it would not fit. Sizes written in physical units are respected: the page in millimetres in the table above declares 210mm by 297mm and fills an A4 sheet at actual size without any scaling.

If your SVG has no width and height, the size comes from its viewBox. That is also what makes the drawing scale rather than get cropped; the viewBox explainer has the details.

What does not convert: measured limits

The conversion is done by svg2pdf.js and jsPDF, both MIT licensed. In our tests they handled paths, shapes, solid and gradient fills, strokes, viewBox scaling, millimetre units and text in the standard fonts. For things they cannot draw they do not fail: they skip it, and the PDF still downloads. We tested the gaps so that you do not have to find them in a printout.

In the SVGThis toolBrowser print to PDF
Gradient fillDrawn correctlyDrawn correctly
Gradient used as a strokeStroke is dropped, nothing drawnDrawn correctly
feGaussianBlur filterSkipped: hard-edged circleBlur drawn
Font that is not installed (Inter)Drawn in HelveticaDrawn in a fallback font
Chinese textGarbled charactersCorrect, and selectable
Latin text in ArialSelectable textSelectable text

The price of those extras is size. The test file with a blur and Chinese text was 3,560 bytes from this tool and 89,349 bytes from browser print, because print embeds the font and draws the blur. The gradient-stroke test was 3,877 and 10,771 bytes. When the tool detects a gradient stroke, a filter or unsupported text in a file, it prints a warning under that file before you download.

The practical rule: artwork exported from a design tool as icons, charts and logos with solid or gradient fills converts cleanly and stays small. Artwork that leans on filters, non-Latin text or web fonts is better outlined first or printed from the browser.

What the page loads, and when

The converter is two libraries, jsPDF and svg2pdf.js, about 520 KB of JavaScript before compression (roughly 160 KB over the wire). They are not part of the page you land on: the first-load JavaScript of this page is about 590 KB, close to the other tools on this site, and the PDF code is fetched the first time you add a file. If you only came to read, you never download it. Nothing in the conversion calls a server.

Need a different output? The SVG to ICO converter packs an SVG into a multi-size favicon in the same way, and the SVG editor is the place to fix a file whose colors or sizes are wrong before you export.

Common problems when converting SVG to PDF

  • The page is blank. The SVG may have no viewBox and a size in percent, or its paths contain NaN values that every renderer ignores. See the NaN path check.
  • Everything is black. Icon sets use currentColor, which has no color outside a web page. Set a real color in the file first.
  • The drawing is tiny on A4. Switch the scaling to “Fit to the page”, or use a page size that matches the SVG.
  • The text looks different. Only standard fonts are used. Convert the text to outlines to keep the exact typeface.
  • Part of the artwork is missing. Check the warning under the file: filters and gradient strokes are skipped.

Frequently asked questions

Is the PDF really vector, or is the SVG turned into an image first?

Vector. The converter translates paths, fills, gradients and text into PDF drawing instructions. We opened the output files and found no embedded image objects in any of them, and zooming in stays sharp at any level. The only bitmaps would come from <image> elements that are already inside your SVG.

Is my SVG uploaded to a server?

No. The SVG is parsed, converted and packed into the PDF inside your browser tab, using two JavaScript libraries that download the first time you add a file. The page itself still loads its analytics and ad scripts, but your file is never sent anywhere.

Can I put several SVG files into one PDF?

Yes. Add as many files as you like; each becomes one page, in the order shown in the list. Use the arrows to reorder and the cross to remove. In our test, four SVGs merged into one 7,950-byte PDF, against 16,507 bytes for the four separate PDFs, because the fixed overhead of about 3 KB is paid once.

Will the text in my SVG be selectable and searchable in the PDF?

Yes, when it uses Latin letters. Text stays text: we extracted every label from a chart with 14 text elements. It is drawn in the standard PDF fonts (Helvetica, Times, Courier), not in the font you designed with, because the converter does not embed font files. For other scripts such as Chinese, Japanese or Cyrillic, or for a typeface that must look exactly right, convert the text to outlines before exporting.

Why is part of my drawing missing in the PDF?

Three things are dropped without any error: SVG filters (blur, drop shadow), gradients or patterns used as a stroke, and anything that relies on external fonts or stylesheets. The tool warns about the first two when it sees them in your file. Replace a filter with a pre-blurred shape or an exported bitmap, and give strokes a solid color, or use your browser's print to PDF dialog for that file.

Which page size should I choose?

Choose “Same size as the SVG” when the PDF is an asset that will be placed into another document, so there is no blank border to crop. Choose A4 or US Letter when it will be printed or sent as a document. The SVG is centered on the page and scaled to fit inside the margins, or kept at its real size with the “Actual size” option.

What does “actual size” mean for an SVG?

It follows the CSS convention of 96 pixels per inch, so a 400 px wide SVG becomes 300 pt (about 106 mm) wide on the page. SVGs written in physical units are honored: a drawing declared as 210mm by 297mm fills an A4 sheet exactly. An SVG with no size at all takes its size from the viewBox.

How is this different from printing the SVG to PDF in the browser?

Printing embeds real fonts and supports filters, so it handles complicated artwork and non-Latin text. The cost is size: in our tests the same four drawings came out 3 to 12 times larger. This tool gives small files and an exact page layout, with the limits described above. Use whichever fits the file.