In this paper, we study nonbinary toric codes and color codes. While the relationships between the qubit color codes and toric codes have been studied extensively from various perspectives, similar studies for qudit toric codes and color codes are missing. We show that just as in the binary case, qudit color codes can be mapped to qudit toric codes. Qudit color codes are known to have the capability for implementing the generalized Clifford group transversally. The proposed mapping of qudit color codes to toric codes would allow us to port the computational capabilities of the qudit color codes to qudit toric codes. Another application would be to decode qudit color codes via qudit toric codes. Along the way, we show an important structural result for higher-dimensional qudit toric codes. Specifically, we show that the toric codes over prime power dimension can be viewed as a direct sum of copies of codes over the prime dimension. This result simplifies the study of codes over prime power dimension by reducing them to the study of codes over the prime dimension. Furthermore, we provide explicit circuits for the transformation between qudit color codes and toric codes. © 2019 American Physical Society.