What is 'all'?

Beeesneees, what is ‘all’? is it plural or singular? All is well- is it correct? They all are going, I know this sentence is correct, but I am confused. Help me.

It can be either, just as you have already shown:

All of the sugar is gone.
All of my friends are gone.

Thank you-Mister Micawber.