Thanks for posting your query
You stubbed your toe & there is pain & swelling, so it can be a bruise
. Finally to be decided by X-ray.
I advise you to go for an x-ray to detect a fracture. If no fracture in x-ray then it is a soft tissue injury
So you should go to doctor for exam & treatment acc. to that.