In this review, the state of the art of 23 distributed generation and microgrids standards has been analyzed. Among these standards, 18 correspond mainly to distributed generation while five of them introduce the concept of microgrid. The following topics have been considered: interconnection criteria, operating conditions, control capabilities, power quality, protection functions and reference variables. The revised national standards cover ten countries on four continents, which represents 80% of the countries with the largest installed renewable capacities. In addition, eight other relevant international standards have been analyzed, finding IEEE 1547 as the most comprehensive standard. It is identified a clear need to define a common framework for distributed energy resources (DERs) and microgrid standards in the future, wherein topics, terminology, and values are expressed in a manner that may widely cover the entire diversity in a way similar to how it has already been expressed at the network transport level by the ENTSO-E codes.