Microscopy, phenotyping and visual screens are frequently applied to model organisms in combination with genetics. Although widely used, these techniques for multicellular organisms have mostly remained manual and low-throughput. Here we report the complete automation of sample handling, high-resolution microscopy, phenotyping and sorting of Caenorhabditis elegans. The engineered microfluidic system, coupled with customized software, has enabled high-throughput, high-resolution microscopy and sorting with no human intervention and may be combined with any microscopy setup. The microchip is capable of robust local temperature control, self-regulated sample-loading and automatic sample-positioning, while the integrated software performs imaging and classification of worms based on morphological and intensity features. We demonstrate the ability to perform sensitive and quantitative screens based on cellular and subcellular phenotypes with over 95% accuracy per round and a rate of several hundred worms per hour. Screening time can be reduced by orders of magnitude; moreover, screening is completely automated.