A British man posted a picture of Prince George and the address of his London school as part of a series of possible targets for Islamist militants, a court has heard.
Husnain Rashid, 31, is accused of posting information on the Telegram messaging service to encourage jihadis to carry out attacks along with information to help them with possible targets such as stadia.
Prosecutor Rebecca Mundy told London's Westminster Magistrates Court on Wednesday that this included posting a picture of Prince George, son of Queen Elizabeth's grandson Prince William and Kate and destined to be the future king, next to a silhouette of a jihadi fighter.
The post included the address of his school in south-west London which he started attending in September and was accompanied with the caption "even the royal family will not be left alone", the court heard.
Rashid is charged with preparing terrorism acts, which involved plans to travel to Syria to engage in fighting, and preparing to assist others to commit terrorist acts.
He did not apply for bail and indicated he would plead not guilty to the charges.
He was remanded in custody until December 20 when he will appear at London's Old Bailey central criminal court.