Both of these prescription drugs are benzodiazepines, commonly prescribed to treat anxiety disorders. However, Klonopin stays in your system longer than Xanax:
Xanax half-life: 6-25 hours
Klonopin half-life: 22-54 hours