Following a request from the European Commission, the EFSA NDA Panel was asked to deliver an opinion on vitamin D2 mushroom powder as a novel food (NF) pursuant to Regulation (EU) 2015/2283. The NF is produced from Agaricus bisporus mushroom that has been exposed to ultraviolet (UV) irradiation to induce the conversion of provitamin D2 (ergosterol) to vitamin D2 (ergocalciferol). The NF contains levels of vitamin D in the form of vitamin D2 in the range of 125–375 µg/g. The information provided on the production process, composition and specifications of the NF does not raise safety concerns. The applicant intends to add the NF as an ingredient in a variety of foods and beverages in amounts that result in either 1.125 or 2.25 µg vitamin D2 per 100 g or 100 mL of the food as consumed. The applicant also intends to add the NF in food supplements, for infants from 7 to 11 months at a maximum of 10 µg vitamin D2/day and of 15 µg vitamin D2/day for individuals aged 1 year or older, as well as in foods for special medical purposes (FSMPs) and total and meal diet replacement for weight control. For the adult population, the maximum intended use level in FSMPs is 15 µg vitamin D2/day and 5 µg vitamin D2/meal in total and meal diet replacement for weight control. The Panel concludes that the NF is safe under the proposed conditions of use. The Panel notes uncertainty regarding the calculated combined exposures to vitamin D for the general population, given the fact that the range of foods fortified with vitamin D has increased over the years, as well as the marketing of high‐dose vitamin D supplements.