Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anyone come across list of which file formats generally compress well (in general algorithms)?

Generally, text files .txt compress well, and media-files (.mp3, .avi, etc) do not compress well.

I'm looking for a list (or database) of file formats so I can answer the question, "Will a general, lossless algorithm compress a <.xxx> file?".

EDIT: Of course by nature, random data, media files, and compressed data do not compress well. That is not my question.

Question: Where can I look up descriptions of file-formats, specifically to discover if the format already contains compression?

AutoCAD Drawings, Various Microsoft Office formats, Oracle Database .DBF files, Adobe PDF files, Outlook PST files, etc

share|improve this question

closed as not constructive by Dennis, Nifle, KronoS, bwDraco, 8088 Sep 27 '12 at 21:55

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Right now, your question is asking for anecdotes, which makes it unfit for Super User. Of the most common compression formats, LZMA generally achieves the best compression, but it's also the slowest algorithm. Pseudo-random and already compressed data cannot be compressed by any of these algorithms. – Dennis Sep 27 '12 at 17:27
in general all data with lots of common patterns compress very well, data with noise does not. files which are compressed already fall into the latter category of files. – akira Sep 27 '12 at 17:54
In general, files that are already compressed to some degree will not compress well. Most standard audio and image formats are compressed. Those that aren't are not generally used for internet operations because they take so much longer to transfer. – Daniel R Hicks Sep 27 '12 at 17:55
See edit to question. – Steven Sep 27 '12 at 18:37

From what I can understand of your question, it sounds like you have tried to compress an already compressed file. File formats such as .png, .jpg, .avi, pdf, .mp4 and many others may already have their data in a compressed format. Attempting to compress such files will not significantly reduce their size.

share|improve this answer
See edited question. – Steven Sep 27 '12 at 18:38

Not the answer you're looking for? Browse other questions tagged .