fnf is a exe file but its in browser tho
so how do you upload a exe file to play in browser
The browser version is compiled separately from the exe version. In FNF's case, HaxeFlixel is the compiler used.
other game engine has built-in html5 compiler like gdevelop etc....