How to stop swearing?

I swear. A lot. I didn’t think it was a problem, and didn’t really notice until my younger children started doing it. I’ve also had some people flinch when I swear in public. I’ve been defensive when adults have a problem with it, but while I often choose amusement when my 5 year old goes off like a tiny sailor, I think it’s something I need to work on. What tools are here for swearing? Would an urge jar help if I catch myself not swearing? It’s such a habit, I often don’t notice it.