Contents
  1. The short answer
  2. Before you convert: check what the PDF contains
  3. Method 1: Convert in a vector editor
  4. Method 2: Convert from the command line
  5. Verify the converted SVG
  6. Preparing the SVG as a favicon
  7. When the PDF only contains a bitmap

The short answer

To convert a PDF to SVG, open or import the PDF page in a vector editor such as Inkscape or Adobe Illustrator and save or export it as SVG. You can also use a command-line converter such as pdftocairo (part of Poppler), pdf2svg, or Inkscape's command-line mode. The conversion only gives you clean, scalable logo artwork if the PDF already contains vector paths. If the logo inside the PDF is a photo or a scan, the SVG will simply wrap that bitmap and will not scale cleanly.

Two terms set the scope. A vector path is a shape described mathematically by points and curves, so it can be scaled to any size without losing sharpness. A raster (or bitmap) image is a grid of pixels that blurs or pixelates when enlarged. A PDF can hold either kind, or both, so the .pdf extension alone does not tell you what you have. The .svg extension doesn't either.

Before you convert: check what the PDF contains

Open the PDF in a vector editor and select the logo. If you can select individual shapes and see anchor points along their edges, the artwork is vector. If the whole logo selects as a single rectangle with no editable points, it is an embedded image. A second quick test is to zoom in very far. Vector edges stay crisp, while raster edges turn soft or blocky.

Confirm you have the right to use and modify the logo. Having a file in an editable format does not grant permission to reuse or alter someone else's mark.

Method 1: Convert in a vector editor

  • 1. Open the PDF in Inkscape or Illustrator. If the PDF has several pages, choose the page that holds the logo.
  • 2. In Inkscape, choose how text is imported. Pick the option that converts text to paths if you want the lettering to look the same on any system.
  • 3. Ungroup the artwork and delete everything that isn't part of the logo, such as page backgrounds, crop marks, empty clipping groups and stray invisible objects.
  • 4. Convert any remaining live text to outlines (Object to Path in Inkscape, Create Outlines in Illustrator). The SVG then won't depend on the font being installed.
  • 5. Resize the canvas or artboard to fit the logo, or to a square if the file will be a favicon.
  • 6. Save as SVG. In Inkscape, Plain SVG drops editor-specific metadata. In Illustrator, use Export or Save As SVG and turn off options that embed fonts or extra editing data, unless you need them.

Method 2: Convert from the command line

Command-line tools suit batch work or automated pipelines. Each command below converts one page. Option names can differ between versions, so check the help output of the version you have installed.

# Poppler
pdftocairo -svg -f 1 -l 1 input.pdf output.svg

# pdf2svg (last argument is the page number)
pdf2svg input.pdf output.svg 1

# Inkscape 1.x
inkscape input.pdf --pdf-page=1 --export-type=svg --export-filename=output.svg

Automated converters copy the PDF's structure as it is. You usually still need a manual cleanup pass in an editor to remove page-sized backgrounds, unneeded clipping paths and nested groups.

Verify the converted SVG

  • Open the SVG in a plain-text editor and search for <image>. If you find it, raster content is embedded and that part will not scale cleanly.
  • Search for <text>. If you find it, the lettering still depends on fonts and may render differently on other devices. Convert it to paths.
  • Check the viewBox attribute on the root <svg> element. It defines the drawing's coordinate area, and it should fit the logo closely rather than the original PDF page.
  • Open the file in a browser and zoom in to confirm the edges stay sharp.
  • Compare colours against the source. PDFs made for print often use CMYK, and SVG uses screen colour values, so colours can shift during conversion.

Preparing the SVG as a favicon

A favicon is the small icon browsers show in tabs, bookmarks and history. An SVG favicon stays sharp at any display density, but a full logo with fine lettering rarely reads well at tab size. Use a simplified mark, such as the symbol or an initial, on a square viewBox. Remove thin strokes and small details that disappear at small sizes.

Run the file through an SVG optimizer such as SVGO to strip metadata and redundant markup, then check that it still looks correct afterwards. Reference the file in the page head, and keep a PNG or ICO fallback, because SVG favicon support varies across browsers and versions.

<link rel="icon" type="image/svg+xml" href="favicon.svg">
<link rel="icon" type="image/png" href="favicon.png">

An SVG favicon can include a CSS prefers-color-scheme media query inside the file, so the icon can change colour for light and dark browser themes. This is a design option rather than a requirement, and not every browser applies it in the tab.

When the PDF only contains a bitmap

If the check shows that the logo is a raster image, converting the file will not produce true vector artwork. Your options are to ask the logo owner for original vector source files, to auto-trace the bitmap (Trace Bitmap in Inkscape, Image Trace in Illustrator), or to redraw the logo by hand. Auto-tracing works acceptably on simple, high-contrast marks but often distorts curves and lettering. A manual redraw gives the most accurate result for a brand logo. This guide has no tool-specific accuracy figures to compare these approaches, so judge the traced result against the original by eye at both large and favicon sizes.