Skip to content
Docs menu

Convert to 7Z

7-Zip Archive. The API converts 17 formats to 7Z. This target has no options.

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

From 17 formats

bz2, cpio, gz, jar, lzma, rar, tar, tar.bz2, tar.gz, tar.xz, tar.zst, tbz2, tgz, txz, xz, zip, zst

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