I take 'em apart. Inside, the air pump is driven by a rubber bladder that is pumped in and out by a lever arm that is pulled by a magnet.
Sometimes, after they get older and have been banged around a bit, that lever is no longer perfectly balanced. You can diddle with it - there are screws in there that can adjust the "in and out" setting and you can bend the metal a bit too.
If you are thinking of dumping the thing (That was GREAT! Bac2It!

) you might want to try. I have occasionally messed them up that they are worse than ever and I can never get them back, but about 80% of the time, I can get them quieter. It takes a delicate touch and a lot of diddling.
Another suggestion is to hang a hook and suspend the thing in the air from the cord. This helps for pumps that are vibrating on the floor or surfaces.
An old member here, Mike, used to use a glass jar. The pump was suspended in a sealed glass jar with the cord coming out through the lid - and then hung. This, he stated, isolated the noise and made them quiet.