Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Why are some of my file names blue?

Question:

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.

Become a Patron of Ask Leo! and go ad-free!

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.)

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

20 comments on “Why are some of my file names blue?”

  1. 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

    Reply
  2. Thx but how do I uncompress them?

    Just do what’s displayed above, but make sure that the “Compress” checkbox is unchecked.

    -Leo

    Reply
  3. I am actually interested in doing teh reverse, uncompress. Is there a way to uncompress the files that were compressed as old compressed files. I activated clean disk and realized it was going to delete all my old compressed files, I then cancelled the action and later found a lot of my files to be blue in script. Does this mean those are all compressed files and if so, how do I uncompredd them?

    -William.

    Just uncheck the “Compress file” option in the file properties.

    – Leo
    10-Jan-2009
    Reply
  4. Leo, thanks for some very useful information. I have just been battling with updating my McAfee protection and was disturbed to see all the file names in blue. Your webpage (which I found on Google) gave me the answer quickly and helpfully.

    Reply
  5. Thanks, Leo! I was searching all day for an answer online, and all these “major websites” had zero idea, or rather their sites were difficult to navigate through if they did have an answer. I appreciate the help!

    Reply
  6. Some of the blue files are audio files I’ve compressed into mP3s. But others are audio files I have not compressed. Some are Cakewalk (the audio recording software I use) project files which I have not compressed. Often when I try to open these I get a message saying that audio has been replaced with silence and that the file cannot be found. When I open it, there is silence, and a straight line where there should be audio waves.
    Considering the comment above about clean disk, if I have run disk defragmentation or disk check would those eliminate audio? I looked at the “compress files” command on some files as you indicated and found that “compress files” was checked, though I do not recall doing that since I didn’t know about it! I unchecked them, the files now show in black but there is still no audio.

    Reply
  7. Thanks Leo, I was confused why my files were looking in Blue. I had windows XP SP2 and recently upgraded to SP3. After the upgrade some files were in blue. I assumed blue files were of little use and deleted several of them. But anyways, this is some useful info.

    Vijay

    Reply
  8. re compression adding extra work to read/write files – I have read that modern CPU’s execute the compression algorithms much faster than the disk i/o (for non SSD disks), so that file compression may actually speed up file i/o from disk.

    Reply
  9. THANK YOU SO MUCH! IT WAS VERY HELPFUL. I WAS SURPRISED WHEN I SEE MY FILES IN BLUE AND I ALMOST PANICKED. GOOD THING, I GOOGLED IT AND FOUND THIS ARTICLE! :)

    Reply
  10. Thank you….was starting to go wt??? when after IT worked on my computer all of a sudden I had blue all over the place…as stated earlier this was the answer and I was able to understand it! Thanks

    Reply
  11. @Dawn
    That is a feature of your email program. It is trying to help you distinguish between the part of the email you are typing, and the part that came from somewhere else. The colors being used can be changed in settings.

    Reply
  12. Phenomenal information! Thank you so much for clarifying this for me. I ran multiple programs overnight, and when I checked my computer this morning, many of the files were named in blue. WHEW! Thanks again.

    Reply
  13. Not sure my question went in. So here it is again,plus a bit more. What happens if I delete the blue files? Because since they are there they are there all the sudden my computere is running majorly slow although I have lotsa space.

    I would never EVER delete a file just because it’s colored blue. It may still be an important file.

    Leo
    13-May-2012
    Reply
  14. @Lori
    Some blue files may be critical to your computer’s operation, so I wouldn’t delete any of them unless I was sure I didn’t need that file. Blue only means that they are compressed. It says nothing of their usefulness or importance.

    Reply
  15. Is this true of Word documents too? Some of my word docs are listed in blue – i have not compressed them that I know of. How do they get compressed without me compressing them?

    As long as you’re looking in Windows Explorer it doesn’t matter what type of file they are – if they’re blue the files are compressed when Windows places them on disk. The most common culprit is running Window’s Disk Cleanup utility.

    Leo
    20-Jul-2012

    Reply
  16. How do your decompress the files. I compressed some by accident and they were system files with passwords and other encrypted items. Now they will not function as they should.

    Reply
  17. @Howard
    Select those files or folders you want to decompress, right click on one of those selected items, click the Advanced button and make sure the “Compress contents to save disk space” and the “Encrypt contents to secure data” boxes are unchecked. Finally click OK.

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.