The chemical reactions and pathways resulting in the formation of carnitine (hydroxy-trimethyl aminobutyric acid), a compound that participates in the transfer of acyl groups across the inner mitochondrial membrane.
carnitine catabolic process
carnitine metabolic process, CoA-linked
ergothioneine biosynthetic process +
glycine betaine biosynthetic process +
N-alpha,N-alpha,N-alpha-trimethyl-L-histidine biosynthetic process +