Catalyzes the interconversion of L-alanine and D-alanine. May also act on other amino acids (By similarity). L-alanine = D-alanine Amino-acid biosynthesis; D-alanine biosynthesis; D-alanine from L-alanine: step 1/1. Belongs to the alanine racemase family.