I want to tell my guy best friend I like him but afraid on what to do if he says no.

I think he likes me and we have been spending one on one time together a lot. I want to tell him I like him but idk how to respond if he doesn’t. Anyone been in this situation?