Robert Knox was born in Edinburgh's North Richmond Street to Mary and Robert Knox. His father was a teacher of mathematics and philosophy. He had smallpox as an infant, which blinded his left eye and changed his face. He was educated at the Royal High School, where he bullied his friends.