Skip to content

CSV to Typst table

Convert CSV to Typst as you type. Nothing is uploaded, and the result can be previewed as a table, copied or downloaded.

Loading the converter… It runs locally in your browser.

How to convert CSV to Typst

  1. Paste your CSV into the input panel, drop a file onto it, or press “Open file”.
  2. Adjust the options above the panels (delimiter, header row, alignment and so on).
  3. Check the result: switch the output to “Table” view to see it as a grid.
  4. Press “Copy” or “Download .typ”. The conversion runs on your device, so large files never leave it.

Typst can also read CSV itself with csv("data.csv"), but that leaves the table styling to you. This converter writes a static #table() with a header row and booktabs-style rules that you can paste anywhere.

About CSV

Comma-separated values: one record per line, fields split by a delimiter, and fields that contain the delimiter, quotes or line breaks wrapped in double quotes (RFC 4180).

About Typst

Typst #table() markup with a table.header row and per-column alignment, for the Typst typesetting system.

Why some CSV fields get quotes

A CSV field only needs double quotes when it contains the delimiter, a double quote or a line break. A quote inside a field is written twice ("Katherine ""Kay"" Johnson"). Our interactive CSV format guide lets you type a value and watch exactly which rule applies.

Questions people ask

Is my CSV data uploaded anywhere?

No. The CSV to Typst conversion runs entirely in your browser with JavaScript. The page works offline once it has loaded, and TableForge never receives your data.

How large a file can I convert?

The limit is your device's memory. Files of tens of megabytes (hundreds of thousands of rows) convert fine on a typical laptop. The preview shows the first 200 rows, but the download always contains every row.

Does the converter keep special characters and commas?

Yes. Fields containing commas, quotes or line breaks are quoted and escaped according to each format's rules, and text is read and written as UTF-8, so accents, CJK characters and emoji survive.

Can I convert Typst back to CSV?

Yes, if Typst is a readable format: the universal converter on the TableForge home page takes CSV, TSV, JSON, XML, YAML, Excel, Markdown, HTML tables and SQL inserts as input.

Related converters