Convert your SVG files to PDF and PNG.

About CairoSVG

CairoSVG is:

Let's go!


CairoSVG is available on PyPI, you can install it with pip:

$ pip install cairosvg


You can use CairoSVG as a standalone command-line program:

$ cairosvg image.svg -o image.png


You can also use CairoSVG as a Python 3 library:

$ python3
>>> import cairosvg
>>> cairosvg.svg2pdf(url='image.svg', write_to='image.pdf')

Want more?

Please read the documentation to learn more about how to use CairoSVG.

What's new?

Latest version of CairoSVG is 1.0.20, released on February 23, 2016 (changelog).

CairoSVG 0.5

CairoSVG 0.5 has been released, with exciting new features and a lot of bugfixes:

Don’t expect new features before the next 1.0 version: only documentation and bugfixes are expected during the next weeks.