Skip to content
Docs menu

Convert to CSV

Comma-Separated Values. The API converts 11 formats to CSV. These are the options, by input format.

curl https://api.switchfile.io/v1/convert \
  -H "Authorization: Bearer $SWITCHFILE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/input.dif","to":"csv"}'

From 10 formats

dif, fods, ods, ots, xls, xlsm, xlsx, xlt, xltm, xltx

  • delimiterstringdefault: ,

    Field separator of the output: one character or comma, semicolon, tab, pipe, space.

  • sheetintegerdefault: not set

    Worksheet to convert, 1 is the first. Without a value the first worksheet is used.

  • passwordstringdefault: not set

    Password to open the file.

From TSV

  • delimiterstringdefault: ,

    Field separator of the output: one character or comma, semicolon, tab, pipe, space.

  • input_delimiterstringdefault: tab

    Field separator of the input file.

  • encodingstringdefault: utf-8

    Text encoding of the input file, for example utf-8, windows-1252, iso-8859-1 or utf-16.

  • sheetintegerdefault: not set

    Worksheet to convert, 1 is the first. Without a value the first worksheet is used.

  • passwordstringdefault: not set

    Password to open the file.