Graphics Converter

TikZ to CeTZ Converter

Convert your TikZ diagrams to Typst's CeTZ library. Native vector graphics in Typst.

What is CeTZ?

CeTZ (Canvas-based Typst) is Typst's native library for creating vector graphics. It's inspired by TikZ but designed specifically for Typst's clean syntax.

While TikZ uses LaTeX's verbose command syntax, CeTZ uses Typst's modern function calls. The result: cleaner code, faster compilation, and easier maintenance.

Conversion Examples

ElementTikZCeTZ
Basic Line\draw (0,0) -- (1,1);line((0,0), (1,1))
Circle\draw (0,0) circle (1cm);circle((0,0), radius: 1)
Rectangle\draw (0,0) rectangle (2,1);rect((0,0), (2,1))
Arrow\draw[->] (0,0) -- (1,0);line((0,0), (1,0), mark: (end: ">"))
Filled Shape\fill[blue] (0,0) circle (0.5);circle((0,0), radius: 0.5, fill: blue)
Node with Text\node at (0,0) {Text};content((0,0), [Text])

Conversion Support

Supported Features
  • Lines and paths
  • Circles and ellipses
  • Rectangles
  • Arrows and marks
  • Fill and stroke colors
  • Text nodes
  • Coordinates and positioning
  • Basic transformations
  • Bezier curves
  • Arcs
Not Yet Supported
  • Complex TikZ libraries (trees, graphs, etc.)
  • PGFPlots integration
  • 3D graphics (tikz-3dplot)
  • Custom TikZ styles
  • Some advanced decorations

For unsupported features, consider exporting as PDF/SVG from LaTeX and including as an image.

Why Use CeTZ?

Faster Compilation

CeTZ compiles with Typst - instant preview, no separate TikZ compilation step.

Cleaner Syntax

Modern function-based syntax is easier to read and write than TikZ commands.

Native Integration

CeTZ is built for Typst. Better integration with Typst's styling and layout.

FAQ

What is CeTZ?

CeTZ is Typst's native vector graphics library, similar to TikZ for LaTeX. It allows you to create diagrams, charts, and illustrations directly in Typst with a clean, modern syntax.

Can I convert any TikZ diagram?

Basic to intermediate TikZ diagrams convert well. Very complex diagrams using specialized TikZ libraries may need manual adjustment. The converter handles most common drawing commands.

Is CeTZ as powerful as TikZ?

CeTZ is still growing. It handles most common drawing tasks well but doesn't yet have all of TikZ's specialized libraries. For most academic diagrams, CeTZ is sufficient.

What about PGFPlots?

PGFPlots charts should be converted using dedicated charting libraries in Typst, or you can export plots as images and include them in your Typst document.

Convert Your Diagrams

Use our full converter to transform entire LaTeX documents to Typst, including TikZ diagrams, math, tables, and text.

Convert LaTeX to Typst

Related Tools

TikZ to CeTZ Converter 2026 | Typst Diagrams | TypeTeX | TypeTeX