Topical analgesics are used in dentistry to relieve pain or irritation caused by many conditions, including toothache and sores in or around the mouth (such as cold sores, canker sores, and fever blisters). Some of these medicines are also used to relieve pain or irritation caused by dentures or braces.