The SI unit for power – the rate of flow of energy – is the watt. Around 174 petawatts (174,000 terawatts) comes in from the sun, and – plus or minus the rate of energy release from or addition to reserves of one kind or another – goes back into space, three-quarters of it as low-grade heat. The world economy, mostly by drawing down fossil reserves, draws 15 TW (0.015 PW).* Around half this is converted to 2 TW of electrical power and distributed by the grid.
Table from Wikipedia entry for International System of Units
*Demand is expected to double to 30 TW by 2050. Satisfying this increase in demand with some combination of nuclear and renewable energy sources will be a challenge. Check the numbers here.