Metric graph properties lie in the heart of the analysis of complex networks, while in this paper we study their convexity. We analyze the expansion of convex subsets of nodes in empirical networks and also convexity of small subgraphs known as graphlets. We demonstrate that convexity is an inherent property of complex networks not present in a random graph. According to our perception of convexity, a convex network is such in which every connected subset of nodes induces a convex subgraph. Especially convex are technological networks and social collaboration graphs, whereas food webs are the only networks studied that are truly non-convex. Many other networks can be divided into a non-convex core surrounded by a convex periphery. We interpret convexity in terms of redundancy of shortest paths in a network and discuss possible applications.