The big thing is making sure the circumference of the tire is the same, or at least within 1-2%. Otherwise there can be some mechanical issues, and also your speedometer will be off.
A tool like this might help:
https://tiresize.com/comparison/
What size are your current tires?