A five-year project to make all of Scotland's census records accessible online has culminated in the publication of the 1841 census.
The records are the biggest web archive of any country in the world
The census was the first to record data on individuals and reveals that Scotland had a population of 2.6m.
More than 50m of the nation's historical records are now available on the ScotlandsPeople website.
The site has proved popular with home-based and exiled Scots, with more than 400,000 registered users.
The project, funded by the Scottish Executive, is said to have created the most comprehensive online set of family history documents of any country in the world.
The archive paints a unique picture of life in Scotland in the 19th century.
Some of the more peculiar jobs listed in the 1841 census included hedger, warper, heddle maker and a muslin sewer.
Dr Richard Callison, of ScotlandsPeople, said: "The records offer a truly amazing insight into Scotland's past and as well as accessing the records of their ancestors visitors can also view the entries of some of Scotland's most famous sons, such as Rabbie Burns and Charles Rennie Mackintosh."
Duncan Macniven, Scotland's Registrar General, said: "ScotlandsPeople has been hugely successful, especially over the course of the past two years during which time there has been an explosion of interest in geneology.
"Our work will not end here, as later this year we intend to add to the website images of the Old Parish Records of Scotland."
The only part of Scotland to be omitted from the records was St Kilda, which was still inhabited when the census was compiled.
The omission was discovered and rectified by author and traveller James Wilson a year later.
He recorded all of the 105 inhabitants in his book, A Voyage Round the Coasts of Scotland and the Isles.