TAR.GZ Archive Preview

Preview contents of TAR.GZ archive without extraction (requires 7zip command)

Click to upload file or drag and drop file here

Maximum file size: 500MB Supported formats: application/x-tar-gz, application/gzip, application/x-gzip, application/octet-stream, .tar.gz, .tgz

Key Facts

Category
Conversion & Encoding
Input Types
file
Output Type
json
Sample Coverage
4
API Ready
Yes

Overview

The TAR.GZ Archive Preview tool allows you to inspect the contents of compressed TAR.GZ or TGZ files instantly without needing to extract them to your local storage.

When to Use

  • When you need to verify the contents of a large archive before downloading or extracting it.
  • When you want to check for specific file paths or directory structures within a compressed package.
  • When you are managing disk space and want to avoid unnecessary extraction of large archive files.

How It Works

  • Upload your TAR.GZ or TGZ archive file to the tool.
  • The tool utilizes 7zip to scan the archive structure internally.
  • A structured list of all files and folders contained within the archive is displayed for your review.

Use Cases

Quickly auditing the contents of server backups or log archives.
Verifying that a build artifact contains all required files before deployment.
Checking the internal structure of downloaded software packages without cluttering your file system.

Examples

1. Verifying Backup Contents

System Administrator
Background
An administrator has a 200MB server backup file and needs to confirm it includes the 'config/' directory before restoring it.
Problem
Extracting the entire archive takes too long and consumes unnecessary disk space.
How to Use
Upload the backup.tar.gz file to the preview tool.
Outcome
The tool displays the full file tree, allowing the administrator to confirm the presence of the 'config/' folder in seconds.

2. Checking Build Artifacts

Software Developer
Background
A developer created a compressed build package and wants to ensure the 'dist/' folder contains the correct minified assets.
Problem
Manually extracting the package to check the file list is inefficient during the CI/CD verification process.
How to Use
Upload the build.tgz file to the tool to view the file list.
Outcome
The developer sees the list of files, confirming that all necessary assets are correctly bundled in the archive.

Try with Samples

file

Related Hubs

FAQ

Do I need to install 7zip on my computer?

No, the tool handles the processing on the server side using the necessary 7zip commands.

Are my files extracted during this process?

No, the tool only reads the file metadata and directory structure; no files are extracted or saved to your disk.

Is there a file size limit for previews?

Yes, the tool supports files up to 500MB to ensure stable and fast performance.

Can I view the contents of files inside the archive?

This tool provides a list of the files and folders within the archive, but it does not open or display the content of individual files.

Which archive formats are supported?

This tool is specifically optimized for TAR.GZ and TGZ archive formats.

API Documentation

Request Endpoint

POST /en/api/tools/tar-gz-preview

Request Parameters

Parameter Name Type Required Description
archiveFile file (Upload required) Yes -

File type parameters need to be uploaded first via POST /upload/tar-gz-preview to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-tar-gz-preview": {
      "name": "tar-gz-preview",
      "description": "Preview contents of TAR.GZ archive without extraction (requires 7zip command)",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=tar-gz-preview",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]