The quantum private comparison aims to make the size comparison of two participants’ private information without leaking the private data of their own with quantum mechanism. In this paper, different from the current method of using single particle or entangled state as the information carrier, a novel two-party quantum private comparison protocol is firstly proposed via quantum walks on circle. In the protocol, a third party is assumed to be semi-honest and allowed to misbehave on his own, but cannot conspire with either of the two dishonest participants and obtain the participants’ private information. The protocol adopts the two-particle quantum walks state on circle rather than entangled state as the initial quantum resource and only needs measurement and quantum walks operator without the unitary operation and quantum entanglement swapping. The two-particle state is transferred as a whole among different parties, which reduces the protocol complexity and avoids the chance of being attacked. It can implement the equality comparison of private information, but also the size comparison. Security analyses show that this protocol is resistant to the external and internal malicious attacks, which can also determine the disputes over the judgment result of the third party. Compared with other quantum private comparison protocols, the proposed protocol has better flexibility and universality.