Below you can see the front-view size comparison of the Canon 1200D and Nikon D5200. The Nikon D5200 is 1 mm narrower and 2 mm shorter than the Canon 1200D but they have the same thickness of 78 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.