Borrowed from French avatar, from Sanskrit अवतार (avatāra, “descent of a deity from a heaven”). The computing sense comes from English.
Practice speaking and memorizing "avatar" and many other words and sentences in Portuguese.