science | March 02, 2026

What is dvisvgm?

What is dvisvgm?

What is dvisvgm? The command-line utility dvisvgm is a tool for TEX / LaTEX users. It converts DVI , EPS, and PDF files to the XML-based vector graphics format SVG. In contrast to bitmap graphics, vector graphics are arbitrarily scalable without loss of quality.

How do I convert a DVI file to SVG?

The command line tool dvisvgm converts DVI, EPS, and PDF files to the XML-based SVG format. Converts standard DVI files as well as DVI/XDV files created with pTeX or XeTeX. Also provides an option to convert EPS files to SVG.

Why does dvisvgm vectorize Metafont’s output?

If necessary, dvisvgm vectorizes METAFONT ’s bitmap output in order to always create lossless scalable output. The embedded SVG fonts can optionally be replaced with graphics paths so that applications that do not support SVG fonts are enabled to render the graphics properly.

What version of Ghostscript is required to use dvisvgm?

Due to incompatible changes of the Ghostscript API, dvisvgm requires Ghostscript 8.31 or later. This library is part of the Web2C package and is usually installed in conjunction with a TeX distribution. Kpathsea provides functions for searching files in the large texmf tree.