Skip to content
Docs menu

Convert to HTML

HyperText Markup Language. The API converts 24 formats to HTML. 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":"html"}'

From 20 formats

dif, doc, docm, docx, dot, dotm, dotx, fods, fodt, ods, odt, ots, ott, rtf, xls, xlsm, xlsx, xlt, xltm, xltx

  • passwordstringdefault: not set

    Password to open the file.

From CSV

  • delimiterstringdefault: ,

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

  • encodingstringdefault: utf-8

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

  • passwordstringdefault: not set

    Password to open the file.

From TSV

  • delimiterstringdefault: tab

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

  • encodingstringdefault: utf-8

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

  • passwordstringdefault: not set

    Password to open the file.

From TXT

  • encodingstringdefault: utf-8

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

  • passwordstringdefault: not set

    Password to open the file.

From MD

No options. The file is converted with the usual settings for HTML.