Skip to content
Docs menu

Convert to EPUB

Electronic Publication. The API converts 27 formats to EPUB. 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.doc","to":"epub"}'

From 10 formats

doc, docm, docx, dot, dotm, dotx, fodt, odt, ott, rtf

  • 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 16 formats

azw, azw3, cb7, cbr, cbt, cbz, chm, fb2, html, lrf, md, mobi, pdb, prc, rb, tcr

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