Hello!
Generally speaking, they come from the same place as other nucleotides, that make up the DNA and RNA of nuclei. They are formed in the Ribosomes of a cell, which use RNA to decide what sort of polypeptides/proteins to create, and (by extension) the nucleotides that make up the RNA.