It is practically impossible in a short period of time to synthesize and test all compounds in any large exhaustive chemical library. We discuss rational approaches to selecting representative subsets of virtual libraries that help direct experimental synthetic efforts for both targeted and diverse library design. For targeted library design, we consider principles based on the similarity to lead molecules. In the case of diverse library design, we discuss algorithms aimed at the selection of both diverse and representative subsets of the entire chemical library space. We illustrate methodologies with several practical examples.