Hammami made his international debut for Tunisia in 2007, and represented them at the Africa Cup of Nations in 2010 and 2013. He has also appeared in FIFA World Cup qualifying matches.