Tramadol is an opioid painkiller. It is often prescribed to treat moderate to severe pain and is considered a safer alternative to other narcotic painkillers such as hydrocodone (Vicodin, Lortab) and methadone. When taken as a drug of abuse, tramadol is not as strong as heroin, but it shares many of the same effects and both are addictive.