There is no evidence that a nonsteroidal anti-inflammatory medicine (NSAID) is beneficial in treating carpal tunnel syndrome; nevertheless, it does assist reduce hand pain by inhibiting enzymes that are responsible for producing pain and swelling. Oral nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen (Advil, Motrin) have been associated to ulcers, bleeding in the stomach, damage to the liver, and an increased risk of heart attacks on a long-term basis. NSAIDs that are used topically, including diclofenac (Voltaren), are less dangerous.