Learning how to budget

I need help with knowing how to budget, like how do you know how much to put aside for bills and how much you have for your own personal spending? I’ve tried so many times to try to budget as I’m always short on bills and struggling financially but I just get confused and stressed because I honestly don’t know how to budget. Is there an app that can help me?