I want to lose weight but I can’t stop eating..

I’m so conscious about what I eat but I still eat. I’ll pick up a chocolate bar and be like “I probably shouldn’t eat this l, I’ll gain more weight” but I still get it and I eat it. How can I lose weight? I went from being 129lbs in January to being 141lbs now in July! Please leave comments on how to help