The command line tool dvisvgm converts DVI files, as created by TeX/LaTeX, to the XML-based SVG format.
dvisvgm supports classic DVI files as well as pTeX DVI and XDV files. All glyph outlines are derived from the referenced TeX fonts and are embedded into the generated SVG files, either as text or graphic elements. The utility evaluates a wide range of \special commands including color, PostScript, and hyperref specials. Furthermore, option --eps allows to convert EPS files to SVG.
dvisvgm is also part of TeX Live and therefore available for a wide range of operating systems.