AC Milan have extended Brazilian playmaker Kaka's contract by two years until June 2013, the European champions announced on Thursday.