The compression helical spring is made of coils. When this spring is compressed by some force, the space between the coils decreases, making the spring shorter.
We can see the application of a compression helical spring by looking at a hole punch.