Skip to content
Docs menu

Copy the text

Your browser did not allow copying. The text below is selected: press Ctrl+C, or ⌘C on a Mac.

Convert to TAR.BZ2

Bzip2 Compressed TAR. The API converts 16 formats to TAR.BZ2. 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.7z","to":"tar.bz2"}'

From 16 formats

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

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