The illegally used fentanyl most often associated with recent overdoses is made in labs. This synthetic fentanyl is sold illegally as a powder, dropped onto blotter paper, put in eye droppers and nasal sprays, or made into pills that look like other prescription opioids.
https://www.drugabuse.gov/publications/drugfacts/fentanyl