Skip to content
Docs menu

Convert to FB2

FictionBook. The API converts 21 formats to FB2. 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":"fb2"}'

From 11 formats

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

  • passwordstringdefault: not set

    Password to open the file.

From 10 formats

azw, azw3, chm, epub, lrf, mobi, pdb, prc, rb, tcr

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