Anonymous 19h
They’re quite different. Ahoge means “idiot hair”, and ahegao came from a comedic bit in the 80s about a “chief” who would say “aheahe, uhiha, aheuhiha” when being approached by women or observing intimate moments, then combined with -gao (kao) meaning ‘face’.
1 