Sayed Mohammed Said was arrested with 1.5 kilograms (53 ounces) of the narcotics hidden inside his backpack when he arrived at Bali airport from Bangkok in September.
The 30-year-old claimed the package belonged to a friend and he did not know it contained drugs. But he was found guilty Monday at a court in the Balinese capital Denpasar, and a judge handed down the 14-year sentence.
The prison term was lower than the 20 years recommended by prosecutors and he escaped a possible death penalty.
Indonesia has some of the world's toughest anti-narcotics laws. People caught smuggling more than five grams of some controlled substances can be sentenced to death. Said's lawyer Daniar Trisasongko said his client was still considering whether to appeal.
"The verdict is too stern considering my client was unaware he was carrying drugs. We will study it further before deciding the next step," Trisasongko told AFP.
Foreigners are frequently arrested for attempting to smuggle narcotics into Bali, a popular holiday destination famed for its palm-fringed beaches.
Indonesian President Joko Widodo launched a tough campaign against narcotics use in 2014, which culminated in the execution by firing squad last year of seven foreign drug convicts including two Australians.
But the move drew worldwide condemnation, and the government has since shown little sign of preparing for more executions, saying it is focused on fixing the economy.