Eunhi's answer is great. But I would like to add a bit more details since I think 알아/요 and 알았어/요 could have a slight difference in the meaning.
알아요 is used as the meaning of "I know" (I actually know it. I already knew that in advance.)
but 알았어요 is more likely to mean "Okay" (Okay, I will. I got to understand it just now)
And if you omit '-요' from any of these, it becomes 반말(the language that we use to younger/same aged close people)