The process in which relatively unspecialized cells acquire specialized structural and/or functional features of an ectodermal cell. Differentiation includes the processes involved in commitment of a cell to a specific fate.