Xanax is the brand name for a medication called alprazolam. It is a prescription medication classified as a benzodiazepine, which is a type of central nervous system (CNS) depressant. Xanax is primarily used for the management of anxiety disorders and panic disorder.