Analgesics are painkillers.
Compare analgesic with anti-inflammatory
They are not the same thing as 'anti-inflammatories'.
Examples of analgesics are acetaminophen and codeine, while an example of an anti-inflammatory is ibuprofen. Anti-inflammatories do relieve pain by reducing inflammation, so they are often confused with one another.
Analgesics have different trade names in different countries, and combinations of analgesics may be marketed under different names, so it is good to examine the container and learn the pharmaceutical name as well as examining the dosage of each ingredient.
Besides pills, analgesics may be delivered in creams, gels or skin patches.
Personalized Medicine and Opioid Analgesic Prescribing for Chronic Pain: Opportunities and Challenges. Bruehl S, et al. J Pain. 2013 Feb; 14(2): 103–113.