Generally, toothpaste can help to treat mouth ulcers. However, for people who are prone to mouth ulcers, toothpaste with high SLS (Sodium lauryl sulfate) may even aggravate ulcers. Hence, it is best to seek advice from a dentist nearby for ulcers that are painful and not self-healing.