These terms are often used interchangeably, but shelves typically refer to slabs that are either attached to a wall or fixed in a vertical or horizontal bookcase, and designed to display objects. Racks are typically larger and more utilitarian, used to store things like large boxes.