How to use Extract GZ Files
- 1Drop a .gz, .gzip or .tgz file into the box.
- 2For a single compressed file, check the compressed and decompressed sizes, then click Download.
- 3For a .tar.gz or .tgz, browse the files inside, preview them, and download what you need, or download the plain .tar.
What a GZ file is
GZIP compresses a single file, for example access.log.gz or data.csv.gz. It is common for server logs, database dumps and data downloads. Many GZIP files remember the original file name, and this tool uses it when it is there.
To compress several files, they are usually bundled with TAR first, giving a .tar.gz. This tool detects that and shows the files inside, so you do not need a second tool.
Tips
Text files such as logs and CSVs can be previewed before you download them. Files that were compressed in several parts and joined together (multi-member GZIP) are handled, and .xz and .tar.xz files can be opened here too.
Privacy and limits
Decompression runs in your browser and nothing is uploaded. A GZIP file can expand to many times its size; the decompressed data must fit in your device's memory, so very large logs work best on a desktop computer.
How much bigger the file gets when you open it
GZIP is very effective on text, so the file you get back can be many times the size of the .gz. From our own test files:
| .gz file | Size | Unpacked | Ratio |
|---|---|---|---|
| Web server log | 10.2 MB | 104.9 MB | 10.3× |
| Sales CSV export | 10.4 MB | 31.5 MB | 3.0× |
Opening the 10.2 MB log here took 0.9 s on a laptop and 5.2 s with the CPU slowed four times to roughly match a mid-range phone; saving the 104.9 MB result took another 0.9 s and 1.6 s. The CSV opened in 0.6 s. The file size shown on the page is in binary units, so the same log.gz appears as 9.70 MB there. Logs compress so well because the same IP addresses, paths and browser names repeat on every line. Check the free space on a phone before opening a large log, and remember that the whole unpacked file is held in the tab's memory until you save it.
Files that end in .gz but are something else
.tgz and .tar.gz files are tarballs, so you get a file list instead of a single file. .xz files use a different compressor with the same job; they open here too and usually come out smaller than .gz for the same data.
There is also the .gz that a browser already unpacked: some servers send .gz files in a way that makes the browser decompress them while downloading, but keep the .gz name. If this page says the file is not a GZIP file, try opening it directly as text or CSV.
Common .gz files and where they come from
- Rotated server logs such as
access.log.2.gzorsyslog.3.gz: older days are compressed automatically to save disk space. The number shows how many rotations ago it was written. - Database dumps such as
backup.sql.gz: open here to check the date and tables in the preview before restoring anything. - Open-data downloads such as
data.csv.gzor.json.gz: after unpacking, the CSV opens in a spreadsheet. Very large CSVs (over about a million rows) exceed what Excel can show in one sheet. - Website sitemaps such as
sitemap.xml.gz: unpack to read the list of URLs.
If you only need to read part of a large log, the preview is faster than downloading and opening a 100 MB text file in an editor.
Frequently asked questions
How do I open a .gz file?
Drop it on this page and click Download. You get the original uncompressed file.
Why does my .gz file contain a .tar?
A .tar.gz is a TAR bundle compressed with GZIP. This tool unpacks the TAR automatically and lists the files inside.
Can I open .gz files on a phone?
Yes. Open this page in your mobile browser, choose the file, and download the result.
Is it safe for log files with private data?
Yes. The file never leaves your device; all decompression happens in the browser.
What is the difference between .gz and .zip?
A .gz file holds one compressed file and is common on Linux and servers. A .zip can hold many files and folders and is common on Windows. Both open on this site.
Why is the extracted file ten times bigger?
Text with lots of repetition, such as server logs, compresses very well. Our 10.2 MB log.gz unpacked to 104.9 MB. CSV data usually expands about three times.
The page says my .gz is not a GZIP file. Why?
The browser may have already decompressed it during download while keeping the .gz name. Rename it without .gz and open it with a text editor or spreadsheet.
Can I see a log before downloading all of it?
Yes. Text files can be previewed, so you can check you have the right day's log before saving 100 MB of it.
Is it safe to open a .gz from the internet?
Unpacking only decompresses data; nothing is run. What matters is the file inside. A log or CSV is plain text, but a .gz that unpacks to an .exe or a script is still a program, so treat it like any other download from an unknown source.
