Hello, this could be a painful files or fissure according to your symptoms
Do you have any scratch or wound outside of anus?
If yes then it could be fissure
If you have welling coming out of anus then it could be piles.
Next Steps
treatment of both of them differs. kindly do consult online for medications,ointment and lifestyle diet modifications