A broad class of proteins involved in the transport of nucleobases, nucleosides; nucleotides; and nucleic acids; across membranes.