M: I just unpacked an old backup of my Geocities site – this is from around 2005. When I made the back up, I don’t remember exactly how I got the entire folder, but it appears that the entire thing was just downloaded as a bulk action. The problem I’m having is that, while the pictures, CSS, and basically any other file is just fine, the HTM files are messed up somehow. I tried opening them in a web browser, and I got a text salad; when I went to check them in a text editor, it was the same thing – completely unreadable, random characters, as far as I can tell. Any idea what might have happened?
G: It sounds like the HTM files might have been saved in an incorrect encoding or got corrupted during the backup process. A few possibilities:
Wrong Encoding – If they were saved in a different character encoding (e.g., UTF-16, Windows-1252, or something else), a text editor expecting UTF-8 might show gibberish.
iconv, and manually set the
encoding.Binary Format – If the files were downloaded incorrectly (e.g., as part of an FTP transfer in binary mode instead of text mode), they might be stored in a format that isn’t actually plain text.
file yourfile.htm in a Linux terminal to
see what type of data they contain.Compression or Encoding Artifacts – Some old backup tools (or even Geocities itself) might have stored files in a compressed or encoded format.
gzip, bzip2, or similar). Try
strings yourfile.htm | less to see if there's any readable
text.Corruption – If the data was corrupted during backup, there may not be an easy fix. But you can try opening the files in a hex editor to see if there’s any recognizable structure.
If you can share an example of the "text salad" or describe what it looks like, I might be able to narrow it down further.
M: It looks like it’s gzip. I’ll just try to decompress everything; is there anything I should know before I start poking at things?
G: Yeah, a few things to keep in mind:
Backup Before Decompression – If you haven’t already, make a copy of the files before running any bulk decompression, just in case something goes wrong.
Check the File Extensions – If the
.htm files are actually gzip-compressed but don’t have a
.gz extension, you’ll need to manually specify them when
decompressing.
Use gunzip or gzip -d
– If you're in a Linux terminal, you can try:
gunzip *.htmor
gzip -d *.htmThis will decompress all .htm files in the
directory.
Handling Output Files – gunzip will
remove the .gz extension automatically, but since your
files don’t have it, you might want to extract to a new name
instead:
gzip -dc yourfile.htm > yourfile_decompressed.htmThis way, you can compare before replacing anything.
Batch Processing – If you have a whole directory of files, a loop like this can help:
for file in *.htm; do gzip -dc "$file" > "decompressed_$file"; doneThis keeps your originals intact while giving you a new set of decompressed versions.
Check for Double Compression – If the
decompressed files still look weird, they might have been compressed
twice. Try running file yourfile.htm again after
decompression to see if it’s still recognized as gzip.
Let me know if anything looks off after decompression.
M: Those files came from some sort of automated delivery service… Do you know anything about whether Geocities always stored HTML files in a compressed form? I’m looking for reasons why the files would be compressed if automatically delivered by a GeoCities bot…
G: GeoCities didn’t typically store
HTML files in a compressed form for public hosting, but there are a few
reasons why your backup might contain gzip-compressed .htm
files:
Automated Backup Services – Some third-party website backup tools (or even some early browser extensions) compressed files to save space, especially in the dial-up era. If you used an automated service, it might have downloaded your site in a gzip format without making it obvious.
GeoCities PageBuilder or Yahoo Archiving – If the files were retrieved through an official Yahoo/GeoCities tool or an automated export service, they might have been compressed for easier batch delivery.
Server-Side Compression (Gzip Transfer Encoding) – Some web servers automatically gzip HTML files before sending them to browsers to speed up load times. If your backup tool saved the raw HTTP response instead of properly decoding it, you’d end up with compressed files instead of readable HTML.
GeoCities' Shutdown Archives – If you retrieved your files near or after GeoCities' closure in 2009, some archival tools (like Archive Team’s mass scrapes) stored pages in a compressed format for efficiency.
If you still have logs or metadata from when the backup was made, checking those might give a hint about how the files were retrieved. Otherwise, it’s safe to assume that the compression happened somewhere along the way in an effort to save bandwidth or storage.