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.XZ

XZ-Compressed TAR Archive. The API converts 16 formats to TAR.XZ. 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.xz"}'

From 16 formats

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

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