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

Tape Archive. The API converts 17 formats to TAR. 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"}'

From 17 formats

7z, bz2, cpio, gz, jar, lzma, rar, 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 TAR.