I’ll eat my hat is something you say when you are very confident your opinion or judgement about something is correct.
Examples of use:
1. I’ll eat my hat if my father doesn’t like his birthday present.
2. It’s very cold today and the weather forecast is for snow, but I’ll eat my hat if we get any here.
3. I’ll eat my hat if he doesn’t pass his English exam today.
Image by Mara 1