Rare kaon decays provide unique opportunity to test the Standard Model and probe its possible extensions. The final result on the lepton universality test by measuring the ratio RK = Γ(K+ → e+ν)/Γ(K+ → μ+ν) is presented as well as the status of the study of the rare decays K ± → π ± γγ and K+ → e+νγ. The primary goal of the NA62 experiment is the measurement of the Br(K+ → π+ν¯ν) decay with a precision of 10% in two years of data taking. The detector setup together with the analysis technique is described