# Convert CSV to HTML

Files are processed on our server, and the results are kept for a few minutes so you can download them, then deleted — whether or not you did. Free, no account, no watermark.

Results are deleted 15 minutes after the job finishes.

## API

POST the file as the raw request body to https://toolsforfree.app/api/jobs?from=csv&to=html, then

GET https://toolsforfree.app/api/jobs/{taskId}?engine={engine} until state is done,
then GET https://toolsforfree.app/api/jobs/{taskId}/output?engine={engine}&format={format}, with the taskId, engine and format the 202 answers.

Details: https://toolsforfree.app/api.md

MCP: call convert_file at https://toolsforfree.app/mcp with from "csv" and to "html".

## Options

Sent as JSON in the x-tff-options header. Bounds and allowed values are in https://toolsforfree.app/openapi.json.

- `csv`: separator, encoding, headerRow, keepText, sheet

## Questions

### Does converting CSV to HTML lose quality?

Yes, in one way. The CSV comes across as one table in the page, but each value is read the way a spreadsheet reads what you type: leading zeros are dropped (00123 becomes 123), numbers longer than 15 digits are rounded, text such as 2024-01-02 becomes a date, and a value starting with = shows its result.

### Can I convert the HTML back to CSV?

Not by itself. We convert CSV to HTML but have no converter going the other way, so you would need to find the original.

### What can I change about the HTML it produces?

You can choose the separator, found from the file; the character set; whether the first line names the columns; and whether every column stays text, keeping leading zeros. The separator and character set start as found in the file you drop, and a preview shows the first rows as they will be read. Keep as text stops a code like 00123 losing its zeros.
