Helping people with computers... one answer at a time.

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

Article C3462 - July 31, 2008

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
17 Comments

Why are some of my emails typed in blue while other parts of this email are in black?

Posted by: Dawn Thorpe at January 12, 2012 1:12 PM

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

Posted by: Connie at January 12, 2012 6:43 PM

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.

Posted by: Jana Sheeder at May 10, 2012 12:11 PM

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
Posted by: Lori at May 13, 2012 4:50 AM

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

Posted by: Mark J at May 13, 2012 5:23 AM
Post a comment on "Why are some of my file names blue?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...