secret for/to yourself ?

Hello,

Can you help me with this sentence:

“Can you keep a secret … yourself”

What should go there: “for” or “to”

Thank you for your help.

You do not actually need either. It is usual to simply say “Can you keep a secret?”

But, to answer your question, “to” sounds better to me there.

Usually
Can you keep a secret to yourself.
(in other words, can you keep it safe in confidence and not share it with anyone else)