AN A-LISTED former courthouse and jail building at 1A Parliament Square in Edinburgh has been transformed into a boutique hostel.

The Court off the Royal Mile has 200 pod beds and 12 private “cell” rooms over five floors.

Its backer, Code, says it will “help to meet the growing demand for affordable overnight stays”.

The Court brings Code’s pod concept to a second Edinburgh location, following its original hostel - The Loft - which is located off Rose Street in the New Town.

READ MORE: Former Edinburgh Royal Mile jail to become 'capsule hotel'

The new capsule hotel is officially launched today and welcomes its first guests on August 2.

The building was originally contained both holding cells and courtroom facilities, including the former district court.

Working with architecture firm LBA, Code has "made it a priority to preserve the historic features of the Georgian building with minimal alterations to the exterior of the building other than preservation and restoration".

It says: "The fascinating history of the building will also be commemorated through displays in reception which will showcase the criminal past and interesting events that took place there."