Below you can see the front-view size comparison of the Sony RX100 IV and Nikon 1 J5. The Nikon 1 J5 is 4 mm narrower and 9 mm thinner than the Sony RX100 IV but it is also 2 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.