TYP HTML
File conversion

Convert TYP to HTML

QUICK ANSWER
Is it possible to convert TYP to HTML?
Yes - TYP converts to HTML.

Run typst compile --features html --format html main.typ main.html. The exporter is experimental and emits a single semantic HTML file without CSS, so it is best for structure rather than polished styling.

Also to HTML: ZHELP · WHTML · TEX

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert TYP to HTML?

A .typ file is Typst source only the compiler understands, while .HTML is what browsers and the web need. Exporting turns a Typst document into a web page so it can be published online or embedded rather than shared as a PDF.

How to convert TYP to HTML

typst-cli (native HTML export)

Run typst compile --features html --format html main.typ main.html, or set TYPST_FEATURES=html. Output is a single semantic HTML file.

Pandoc (via Typst reader)

As an alternative run pandoc main.typ -o main.html with Pandoc 3.1.8+ to get a styled, standalone HTML page from the Typst source.

About these formats

Quality & what to watch

  • Typst's HTML export is experimental and behind a feature flag - the docs warn against production use.
  • The native exporter outputs semantic markup only and no CSS, so the page is unstyled until you add your own stylesheet.
  • Complex layout, positioned graphics, and some packages are incomplete or unsupported in HTML output.

Frequently asked questions

Why do I need the --features html flag?
HTML export is experimental, so Typst hides it behind the html feature flag; without it the format is unavailable.
Why is my HTML unstyled?
The native exporter emits semantic markup without CSS by design. Add your own stylesheet or use Pandoc for a styled page.
Is this safe for a production website?
Typst's own docs say no - the feature is incomplete and meant for experimentation for now.
Can Pandoc do this instead?
Yes. pandoc main.typ -o main.html reads the Typst source and produces a standalone HTML file.