Hernández made his debut for El Salvador in an October 2007 friendly match against Costa Rica and has, by June 2011, earned a total of 20 caps scoring no goals. He has represented his country in 4 FIFA World Cup qualification matches as well as at the 2009 UNCAF Nations Cup and the 2009 CONCACAF Gold Cup.