off the top of my head

When someone says something is off the top of their head it means they didnt have to give it much thought, did not really precise knowledge of it, but simply knew the answer or spoke without thinking about it. This can be in relation to a variety of things such as being asked a question and knowing the answer suddenly without even considering it, in which you said the answer off the top of your head.