Exactly how painful is it to get IUD inserted?

I've been thinking about getting some sort of IUD and it was first suggested by my midwife. I've been hearing that it can be quite painful, though my midwife didn't mention that part...exactly how painful is it? And how exactly do they do it?