If you are talking about the free floating (green water kind), there are a number of ways including the barley straw, UV light, etc methods.
I use a DIY foam fractionator, that removes any free floating algae along with suspended dirt particles., and even some parasitic phages, and also provides biofiltration.
I found the plans at koiphen.com under DIY phoam phractionator.