The teenager, identified only as Deday A., hoarded a large amount of pyrotechnics at his home and allegedly planned to use the black powder to make an explosive device, said federal prosecutors.
The suspect, who was first arrested on February 13 in the state of Hesse, faced a judge Wednesday who ordered him remanded in pre-trial custody on charges of having planned an attack.
"The accused is alleged to have procured explosives to commit an Islamist attack in Germany or Britain," the prosecutors said in a statement, adding that he was a suspected member of IS.
German authorities have been on heightened alert since IS claimed a lorry assault on a Berlin Christmas market in December 2016 which killed 12 people.
Dozens of suspects have been arrested or charged over alleged terror plots.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)