Feeling fat

So lately I have been feeling fat and even my parents and relatives say I am gaining weight. I have tried working out and eating healthier but then I start comparing myself to other girls at my middle school and online and then I just give up. I want to go back to school feeling more confident in my own skin. Do you guys have any tips on how to lose body fat and feel beautiful?