General Information

The site is free to use, and the diagrams you create are yours to share for any purpose. No closed nor open strings attached!
By Tino Barbieri.

Pro-tip! Try pressing “shift” when a line is selected.

For comments, suggestions, or bug reports, feel free to contact me via email or visit the GitHub repository.

Toolbox

Borders & Color
Vertex Style
Fill & Pattern
Lines & Arrows

Integration & Export

Typst Integration

There is no need to export any specific code for Typst! Simply save your diagram as a JSON file using the "Save" button above. Then, use the official feyndrawgram package on Typst Universe to render it directly in your document.


LaTeX (TikZ) Export

LaTeX (TikZ) natively supports wavy and spring-like paths for photons and gluons. However, when drawing highly curved or high-multiplicity propagators, native decorations can produce graphical artifacts due to phase shifts between the inner and outer strokes.

To prevent this, FeynDrawGram defaults to an explicit, point-by-point path generation for these lines (toggleable via the checkbox above). While this ensures perfect pixel-to-pixel consistency with the web preview, it produces slightly larger code.

To compile the exported .tex file, you must include the following in your preamble:
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{patterns}
\usetikzlibrary{patterns.meta}
\usetikzlibrary{arrows.meta}
After that, you can insert your Feynman diagram with \input{feynman_diagram.tex}.