Torres Alegría made his debut for El Salvador in an August 1999 friendly match against Greece and has earned a total of 33 caps, scoring 3 goals including his first one in an unofficial game against Honduras. He has represented his country in 13 FIFA World Cup qualification matches and played at the 2003 and 2009 CONCACAF Gold Cups.