pull it out of the hat

(redirected from pulling it out of the hat)

pull it out of the hat

To find sudden and unexpected success in a situation that seemed otherwise hopeless. An allusion to the classic magic trick of a magician pulling a rabbit out of a seemingly empty hat. Wow, I didn't think you'd have the programming ready in time for launch day, but you really pulled it out of the hat! I thought we were going to have a drab Christmas, considering how much my boyfriend and I have been working lately, but I came home on Christmas eve to find the whole house decorated and a lovely dinner on the table. I don't know how he did it, but he pulled it out of the hat this year!
See also: hat, of, out, pull