Excess claims lead to an unsatisfactory behavior of standard linear credibility estimators. We suggest in this paper to use robust methods in order to obtain better estimators. Our first proposal is the linear credibility estimator with the claims replaced by a robust M-estimator of scale calculed from the claims. This corresponds to a truncation of the claims with a truncation point depending on the data and different for each contract. We discuss the properties of the robust M-estimator and present several examples. In order to improve the performance for a very small number of years, we propose a second estimator, which incorporates information from other claims into the M-estimator.