Using an array of poly(N-isopropylacrylamide) (PNIPAM) micropillars whose size varies precisely with temperature, this device can be precisely tuned to sort cells across a range of sizes.