Allah is neither male of female, He is above these Genders which are only for humans and other living creatures.<quoted text>
How do you know that Allah is male ?
But We need a pronoun to address our Creator, and when choosing we have to use which are best and powerful...that is why Masculine Pronouns are used for Allah and that is what He has chosen Himself in His revelations...
Allah Knows Best.
Thanks for asking a very good question!!