The process in which a relatively unspecialized cell acquires the specialized features of a trophectoderm cell.