How do I tell if my toe is broken or sprained. Need to go to the doctor?

X-ray. The only way to tell is to get an xray. I would recommend checking in with a doctor to see what is going on.
Yes. The only way to know for sure if a toe is broken is with an x-ray. Other symptoms, like pain, swelling, and bruising, are similar between sprains and breaks.