с ног на голову

Etymology
lit. 'from the feet to the head'.

Adverb

 * 1)  (to turn) on its head, upside down, (to turn) from a normal position upside down

Usage notes

 * In non-idiomatic collocations the stress pattern "на́ голову" is much less common, "на го́лову" is more common.