SVG to PDF converter
Choose an SVG and download a PDF of one page, exactly the size of the drawing, in which every shape is still a vector path.
Free, no account. The file is read by code running in your browser. It is not uploaded, and nothing about it is stored.
How to convert an SVG to PDF
- Pick an SVG from your device, drop it on the box, or paste the code.
- Check the page size. It starts at the size the SVG gives itself; type a width to print larger or smaller.
- Compare the preview with your drawing and read the notes on anything left out.
- Download the PDF.
What stays vector
- Every shape: paths, rectangles (rounded ones too), circles, ellipses, lines, polylines and polygons, in their final place after all transforms, groups, style sheets and
<use>copies. - Curves as curves. Bézier curves go into the PDF as the same Bézier curves, so they stay smooth at any zoom. Arcs and circles become Bézier curves of 45° or less each, within 0.0005% of the true radius.
- Fills: the colour, the opacity and the fill rule, so holes cut with even-odd stay holes.
- Strokes: colour, opacity, width, round or square ends, round or bevelled corners, the mitre limit, and dashes with their offset. A stroke under a lopsided transform is stretched the same way it is on screen.
- Clip paths made of shapes: the clipped artwork is cut to the same outline in the PDF, including clip paths on groups and clip paths inside one another.
- Order. Shapes are painted in the order of the SVG, and a stroke set to paint under its fill stays under it.
What is left out or changed
A PDF made by hand can be exact only about what it holds, so here is the full list. The notes beside the result count each of these in your file.
- Text is left out, because the font is on your device and not in the SVG. Convert text to paths (outlines) in your drawing program and it comes through as shapes.
- Gradients become one flat colour: the average of the gradient’s stops. Pattern fills are dropped, leaving the shape unfilled.
- Embedded and linked pictures are left out. This tool carries vector shapes only.
- Masks are not applied, so a masked shape appears whole. The same goes for the rare clip path made of text, or of several shapes that have holes in them. Filters such as blurs and drop shadows, blend modes, and arrowhead markers are ignored.
- Group opacity is multiplied into each shape in the group. That looks the same unless shapes inside the group overlap, where the overlap comes out darker than on screen.
The page
The PDF has one page and the page is the drawing: no margins, no paper size imposed. PDF measures in points, 72 to the inch, so a 210 × 297 mm SVG gives a page of 595.28 × 841.89 points, which is A4. A size in pixels is taken at 96 to the inch, making each pixel 0.75 of a point. Anything drawn outside the SVG’s own edges is still in the file but falls off the page, as it does on screen.
Colours are written as RGB, the same numbers the SVG holds. Nothing is converted to CMYK and there are no bleed or crop marks, so for a commercial printer who asks for those, open the PDF in a layout program and add them there.
Inside the file
The file is PDF 1.4: a catalogue, one page, one stream of drawing commands (compressed with Deflate, the standard way) and a cross-reference table. It holds no fonts, no pictures and no scripts. A logo of a few dozen paths makes a PDF of a kilobyte or two, usually smaller than the SVG it came from.
Questions
Is the PDF really vector, or a picture inside a PDF?
Vector. The page is made of path commands with their fill and stroke settings, and there is no image in the file at all. Zoom in as far as your reader allows and the edges stay sharp.
Why is my text missing from the PDF?
Text needs its font, and the font is not inside the SVG. In Inkscape use Path, Object to Path; in Illustrator, Type, Create Outlines. Save the SVG again and the letters come through as shapes.
How do I get an A4 or Letter page?
The page always matches the drawing, so set the size in the SVG: 210 × 297 mm for A4, 8.5 × 11 inches for Letter. Typing a width here scales the whole drawing; it does not add paper around it.
Why does a gradient look like one flat colour?
Gradients are not carried over. Each one is replaced by the average colour of its stops, and a note beside the result says how many were changed.