There is no such thing as “converting a script to a global”.
Autoload are nodes or scenes that engine automatically instantiates on startup and attaches them to the root node of the scene tree. Those nodes can have scripts attached to them (but are not mandated to).
You can read up how it all works in the docs: