Catalyzes the hydrolysis of various purine and pyrimidine 5'-nucleotides, showing preference for 5'-nucleoside monophosphates and exhibiting the highest catalytic activity toward 5'-XMP (PubMed:27907199). Shows also a relatively high phosphohydrolase activity toward the nucleotide precursors ribose-5-phosphate (R5P) and 5-phosphoribosyl-1-pyrophosphate (PRPP), and toward the non-natural substrate p-nitrophenyl phosphate (pNPP) (PubMed:27907199). a ribonucleoside 5'-phosphate + H2O = a ribonucleoside + phosphate H2O + XMP = phosphate + xanthosine kcat is 61.0 sec(-1) with pNPP as substrate. kcat is 0.31 sec(-1) with 5'-XMP as substrate. kcat is 0.17 sec(-1) with PRPP as substrate. kcat is 1.84 sec(-1) with R5P as substrate. kcat is 0.06 sec(-1) with 5'-GMP as substrate. Homodimer. Cotranscribed with the two upstream genes, yutD and yutE. YutF overproduction increases the level of yutDEF operon expression, and this up-regulation is enhanced in the presence of inorganic phosphate. Inactivation of the gene has essentially no effect on cell growth in rich or minimal medium but results in a drop in pNPP hydrolysis in the crude extracts of B.subtilis cells to undetectable levels. Belongs to the HAD-like hydrolase superfamily. NagD family.