Enables the transfer of a toxin from one side of a membrane to the other. A toxin is a poisonous compound (typically a protein) that is produced by cells or organisms and that can cause disease when introduced into the body or tissues of an organism.