CubeSats, a standardized subgroup of small satellites, are a cheap and flexible solution to perform astronomical observations from space that is just starting to be exploited. This Perspective presents an overview of their advantages and of the current and planned projects.