The invention refers to a needle safety device (1) comprising a needle cap (5) arranged to cover and protect a needle (4), a needle shield (6) relatively movable with respect to a drug delivery device (2) to cover and protect the needle (4) and a needle cap remover (7). The needle cap remover (7) has an outer part (8) adapted to be arranged to the needle shield (6) and an inner part (9) adapted to carry the needle cap (5), wherein the outer part (8) comprises a front end (10) having an opening (11) which at its edge exhibits a projection (12) directed inwards adapted to catch a front projection (13) of the inner part (9) and the inner part (9) comprises a back end (14) having a grip member (15) adapted to grip a back end (16) of the needle cap (5).