Idk about the iud

I was thinking about getting the iud because it’s the safest way not to get pregnant Besides using a condom and the pill but does it hurt? I’m hesitant because I don’t want to be in pain with the IUD.