Ask Leo!

Why are some of my file names blue?

Home » Windows » Windows User Interface

Summary: Windows Explorer will display compressed files in blue. Files can be compressed to save disk space, but there are ramifications to consider.

Why are some of my file names in blue font, while most are black?

It's a feature!

I'm assuming that you're referring to the Windows Explorer listing of files, probably in detail view.

The blue files are compressed.

Let's talk about what that means, and how you can turn that display on and off.

First let's show what the question is referring to:

Partial file listing in Windows Explorer showing compressed files

This is a partial listing of the files in my "C:\Windows" folder. You can see that some of the folders are displayed in blue, while others are shown in the more common black.

In the NTFS file system, files and folders can be marked as "compressed". This means that when the file is written to disk it is compressed to take up less actual disk space. Files added to a folder marked as compressed are similarly compressed.

Not all files can be compressed, or rather, not all files get smaller when you compress them. I know that seems backwards, but if a file is already compressed, then attempting to compress it a second time can actually make it a little larger instead.

"I only compress files when a disk is running low on space and it's impractical for me to get more space by other means."

Many files these days are already compressed. The best examples are most audio files like mp3 files, most picture files like the jpg files that come off of your digital camera, and most video files that you might get from your video camera or shows that you download.

That's one reason why file compression is typically off by default; you don't want to just blindly start compressing everything, because not everything should be compressed.

Another reason is that compression and decompression when the file is written or read takes some extra CPU time. These days it's not really a lot, but it can add up if the file is accessed a lot.

So what files are good candidates for compression? Archives of things that aren't already compressed and that you don't access a lot are good candidates.

But then again, with the size of hard disks being what they are theses days, I rarely compress files, as there's simply no need to add yet another something to what happens when reading and writing files. I only compress files when a disk is running low on space and it's impractical for me to get more space by other means.

Let's look at how to adjust that Windows Explorer setting, and then also how to actually compress files or folders.

In Windows Explorer click on Tools, Folder Options and then the View Tab. In the Advanced settings list scroll down until you see Show encrypted or compressed NTFS files in color:

Windows Explorer Option: Show encrypted or compressed NTFS files in color

Make sure that's checked, or not, as you desire. (In case you're wondering, encrypted files display in green when this option is selected, and compressed files in blue.)

Now, as for compressing files or folders, simply right-click on the file or folder you want to compress, click on Properties, click on the Advanced button, and you should see something like this:

File advanced attributes, including compression and encryption

Make sure that "Compress contents to save disk space" is checked as appropriate and OK your way back out, and Windows will compress the file or folder.

(Since you might be tempted, I recommend against Windows built-in file encryption unless you truly understand the ramifications. In a nutshell, it's tied to your Windows login, and if you ever lose that you will lose the files or folders that you've encrypted - permanently. If you need encryption, I recommend a solution like TrueCrypt instead.)

Related:

  • Should I use Windows File Compression? Windows File Compression automatically compresses files so that they take up less space. In the best circumstance Windows File Compression can free up a lot of space - but frequently it's not as much as you might expect, and there is cost.

  • Can I ZIP my pictures or MP3 files to save space? Most picture and movie files are already compressed, which means that they won't save space if made into a ZIP file.

Article 12590 | Posted July 31, 2008

Recent Comments
0 Comments

Regarding the remark about built-in encryption, how does it differ from TrueCrypt in the scenario of forgetting the password/pass phrase?

If we lose the key the data remains encrypted unless someone can crack it. So apparently, the risk is pretty much the same. Or is it?

Forgetting your password is one thing. And yes, if you forget your password in TrueCrypt you're just as screwed there too.

I guess I've seen just enough instances of people creating new user accounts and deleting the old, or just somehow messing up their Windows user accounts and accidentally losing access to their encrypted data that it seems an unnecessary additional risk.

On top of that TrueCrypt containers are portable, platform independent and can be transferred in encrypted form. Not always true for Windows file system encryption - if you copy a file it travels unencrypted.

Windows filesystem compression has a role, I'm just saying you should understand the ramifications when choosing whether or not to use it.

-Leo

Posted by: novice at July 31, 2008 7:43 PM

Thx but how do I uncompress them?

Just do what's displayed above, but make sure that the "Compress" checkbox is unchecked.

-Leo

Posted by: Nord Carls at August 5, 2008 10:52 PM

Post a comment on "Why are some of my file names blue?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

New!

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

Please wait. Your comment is being processed ...


Ask Your Question:


ask-leo.com
Web

Stay Informed

Weekly Newsletter

Archives

By Category
By Date

Advertisers

Advertise on Ask Leo!

««   »»

Question? - Ask Leo!
Who is Leo?
Link to Leo!

Terms, Conditions & Privacy