compress definition code example Example: compress in computer terms. compressing or compression is the diminishment of a file's storage.