Hansson started out playing for Åbyggeby FK before spending one season at lower division Gävle based club Brynäs IF. At the age of 17 he made the move to the local top tier Allsvenskan club Gefle IF where he would stay for seven years and become team captain in 2014. After the 2014 Allsvenskan season had ended he was given the most valuable player award by the Gefle fans and signed with norwegian side Tromsø. In february of 2016 Djurgårdens IF announced that they had bought Hansson from his norwegian club with the intention of using him as a central defender in their upcoming season.
Hansson has represented Sweden at the U17, U19 and U21 youth levels.
Hansson has mixed his career of playing professional football with studying economics at university.