Convert .prism and .pzfx files to CSV
Goal
Get the tables out of an existing .pzfx or .prism file. By the end you will have checked what the file contains, exported one table or every table to CSV or TSV (including semicolon-delimited, decimal-comma files), and, if you want, kept the whole workbook as a CurveBook project.
You need: CurveBook installed. No other software is required, and nothing leaves your computer.
Seeded dataset
This guide uses a clean-room synthetic .pzfx file (experiment.pzfx) with two tables:
- Dose response (XY table, two replicate Y subcolumns, one excluded cell marked with
*):
log dose | Response:Y1 | Response:Y2 |
|---|---|---|
-9 | 2.1 | 3.0 |
-8 | 10.5 | 55.0* |
-7 | 48.0 | 51.5 |
-6 | 91.2 | 89.9 |
- Groups (Column table, two groups):
Control | Treated |
|---|---|
1.2 | 2.3 |
1.4 | 2.6 |
1.1 | 2.0 |
A clean-room .prism archive (study.prism) contains the same Groups table plus an analysis view snapshot.
Desktop app steps
1. Import the file
- Choose File › Import › Import .pzfx files… (or Import .prism files) and pick the file.
- If your current project has unsaved work, CurveBook asks how to bring the file in. Choose Add to current project or Open as new project.
You should see: each table from the file in the Navigator. If anything could not be imported, Import Warnings opens and lists it.
2. Review import warnings
Unsupported parts of a file, such as proprietary graph blocks, are skipped while the data tables import cleanly. Read the list, then click Close. Reopen it later from the Warnings pill in the status bar or File › Import › Import Warnings.
3. Check the tables
Click Dose response and Groups in the Navigator. Check the column titles and replicate subcolumns. Excluded values keep their place in the grid and are shown struck through.
4. Export one table
- Open the table and choose File › Export › Data Table (CSV)….
- In Export CSV Table, set Delimiter and Decimal separator. For example, choose Semicolon (;) with Comma (,) for spreadsheets set to a decimal-comma locale.
- Choose where to save. Naming the file
.tsvswitches to tab-separated output automatically.
You should see: one file with the table's values, and a trailing * on any excluded value.
5. Export every table at once
Choose File › Export › All Data Tables (CSV)… and pick a folder. You should see: one CSV file per data table in that folder.
To keep everything, including future analyses, as a CurveBook project, save the project; see Files and sharing.
CLI and MCP steps
Inspect sheets and warnings
curvebook-cli info experiment.pzfx
curvebook-cli info study.prism
info lists every data table, info sheet, imported analysis, and warning without modifying the input file.
Export the first table, a named sheet, or TSV
# Export the first table (Dose response) to CSV
curvebook-cli convert experiment.pzfx experiment.csv
# Export a specific table by title or sheet ID
curvebook-cli convert experiment.pzfx groups.csv --sheet "Groups"
# Export tab-separated values (.tsv inferred from extension, or pass --format tsv)
curvebook-cli convert experiment.pzfx groups.tsv --sheet "Groups"
# Convert a .prism archive table to CSV
curvebook-cli convert study.prism study-groups.csv
Export with semicolon delimiter and decimal commas
Convert to a .curvebook project once, then call table.exportCsv with explicit delimiter and decimal-separator options:
curvebook-cli convert experiment.pzfx experiment.curvebook
curvebook-cli table.exportCsv \
--in experiment.curvebook \
--sheet-id groups \
--path groups-eu.csv \
--delimiter ";" \
--decimal-separator ","
Convert to a .curvebook project (and data-only .pzfx)
curvebook-cli convert experiment.pzfx experiment.curvebook
curvebook-cli convert study.prism study.curvebook
curvebook-cli convert experiment.curvebook export.pzfx
Equivalent MCP tool calls
In an MCP client connected to curvebook-cli mcp --workdir <dir>, run command_run with:
table.importPzfx({"path": "experiment.pzfx"}) orproject.open({"path": "study.prism"})table.exportCsv({"sheet_id": "groups", "path": "groups-eu.csv", "delimiter": ";", "decimal_separator": ","})project.save({"path": "experiment.curvebook"})
Reading the results
- Replicate subcolumns: XY and Grouped replicate subcolumns export side by side as
Response:Y1,Response:Y2, and so on. - Excluded values: Cells marked excluded in
.pzfxor.prismfiles keep a trailing*in CSV/TSV export (for example55*), so downstream scripts never silently treat excluded measurements as active observations. - Live recompute vs. read-only snapshots: Verified
.prismanalyses recompute live; other saved analysis views import as read-only snapshots so numbers are never silently altered. - Legacy binary files: Older binary
.pzffiles (and.pzfxfiles starting with aPCFFbinary header) are refused with a clear error message rather than producing garbled tables. - For full format boundaries, CSV quoting rules, and schema details, see Files, import and export.
Exporting
| Target | Desktop menu | CLI command | What is written |
|---|---|---|---|
| Single CSV | File › Export › Data Table (CSV)… | curvebook-cli convert in.pzfx out.csv --sheet "Groups" | Selected table (, / . by default) |
| Single TSV | File › Export › Data Table (CSV)… (.tsv) | curvebook-cli convert in.pzfx out.tsv --sheet "Groups" | Tab-separated table |
| Decimal-comma CSV | File › Export › Data Table (CSV)… (; / ,) | curvebook-cli table.exportCsv --in proj.curvebook --sheet-id groups --path out.csv --delimiter ";" --decimal-separator "," | Semicolon-delimited table with , decimals |
| All tables | File › Export › All Data Tables (CSV)… | Loop convert --sheet <id> per table from info --json | One CSV per data sheet |
| CurveBook project | File › Save As… | curvebook-cli convert in.pzfx out.curvebook | Full native archive |
Data-only .pzfx | File › Export › .pzfx file… | curvebook-cli convert out.curvebook export.pzfx | Data tables and info sheets only |
Note
.pzfx export saves your data tables and info sheets only. Analyses, graphs and layouts stay in your .curvebook project.