Julian Assange will stay in prison after the custody period on his current jail term ends because of his "history of absconding".
As home secretary, Sajid Javid signed an order in June allowing Assange's extradition to the US over hacking allegations. A 50-week jail term was imposed in the UK after he had jumped previous bail by going into hiding in the Ecuadorian embassy in London.
The WikiLeaks founder would have been released from HMP Belmarsh on 22 September, Westminster magistrates court heard on Friday, but he was told he would be kept in jail because of "substantial grounds" for believing he would abscond again.
Assange, 48, who is an Australian citizen, appeared by video-link wearing a loose-fitting T-shirt.
District judge Vanessa Baraitser told him: "You have been produced today because your sentence of imprisonment is about to come to an end. When that happens your remand status changes from a serving prisoner to a person facing extradition.
"Therefore I have given your lawyer an opportunity to make an application for bail on your behalf and she has declined to do so, perhaps not surprisingly in light of your history of absconding in these proceedings.