There are lots of free hat patterns on Ravelry. You can also just search "Beanie button hat free pattern" on an internet browser and it should show up.
It's best to cut a pattern with your measurements first so that you properly cut your fabric. You don't want to accidentally cut your fabric too small and end up...