When someone has done something bad and I'm amazed,
I say to someone "Are you crazy?"
Is "Are you crazy" a informal expression?
Have a good day!
Yes it is, and it should only be used among friends unless you are extremely angry.