An analgesic or painkiller is any member of the group of drugs used to achieve analgesia, relief from pain.

Analgesic drugs act in various ways on the peripheral and central nervous systems. They are distinct from anesthetics, which temporarily affect, and in some instances completely eliminate, sensation. Analgesics include paracetamol (known in North America as acetaminophen or simply APAP), the nonsteroidal anti-inflammatory drugs (NSAIDs) such as the salicylates, and opioid drugs such as morphine and oxycodone.

Analgesics may be classified into two types: anti-inflammatory drugs, which alleviate pain by reducing local inflammatory responses; and the opioids, which act on the brain. The opioid analgesics were once called narcotic drugs because they can induce sleep. The opioid analgesics can be used for either short-term or long-term relief of severe pain. In contrast, the anti-inflammatory compounds are used for short-term pain relief and for modest pain, such as that of headache, muscle strain, bruising, or arthritis.

More Info: en.wikipedia.org