Convert tar.gz to iso

Convert TAR.GZ to ISO

Extract a TAR.GZ archive and build a mountable ISO with Windows, Linux, or macOS tools.

Convert TAR.GZ files online

We don’t have a dedicated online converter for TAR.GZ to ISO yet, but you can convert TAR.GZ files online to these formats:

How to convert tar.gz to iso file

A virtual machine, disc-burning utility, firmware tool, or hardware device may accept an ISO image but reject a TAR.GZ archive. Converting it requires extracting the archive and building a new ISO filesystem image from the extracted files.

What the TAR.GZ format is

.tar.gz combines two formats: TAR stores files and directories in one archive, while GZIP compresses that TAR stream. TAR itself does not compress data.

Linux and Unix software commonly uses TAR.GZ for source code, software distributions, backups, server data, and exported directories. GNU tar, 7-Zip, WinRAR, and The Unarchiver can extract it. A TAR.GZ archive is a file archive, not an optical-disc image, and it does not contain ISO filesystem or boot-sector metadata.

What the ISO format is

An ISO is a disc-image file containing a filesystem, usually ISO 9660 with optional Joliet, Rock Ridge, or UDF extensions. Operating systems can mount it as a virtual disc, write it to CD or DVD media, and use it as installation media when it contains the required boot information.

ISO is useful when an application, virtual machine, burner, or device specifically requires a disc image. It packages a directory tree into one distributable file, but creating an ISO from extracted files does not make the image bootable.

Windows workflow

  1. Install 7-Zip and right-click the .tar.gz file, then choose 7-Zip → Extract Here. If the result is a .tar file, extract that file too; some 7-Zip versions do not perform both stages from the first command.
  2. Install AnyBurn and choose Create image file from files/folders.
  3. Add the extracted folder or its contents, select ISO as the output format, and choose a filename such as package.iso.
  4. Build the image, mount it in File Explorer, and check the directory levels and required files. Windows has no general-purpose built-in folder-to-ISO command, so a dedicated tool is required.

Linux workflow

GNU tar can extract both compression and archive layers in one command. Install xorriso from your distribution's package manager, then run:

mkdir extracted
tar -xzf package.tar.gz -C extracted
xorriso -as mkisofs -J -R -o package.iso extracted/

-J adds Joliet names for Windows compatibility, and -R adds Rock Ridge information for Unix-style names and metadata. The image contains the contents of extracted; inspect the archive first because it may create an additional top-level directory. Use that directory as the source when the ISO should start there rather than one level above it.

MacOS workflow

Extract the archive in Finder or Terminal, then use the built-in hdiutil command:

mkdir extracted
tar -xzf package.tar.gz -C extracted
hdiutil makehybrid -o package.iso -iso -joliet -udf extracted

Mount the result with Finder or Disk Utility and verify its contents. The -iso option selects ISO 9660 output; Joliet and UDF provide additional filename and filesystem compatibility where supported.

Online conversion

Online conversion is suitable only for small, nonconfidential archives and only when the service explicitly lists ISO as an output format. Services such as CloudConvert or Convertio change their supported format pairs, so verify the current upload and output options before sending a file; many archive converters support TAR or TAR.GZ extraction but do not create ISO images.

An online service cannot normally reconstruct boot metadata that was not present in the TAR.GZ. Download the result, mount it locally, verify the files, and remove the upload from the service if that option is available.

Compatibility and limitations

  • This is a repackaging operation, not a compression upgrade. GZIP is removed during extraction, so the ISO is commonly larger than the original TAR.GZ.
  • Creating an ISO from ordinary files does not preserve a boot sector, El Torito boot catalog, or other boot configuration. For bootable media, obtain the original ISO or explicitly create the required boot metadata with a tool such as xorriso; merely copying boot files is insufficient.
  • ISO 9660 has restrictive filename and path rules. Joliet improves Windows names and Rock Ridge improves Unix names, but symbolic links, hard links, permissions, device files, extended attributes, and other archive metadata may not survive in a form every operating system can use.
  • After building the image, mount it and compare its files and directory structure with the extracted source. For transfer or archival checks, calculate a checksum such as sha256sum package.iso; this verifies the ISO file itself, not equivalence with the original TAR.GZ.

TAR.GZ vs ISO: format comparison

How the TAR.GZ and ISO formats compare on the properties that matter most for this conversion.

Comparison of the TAR.GZ and ISO file formats
Property .TAR.GZ Tarball compressed with gzip .ISO ISO 9660 disc image
Open standard Yes Yes
Compression Both Uncompressed
Typical file size Medium Very large
Opens in a web browser No No
Further editing Limited Limited
Metadata support Basic Basic
Plain-text readable No No
Best used for Long-term archiving Long-term archiving
Introduced 1992 1988
Developer GNU Project (tar and gzip); format is a combination of two existing tools rather than a single stand ISO / ECMA / optical disc industry
MIME type application/gzip application/x-iso9660-image