Sentencing Rigby, Mr Justice David MacKay told him:
The jury has convicted you of the murder of this little boy. You don't need me to tell you what a terrible crime that was.
You abused that trust by punishing him physically in quite a revolting way.
It's a chilling, terrible picture. He suffered considerably before he died, I am satisfied. He was a vulnerable boy. You abused your trust.
The judge said he did not think Rigby intended to kill Rio but had a "sudden loss of temper" and "set about him, inflicting the fatal blow".
More top news
'Why are Ucas sending me tampons?' one university-wannabe asked as dozens more took to Twitter over the unusual correspondence.
His mother Princess Diana was killed in a car crash in Paris in 1997 when he was just 12 and his brother William was 15.
The 21-year-old, who was arrested on Sunday, also allegedly injured two other people in the attack in the German city of Reutlingen.