How do I quit a job without leaving on bad terms?

You are not required to provide any reasons. You need to have it documented, so make sure you make a letter of resignation and can do it both written and email. When handing it in you can say you have chosen to leave to pursue other opportunities. If they ask what it is you can be as general as you want. "It's a position with a company providing growth", "I want a change in my career", "I am just looking for a change".
You do not owe an explanation. To emphasize you are not obligated to tell your employer why, but you do need to resign with a notice if required. It's most professional.
Just be a man and stop showing up.
Fuck reasoning.
I know the feeling of working in a toxic work enviroment, I had a job like that. I waited to find another job before I quit and left proper notice saying that I found a job that seemed to be a better fit with my skills. As far as I remember everyone including my supervisor was okay with it and didn't take it personally.
Submit your resignation. Give one month of notice period and leave. That's it. You're not obligated to justify why you want to leave just say you found another job and that's it carry on with your life.
Opinion
5Opinion
Just say that you decided to take another opportunity for personal reasons. Dont tell anyone until after you put in your formal resignation
Give adequate notice. Continue doing good work up until the time that you leave.
Just get a new job. Don't overthink it.
Just tell them you want to explore other options.
give a two week notice...
they'll never hire you back; just go
Superb Opinion