Keep Under One's Hat

Preserve the secrecy of something. Alludes to hiding a secret in one's head, covered by a hat.

Examples:

  • I'll tell you about it if you promise to keep it under your hat.

Origin: Late 1800s