Shaw was born at Bierton, Buckinghamshire, and was educated at Magdalen Hall, Oxford, receiving his M.A. in 1772.
In 1791 Shaw became assistant keeper of the natural history department at the British Museum, succeeding Edward Whitaker Gray as keeper in 1806.