The Muscidae is one of the main dipteran families recognized as important for medico-legal purposes. Although an association of adult flies with decomposing human and animal bodies is documented for about 200 taxa worldwide, cadavers and carrion represents a breeding habitat for considerably fewer species. Species that do colonize dead human bodies can do so under diverse environmental conditions and, under certain circumstances, Muscidae may be the only colonizers of a body. Because of difficulties in identification, many studies have identified immature and/or adult muscids only to the genus or family level. This lack of detailed species-level identifications hinders detailed investigation of their medico-legal usefulness in carrion succession-oriented experiments. Identification to species level of third instars of Muscidae of forensic importance and the utility of larval morphological characters for taxonomic purposes were subjected to an in-depth revision. A combination of characters allowing for the discrimination of third instar muscids from other forensically important dipterans is proposed. An identification key for third instar larvae, which covers the full set of cadaver-colonising species of Muscidae from the western Palaearctic (Europe, North Africa, Middle East), is provided. This key will facilitate more detailed and species-specific knowledge of the occurrence of Muscidae in forensic entomology experiments and real cases. The carrion-visiting Muscidae worldwide are catalogued, and those species breeding in animal carrion and dead human bodies are briefly discussed with regard to their forensic importance.Electronic supplementary materialThe online version of this article (doi:10.1007/s00414-016-1495-0) contains supplementary material, which is available to authorized users.