memorize
/ˈmɛm.əɹˌaɪ̯z/verb
To learn something so well that you can recall it exactly, without looking.
Example sentence
- “She memorized the whole poem for the school recital.”
Learning something 'by heart' means the same thing. British spelling is 'memorise'.