Involved in the intramitochondrial synthesis of acylcarnitines from accumulated acyl-CoA metabolites (PubMed:20538056, PubMed:24780397). Reconverts acylcarnitines back into the respective acyl-CoA esters that can then undergo beta-oxidation, an essential step for the mitochondrial uptake of long-chain fatty acids and their subsequent beta-oxidation in the mitochondrion. Active with medium (C8-C12) and long-chain (C14-C18) acyl-CoA esters (PubMed:20538056). (R)-carnitine + hexadecanoyl-CoA = CoA + O-hexadecanoyl-(R)-carnitine (R)-carnitine + octanoyl-CoA = CoA + O-octanoyl-(R)-carnitine (R)-carnitine + decanoyl-CoA = CoA + O-decanoyl-(R)-carnitine (R)-carnitine + dodecanoyl-CoA = CoA + O-dodecanoyl-R-carnitine (R)-carnitine + tetradecanoyl-CoA = CoA + O-tetradecanoyl-(R)-carnitine (R)-carnitine + octadecanoyl-CoA = CoA + O-octadecanoyl-(R)-carnitine (R)-carnitine + eicosanoyl-CoA = CoA + O-eicosanoyl-(R)-carnitine (9Z)-tetradecenoyl-CoA + (R)-carnitine = CoA + O-(9Z)-tetradecenoyl-(R)-carnitine (5Z)-tetradecenoyl-CoA + (R)-carnitine = CoA + O-(5Z)-tetradecenoyl-(R)-carnitine (9Z)-octadecenoyl-CoA + (R)-carnitine = CoA + O-(9Z)-octadecenoyl-(R)-carnitine (R)-carnitine + 4,8-dimethylnonanoyl-CoA = CoA + O-4,8-dimethylnonanoyl-(R)-carnitine Inhibited by trans-2-hexadecanoyl-CoA. Lipid metabolism; fatty acid beta-oxidation. The disease is caused by variants affecting the gene represented in this entry. The disease is caused by variants affecting the gene represented in this entry. The disease is caused by variants affecting the gene represented in this entry. Disease susceptibility is associated with variants affecting the gene represented in this entry. CPT2 polymorphic variants do not cause classical carnitine palmitoyltransferase 2 deficiency, and patients harboring any of them are asymptomatic most of the time. However, they are prone to viral infection (high fever)-related encephalopathy (PubMed:21697855). Belongs to the carnitine/choline acetyltransferase family.