Ways to Turn SVG into PDF: An Online Tool, a Design Program, or Browser Printing
7 min read
You have an SVG and you need it as a PDF. Three routes are open: an online conversion tool, a vector design program (Illustrator, Inkscape, Affinity Designer), or opening the file in a browser and doing "Print to PDF." All three work, but their results differ — especially on page size, fonts and print preparation.
What the three methods actually do
An online converter: parses the SVG, translates the drawing commands into their PDF equivalents, and takes the page size from the file's width/height attributes. It's a direct format translation.
A design program: imports the SVG into its own internal document model, you make adjustments (page size, color space, converting text to outlines, bleed), then export as PDF. Control is complete but there are more steps.
Browser printing: the browser renders the SVG as a web page, then the print engine prints that page to PDF. It's a two-layer conversion and the browser's page layout rules come into play.
Comparison table
| Criterion | Online tool | Design program | Browser print | |---|---|---|---| | Installation | None | Required | None | | Page size control | Comes from the SVG | Full | Weak | | Margin control | None (whatever the SVG has) | Full | The browser adds them | | Font embedding | Depends on access | Reliable | Usually good | | Converting text to outlines | Usually unavailable | One click | Unavailable | | CMYK conversion | None | Yes | None | | Bleed / crop marks | None | Yes | None | | Many files | One at a time | Batch possible | One at a time | | Time (single file) | Seconds | Minutes | Seconds | | File privacy | Preserved if processed in the browser | Complete | Complete |
Scenario 1: Sending a logo as a PDF
A client said "send the logo as a PDF too."
Winner: an online tool.
It's a simple job; opening a design program is unnecessary. Check the file's width/height attributes in millimeters (you can look in a text editor), then convert.
The one thing to watch: if the logo contains text (a tagline, an organization name) and that text hasn't been converted to outlines, a font problem can appear. Converting the text to outlines in the program that produced the logo and re-saving as SVG is the safest route.
Scenario 2: Sending a poster to a print shop
A print job with colors running to the edge.
Winner: a design program, no contest.
A print shop's file needs three things and only a design program provides them:
CMYK conversion. SVG is RGB. An online tool and browser printing produce an RGB PDF. The print shop converts it themselves and the result can differ from what you saw — especially with vivid greens, oranges and rich blacks.
Bleed. The design needs to extend 3 mm beyond the edge as a trimming tolerance. There's no such concept in SVG.
Crop marks. The marks showing the print shop where to cut.
In a design program you can also convert text to outlines in one click and eliminate the font risk entirely.
If you skip those steps and send a file produced with an online tool, the print shop will most likely send it back or fix it with their own judgment.
Scenario 3: Adding an SVG produced by a charting library to a report
D3.js, Chart.js or a similar library produced a chart and you're putting it into a PDF report.
Winner: an online tool — but fix the SVG first.
SVGs produced by web libraries have two typical problems:
The styles are external. The chart may be getting its styling from the page's CSS. When you take the SVG file on its own, the colors and line weights are lost. The fix: inline the styles (as style attributes) before saving the SVG.
Unit ambiguity. SVGs produced in a web context contain unitless pixel values like width="800". If the converter treats that as points, the page comes out about 282 mm wide — larger than you expected. The fix: rewrite the width and height values in mm.
After those two fixes, an online tool gives a clean result.
Scenario 4: Turning 30 SVG files into PDFs
A batch job for a portfolio or a catalog.
Winner: a design program (batch processing) or a command line tool.
Converting 30 files one at a time with an online tool is tedious. Inkscape can do batch conversion from the command line; Illustrator has actions and batch processing.
If you want to collect them all in a single PDF: turn the files into PDFs separately, then collect them into one document with a merging tool. You control the page order at the merging stage.
Scenario 5: I want a quick look
You're curious how the SVG looks and how it comes out as a PDF.
Winner: browser printing.
Drag the SVG file into a browser window, Ctrl+P, "Destination: Save as PDF." It takes seconds.
But don't take the result seriously. The browser applies its own page size (usually A4 or Letter), its own margins and its own scaling. Your graphic comes out in the middle of the page, surrounded by wide white space and probably scaled down.
You can improve that somewhat: set the margins to "none" in the print dialog, fix the scaling at 100%, turn on background graphics. You still won't get full control.
The hidden benefit of browser printing
In one situation browser printing genuinely wins: when your SVG depends on external CSS and JavaScript.
An SVG chart inside a web page may be getting its styling from the page's CSS and loading its data with JavaScript. When you take that file on its own and hand it to a converter, it comes out incomplete.
Browser printing, by contrast, takes the page's rendered state — with the CSS applied and the JavaScript run. The result is an exact match for what you see.
That's why the most practical way to get graphics generated live on the web into a PDF is usually browser printing; you give up page size control but you get the content in full.
Common preparation steps
Whichever method you choose, these three checks before converting make your job easier:
1. Write the width and height attributes with physical units. Open the file in a text editor and edit them as width="210mm" height="297mm". That single step prevents most page size surprises.
2. Convert text to outlines (if exact appearance matters). It's one click in a design program. Afterward the text can't be selected; decide whether you accept that.
3. Inline the styles. If the SVG depends on external CSS, it's incomplete on its own.
Decision summary
- A simple, quick conversion → an online tool.
- Work going to print → a design program, no other option.
- A graphic generated live on the web → browser printing.
- Batch work → a design program's batch processing, or the command line.
- Just taking a look → browser printing.
- If fonts are critical → convert to outlines in a design program, then any method.
And in every case: open the resulting PDF and check the page size, the special characters and the sharpness under zoom. Those three checks are the fastest way to verify the job was done right.
Frequently Asked Questions
Why isn't 'Print to PDF' in a browser enough?
Because the browser treats the SVG like web page content and applies its own page size, margins and scaling. The result is your graphic in the middle of the page, surrounded by wide white space, and usually scaled down. It's fine for a quick preview but unsuitable for work needing exact size control.
Inkscape is free — why would I use an online tool?
Inkscape really is powerful and the most comprehensive free option for print preparation. But it requires installation, is slow on first launch, and is a heavy solution for quickly converting a single file. If you convert occasionally, an online tool saves you minutes; if you regularly prepare print work, investing in Inkscape makes sense.
Which method embeds fonts most reliably?
Design programs, because the font is installed on your system and the program accesses it directly. You can also apply 'convert text to outlines' in one click — the most reliable method, eliminating the font problem entirely. With online tools it's uncertain whether the converter has access to that font.
Which should I choose for work going to print?
A design program. Prepress requirements like CMYK color conversion, bleed, crop marks and embedding color profiles can only be met by design programs. Neither an online tool nor browser printing provides them. Skipping those steps on a file you send to a print shop means the job comes back.
Try this out right away with SVG → PDF.
Try SVG → PDF