The dynamic behavior of many physical, biological, and other systems, are organized according to the synchronization of chaotic oscillators. In this paper, we have proposed a new method with low sensitivity to noise for detecting synchronization by mapping time series to complex networks, called the ordinal partition network, and calculating the permutation entropy of that structure. We show that this method can detect different kinds of synchronization such as complete synchronization, phase synchronization, and generalized synchronization. In all cases, the estimated permutation entropy decreases with increased synchronization. This method is also capable of estimating the topology of the network graph from the time series, without knowledge of the dynamical equations of individual nodes. This approach has been applied for the two identical and nonidentical coupled Rössler systems, two nonidentical coupled Lorenz systems, and a ring of coupled Lorenz96 oscillators.