Nowadays, food is one of the things that has been globalized, and everyone from different parts of the world has been able to cook food from other countries through existing online recipes. Based on that, this study developed a translation formula using a neural machine translation (NMT). NMT is a recently proposed approach to machine translation. Unlike the traditional statistical machine translation, the neural machine translation aims at building a single neural network that can be jointly tuned to maximize the translation performance. The models proposed recently for neural machine translation often belong to a family of encoder–decoders. Our experiment led to novel insights and practical advice for building and extending NMT with the applied long short-term memory (LSTM) method to 47 bilingual food recipes between Spanish-English and English-Spanish. LSTM is one of the best machine learning methods for translating languages because it can retain memories for an extended period concurrently, grasp complicated connections between data, and provides highly useful information in deciding translation outcomes. The evaluation for this neural machine translation is to use BLEU. The comparing results show that the translation of recipes from Spanish-English has a better BLEU value of 0.998426 than English-Spanish with a data-sharing of 70%:30% during epoch 1000. Researchers can convert the country's popular cuisine recipes into another language for further research, allowing it to become more widely recognized abroad.