A whim is a sudden, unplanned decision made impulsively and often capriciously. It can refer to an idea or desire that arises suddenly and is acted upon without much thought or consideration. Whims are typically seen as spontaneous actions driven by emotions rather than rational thinking.