The utility patent protects the composition, structure or function of an invention, whereas the design patent protects the non-functional aesthetics of a product.
You can tell if a patent is a utility or design patent by looking at the patent number.
A design patent comprises of a number that starts with a “D,” (ex. D916873).
However, a utility patent only comprises of numbers (ex. 865754968).