Convert Latex Tikz diagram to SVG

  1. Generate PDF from LaTeX as usual:

    pdflatex mydoc.tex
  2. Use Inkscape from Terminal to convert PDF to SVG at full vector quality

    inkscape -l out.svg in.pdf

That’s how to convert Latex to SVG, a vector graphics conversion at full quality from the command line (no GUI).