Compression socks work by gently squeezing and massaging your feet and legs, which helps redirect your blood flow back to your heart. With light pressure on the legs, compression socks work to reduce and prevent swelling, pain, and the formation of blood clots.